Skip to content

Commit e047ccd

Browse files
marc-hbkv2019i
authored andcommitted
xtensa-build-zephyr.py: add --extra-rimage-args option
Temporary solution until the `west sign` situation is finalized upstream, see zephyrproject-rtos/zephyr/pull/52942 and others. Use shlex.split() that supports both some quoting and empty strings nicely. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 9c6e29e commit e047ccd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/xtensa-build-zephyr.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,13 @@ def parse_args():
250250
help="""Use an output subdirectory for each platform.
251251
Otherwise, all firmware files are installed in the same staging directory by default.""")
252252

253+
parser.add_argument(
254+
"--extra-rimage-args",
255+
default="",
256+
help="""Temporary solution until the `west sign` situation
257+
is finalized upstream, see zephyrproject-rtos/zephyr/pull/52942 and others.""",
258+
)
259+
253260
parser.add_argument("--no-interactive", default=False, action="store_true",
254261
help="""Run script in non-interactive mode when user input can not be provided.
255262
This should be used with programmatic script invocations (eg. Continuous Integration).
@@ -648,6 +655,8 @@ def build_platforms():
648655

649656
sign_cmd += ["-b", sof_build_vers]
650657

658+
sign_cmd += shlex.split(args.extra_rimage_args)
659+
651660
if args.ipc == "IPC4":
652661
rimage_desc = pathlib.Path(SOF_TOP, "rimage", "config", platform_dict["IPC4_RIMAGE_DESC"])
653662
sign_cmd += ["-c", str(rimage_desc)]

0 commit comments

Comments
 (0)