summaryrefslogtreecommitdiff
path: root/kleaf/bazel.py
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2023-06-22 00:19:54 -0700
committerYifan Hong <elsk@google.com>2023-06-27 22:46:22 +0000
commit73d05a76a4133f12914e4aed618d399a88619ab3 (patch)
treefacf2bee7637b95d6fe3ed5da8cfcfe615141fbc /kleaf/bazel.py
parenta0c1c498575f4e0d6ee0afdf1f60e38e748eff6c (diff)
downloadbuild-73d05a76a4133f12914e4aed618d399a88619ab3.tar.gz
kleaf: Move --//common:use_prebuilt_gki to //build/kernel.
Use a central flag for the use_prebuilt_gki boolean flag. Even though the flag only affects ACK trees that calls define_common_kernels(), moving the flag from the ACK tree to //build/kernel avoids the dependency bazel.py (which is under //build/kernel) to //common. This is the last dependency from //build/kernel/... to //common (except tests). The //common:use_prebuilt_gki{,_set} targets are marked deprecated. However, for backwards compatibility, they are not removed, and they are aliased to //build/kernel/kleaf:use_prebuilt_gki{,_is_true}. After this change, if a device.rc specifies --//common:use_prebuilt_gki, it may optionally switch to a cleaner --use_prebuilt_gki that avoids the deprecation warning. Test: TH Bug: 287700360 Bug: 230672545 Change-Id: I1b3c3e3fe97db7587926df03d3ff8db1b8e5d712
Diffstat (limited to 'kleaf/bazel.py')
-rwxr-xr-xkleaf/bazel.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kleaf/bazel.py b/kleaf/bazel.py
index cf0e9d9..087a3e1 100755
--- a/kleaf/bazel.py
+++ b/kleaf/bazel.py
@@ -178,7 +178,7 @@ class BazelWrapper(object):
self.transformed_command_args.append("--color=yes")
if self.known_args.use_prebuilt_gki:
- self.transformed_command_args.append("--//common:use_prebuilt_gki")
+ self.transformed_command_args.append("--use_prebuilt_gki")
self.transformed_command_args.append("--config=internet")
self.env[
"KLEAF_DOWNLOAD_BUILD_NUMBER_MAP"] = f"gki_prebuilts={self.known_args.use_prebuilt_gki}"