Skip to content

Commit 1d87b03

Browse files
soc: silabs: siwx91x: Clean output names
The siwx91x need a specific firmware image format. These image end with .rps extension. The current name of the image is zephyr.bin.rps. However, the .bin suffix is not relevant. It makes even more sense if we consider the output of west sign: zephyr.signed.bin.rps. We can simplify these name by remove the .bin suffix. Signed-off-by: Jérôme Pouiller <[email protected]>
1 parent 235bf93 commit 1d87b03

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/west_commands/sign.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,8 @@ def get_keys(command, build_conf):
685685
def get_input_output(command, build_dir, build_conf):
686686
kernel_prefix = (pathlib.Path(build_dir) / 'zephyr' /
687687
build_conf.get('CONFIG_KERNEL_BIN_NAME', "zephyr"))
688-
in_file = f'{kernel_prefix}.bin.rps'
689-
out_file = command.args.sbin or f'{kernel_prefix}.signed.bin.rps'
688+
in_file = f'{kernel_prefix}.rps'
689+
out_file = command.args.sbin or f'{kernel_prefix}.signed.rps'
690690
return (in_file, out_file)
691691

692692
def sign(self, command, build_dir, build_conf, formats):

soc/silabs/silabs_siwx91x/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
1111
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/siwx91x_isp_prepare.py
1212
--load-addr ${FLASH_LOAD_ADDRESS}
1313
${KERNEL_BIN_NAME}
14-
${KERNEL_BIN_NAME}.rps
14+
${KERNEL_NAME}.rps
1515
)
1616
set_target_properties(runners_yaml_props_target
17-
PROPERTIES bin_file ${PROJECT_BINARY_DIR}/${KERNEL_BIN_NAME}.rps
17+
PROPERTIES bin_file ${PROJECT_BINARY_DIR}/${KERNEL_NAME}.rps
1818
)
1919

2020
if(CONFIG_SIWX91X_SIGN_KEY OR CONFIG_SIWX91X_MIC_KEY)
@@ -23,6 +23,6 @@ if(CONFIG_SIWX91X_SIGN_KEY OR CONFIG_SIWX91X_MIC_KEY)
2323
${WEST} sign -t silabs_commander --build-dir ${CMAKE_BINARY_DIR}
2424
)
2525
set_target_properties(runners_yaml_props_target
26-
PROPERTIES bin_file ${PROJECT_BINARY_DIR}/${KERNEL_NAME}.signed.bin.rps
26+
PROPERTIES bin_file ${PROJECT_BINARY_DIR}/${KERNEL_NAME}.signed.rps
2727
)
2828
endif()

0 commit comments

Comments
 (0)