mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
fbcode_builder: getdeps: fboss: rename OpenBCM to OpenNSA
Summary: Broadcom provides this library and they decided to rename it from OpenBCM to OpenNSA. Thus, rename corresponding fbcode_builder code. Reviewed By: wez Differential Revision: D19396687 fbshipit-source-id: 8233dbf4de9342b5a0e54ae275d6c73d43abe6d0
This commit is contained in:
committed by
Facebook Github Bot
parent
a97aabf391
commit
fe8359a89e
@@ -724,15 +724,15 @@ class NopBuilder(BuilderBase):
|
|||||||
shutil.copytree(self.src_dir, self.inst_dir)
|
shutil.copytree(self.src_dir, self.inst_dir)
|
||||||
|
|
||||||
|
|
||||||
class OpenBCMBuilder(NopBuilder):
|
class OpenNSABuilder(NopBuilder):
|
||||||
# OpenBCM libraries are stored with git LFS. As a result, fetcher fetches
|
# OpenNSA libraries are stored with git LFS. As a result, fetcher fetches
|
||||||
# LFS pointers and not the contents. Use git-lfs to pull the real contents
|
# LFS pointers and not the contents. Use git-lfs to pull the real contents
|
||||||
# before copying to install dir using NoopBuilder.
|
# before copying to install dir using NoopBuilder.
|
||||||
# In future, if more builders require git-lfs, we would consider installing
|
# In future, if more builders require git-lfs, we would consider installing
|
||||||
# git-lfs as part of the sandcastle infra as against repeating similar
|
# git-lfs as part of the sandcastle infra as against repeating similar
|
||||||
# logic for each builder that requires git-lfs.
|
# logic for each builder that requires git-lfs.
|
||||||
def __init__(self, build_opts, ctx, manifest, src_dir, inst_dir):
|
def __init__(self, build_opts, ctx, manifest, src_dir, inst_dir):
|
||||||
super(OpenBCMBuilder, self).__init__(
|
super(OpenNSABuilder, self).__init__(
|
||||||
build_opts, ctx, manifest, src_dir, inst_dir
|
build_opts, ctx, manifest, src_dir, inst_dir
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -741,7 +741,7 @@ class OpenBCMBuilder(NopBuilder):
|
|||||||
self._run_cmd(["git", "lfs", "install", "--local"], cwd=self.src_dir, env=env)
|
self._run_cmd(["git", "lfs", "install", "--local"], cwd=self.src_dir, env=env)
|
||||||
self._run_cmd(["git", "lfs", "pull"], cwd=self.src_dir, env=env)
|
self._run_cmd(["git", "lfs", "pull"], cwd=self.src_dir, env=env)
|
||||||
|
|
||||||
super(OpenBCMBuilder, self).build(install_dirs, reconfigure)
|
super(OpenNSABuilder, self).build(install_dirs, reconfigure)
|
||||||
|
|
||||||
|
|
||||||
class SqliteBuilder(BuilderBase):
|
class SqliteBuilder(BuilderBase):
|
||||||
|
@@ -18,7 +18,7 @@ from .builder import (
|
|||||||
MakeBuilder,
|
MakeBuilder,
|
||||||
NinjaBootstrap,
|
NinjaBootstrap,
|
||||||
NopBuilder,
|
NopBuilder,
|
||||||
OpenBCMBuilder,
|
OpenNSABuilder,
|
||||||
OpenSSLBuilder,
|
OpenSSLBuilder,
|
||||||
SqliteBuilder,
|
SqliteBuilder,
|
||||||
)
|
)
|
||||||
@@ -425,8 +425,8 @@ class ManifestParser(object):
|
|||||||
build_options, ctx, self, src_dir, build_dir, inst_dir, build_doc
|
build_options, ctx, self, src_dir, build_dir, inst_dir, build_doc
|
||||||
)
|
)
|
||||||
|
|
||||||
if builder == "OpenBCM":
|
if builder == "OpenNSA":
|
||||||
return OpenBCMBuilder(build_options, ctx, self, src_dir, inst_dir)
|
return OpenNSABuilder(build_options, ctx, self, src_dir, inst_dir)
|
||||||
|
|
||||||
raise KeyError("project %s has no known builder" % (self.name))
|
raise KeyError("project %s has no known builder" % (self.name))
|
||||||
|
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
[manifest]
|
[manifest]
|
||||||
name = OpenBCM
|
name = OpenNSA
|
||||||
|
|
||||||
[git]
|
[git]
|
||||||
repo_url = https://github.com/Broadcom-Network-Switching-Software/OpenBCM.git
|
repo_url = https://github.com/Broadcom-Network-Switching-Software/OpenNSA.git
|
||||||
|
|
||||||
[build.os=linux]
|
[build.os=linux]
|
||||||
builder = OpenBCM
|
builder = OpenNSA
|
||||||
|
|
||||||
[build.not(os=linux)]
|
[build.not(os=linux)]
|
||||||
builder = nop
|
builder = nop
|
Reference in New Issue
Block a user