soc: silabs: siwx91x: Use runner props to select file to flash

Use runners_yaml_props_target to set the name of the file to
flash, rather than hard-coding it for each board.

Co-developed-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
This commit is contained in:
Jérôme Pouiller 2025-06-25 10:49:18 +02:00 committed by Daniel DeGrasse
parent 5e0ab3dad0
commit d2fb79886d
3 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,7 @@
# Copyright (c) 2024 Silicon Laboratories Inc.
# SPDX-License-Identifier: Apache-2.0
board_runner_args(silabs_commander "--device=SiWG917M111GTBA" "--file-type=bin"
"--file=${PROJECT_BINARY_DIR}/${KERNEL_BIN_NAME}.rps")
board_runner_args(silabs_commander "--device=SiWG917M111GTBA")
include(${ZEPHYR_BASE}/boards/common/silabs_commander.board.cmake)
# It is not possible to load/flash a firmware using JLink, but it is possible to

View File

@ -1,8 +1,7 @@
# Copyright (c) 2025 Silicon Laboratories Inc.
# SPDX-License-Identifier: Apache-2.0
board_runner_args(silabs_commander "--device=SiWG917M111GTBA" "--file-type=bin"
"--file=${PROJECT_BINARY_DIR}/${KERNEL_BIN_NAME}.rps")
board_runner_args(silabs_commander "--device=SiWG917M111GTBA")
include(${ZEPHYR_BASE}/boards/common/silabs_commander.board.cmake)
# It is not possible to load/flash a firmware using JLink, but it is possible to

View File

@ -12,3 +12,5 @@ set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
${KERNEL_BIN_NAME}
${KERNEL_BIN_NAME}.rps
)
# runners_yaml_props_target controls the file used by "west flash"
set_target_properties(runners_yaml_props_target PROPERTIES bin_file ${PROJECT_BINARY_DIR}/${KERNEL_BIN_NAME}.rps)