From 8b7b9a3b4835de9b86b21e173a38cbb02099691e Mon Sep 17 00:00:00 2001 From: Guru Das Srinagesh Date: Fri, 21 Jul 2023 18:03:29 -0700 Subject: [PATCH] ANDROID: build: Fix menuconfig invocation Commit 02faddf96ab5 ("ANDROID: build: Add build_opts.txt file to output") changed the way targets are specified. This broke the menuconfig invocation, so fix it. Change-Id: I23610538d1dafe1f80acccfb13684819d27ee25e Signed-off-by: Guru Das Srinagesh --- build_with_bazel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build_with_bazel.py b/build_with_bazel.py index f80d7606f605..5dd0a713ff72 100755 --- a/build_with_bazel.py +++ b/build_with_bazel.py @@ -259,8 +259,9 @@ class BazelBuilder: def run_menuconfig(self): """Run menuconfig on all target-variant combos class is initialized with""" for t, v in self.target_list: - self.bazel("run", ["//{}:{}_{}_config".format(self.kernel_dir, t, v)], - bazel_target_opts=["menuconfig"]) + menuconfig_label = "//{}:{}_{}_config".format(self.kernel_dir, t, v) + menuconfig_target = [Target(self.workspace, t, v, menuconfig_label, self.out_dir)] + self.bazel("run", menuconfig_target, bazel_target_opts=["menuconfig"]) def write_opts(self, out_dir, user_opts=None): with open(os.path.join(out_dir, "build_opts.txt"), "w") as opt_file: