Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion scripts/xtensa-build-zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ def parse_args():
help="""Do not create a tar file of the installed firmware files under build-sof-staging.""")
parser.add_argument("--version", required=False, action="store_true",
help="Prints version of this script.")
parser.add_argument("-m", "--menuconfig", required=False, action="store_true",
help="Build menuconfig for target")

args = parser.parse_args()

Expand Down Expand Up @@ -854,7 +856,10 @@ def build_platforms():
PLAT_CONFIG = platform_dict["PLAT_CONFIG"]
build_cmd = ["west"]
build_cmd += ["-v"] * args.verbose
build_cmd += ["build", "--build-dir", platform_build_dir_name]
if args.menuconfig:
build_cmd += ["build", "-t", "menuconfig", "--build-dir", platform_build_dir_name]
else:
build_cmd += ["build", "--build-dir", platform_build_dir_name]
source_dir = pathlib.Path(SOF_TOP, "app")
build_cmd += ["--board", PLAT_CONFIG, str(source_dir)]
if args.pristine:
Expand Down Expand Up @@ -917,6 +922,10 @@ def build_platforms():
else: # unknown failure
raise cpe

# no output to display if building menuconfig
if args.menuconfig:
return

# reproducible-zephyr.ri is less useful now that show_installed_files() shows
# checksums too. However: - it's still useful when only the .ri file is
# available (no build logs for the other image), - it makes sure sof_ri_info.py
Expand Down Expand Up @@ -1307,6 +1316,8 @@ def main():

build_rimage()
build_platforms()
if args.menuconfig:
return
if not args.no_tarball:
create_tarball()
show_installed_files()
Expand Down