File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
soc/xtensa/intel_adsp/common Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,20 @@ add_custom_target(zephyr.ri ALL
121121 DEPENDS ${CMAKE_BINARY_DIR} /zephyr/zephyr.ri
122122)
123123
124+ # If some of your board(s) need to override default rimage parameters
125+ # then you can define WEST_SIGN_OPTS in boards/my/board/board.cmake.
126+ # Example:
127+ #
128+ # set(WEST_SIGN_OPTS -- -c "/home/sweet home/rimage/config/abc.toml" -i 4)
129+
130+ # Parameters after the double dash -- are passed through to rimage. For
131+ # other ways to override default rimage parameters check
132+ # boards/xtensa/intel_adsp_cavs25/doc/intel_adsp_generic.rst
133+
134+ # Warning: because `west sign` can also be used interactively, using
135+ # ${WEST_SIGN_OPTS} like this has _higher_ precedence than `west config
136+ # rimage.extra-args`! Avoid overriding default rimage parameters in
137+ # multiple places to avoid unexpected precedence rules.
124138add_custom_command (
125139 OUTPUT ${CMAKE_BINARY_DIR} /zephyr/zephyr.ri
126140 COMMENT "west sign --if-tool-available --tool rimage ..."
@@ -129,7 +143,7 @@ add_custom_command(
129143 # require signing. When rimage is missing, `west flash` fails with a
130144 # clear "zephyr.ri missing" error with an "rimage not found" warning
131145 # from west sign immediately before it.
132- COMMAND west sign --if-tool-available --tool rimage --build -dir ${CMAKE_BINARY_DIR}
146+ COMMAND west sign --if-tool-available --tool rimage --build -dir ${CMAKE_BINARY_DIR} ${WEST_SIGN_OPTS}
133147 DEPENDS gen_modules
134148 ${CMAKE_BINARY_DIR} /zephyr/boot.mod ${CMAKE_BINARY_DIR} /zephyr/main.mod
135149)
You can’t perform that action at this time.
0 commit comments