Skip to content

Commit

Permalink
rimage: use platform extra flags when signing LLEXT modules
Browse files Browse the repository at this point in the history
The user can configure west to pass additional arguments to rimage
for signing, we need to use them when signing LLEXT modules too.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Sep 24, 2024
1 parent f2efd4a commit e936b3a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/xtensa-build-zephyr.py
Original file line number Diff line number Diff line change
Expand Up @@ -957,8 +957,11 @@ def install_lib(sof_lib_dir, abs_build_dir, platform_wconfig):
rimage_cmd = shlex.split(platform_wconfig.get('rimage.path'))[0]
sign_cmd = [rimage_cmd, "-o", str(llext_output),
"-e", "-c", str(rimage_cfg),
"-k", str(signing_key), "-l", "-r",
str(llext_input)]
"-k", str(signing_key), "-l", "-r"]
_ws_args = platform_wconfig.get("rimage.extra-args")
if _ws_args is not None:
sign_cmd.extend(shlex.split(_ws_args))
sign_cmd.append(str(llext_input))
execute_command(sign_cmd, cwd=west_top)

# An intuitive way to make this multiline would be
Expand Down

0 comments on commit e936b3a

Please sign in to comment.