summaryrefslogtreecommitdiff
path: root/build.py
diff options
context:
space:
mode:
author Sonny Sasaka <sonnysasaka@google.com> 2022-03-28 10:31:34 -0700
committer Sonny Sasaka <sonnysasaka@google.com> 2022-05-02 17:20:03 -0700
commitae9f652bc1931442d84cd6a976f19e7248b13a0a (patch)
tree792c3267fbe8131ff14660c3b5e4bb646964a9ab /build.py
parentdc2a40bb48c4ca8495e45e93c98ddad19aa24dd8 (diff)
Floss: Add protobuf build to btmanagerd
Prepares build system to support protobuf with powerd D-Bus integration. Bug: 224606285 Tag: #floss Test: Manual - build.py Change-Id: I9b701a84d11dde3ed9414711a371707106f28b57
Diffstat (limited to 'build.py')
-rwxr-xr-xbuild.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/build.py b/build.py
index 2bffdc3182..b32c5eb44f 100755
--- a/build.py
+++ b/build.py
@@ -246,6 +246,7 @@ class HostBuild():
self.env['CARGO_HOME'] = os.path.join(self.output_dir, 'cargo_home')
self.env['RUSTFLAGS'] = self._generate_rustflags()
self.env['CXX_ROOT_PATH'] = os.path.join(self.platform_dir, 'bt')
+ self.env['CROS_SYSTEM_API_ROOT'] = os.path.join(self.platform_dir, 'system_api')
def run_command(self, target, args, cwd=None, env=None):
""" Run command and stream the output.
@@ -606,6 +607,7 @@ class Bootstrap():
# Symlink things
symlinks = [
(os.path.join(self.git_dir, 'platform2', 'common-mk'), os.path.join(self.staging_dir, 'common-mk')),
+ (os.path.join(self.git_dir, 'platform2', 'system_api'), os.path.join(self.staging_dir, 'system_api')),
(os.path.join(self.git_dir, 'platform2', '.gn'), os.path.join(self.staging_dir, '.gn')),
(os.path.join(self.bt_dir), os.path.join(self.staging_dir, 'bt')),
(os.path.join(self.git_dir, 'rust_crates'), os.path.join(self.external_dir, 'rust')),