Skip to content

Commit

Permalink
soc: silabs: siwg917: Get rid of siwx917_isp_prepare.py
Browse files Browse the repository at this point in the history
When commander is called with an .hex file as argument, it is able to
generate the RPS information on the fly. So, we can take advantage of
this feature and get rid of siwx917_isp_prepare.py.

Signed-off-by: Jérôme Pouiller <[email protected]>
  • Loading branch information
jerome-pouiller committed Oct 18, 2024
1 parent a240cfb commit ee2b420
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 200 deletions.
4 changes: 2 additions & 2 deletions boards/silabs/radio_boards/siwx917_rb4338a/board.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# 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" "--file-type=hex"
"--file=${PROJECT_BINARY_DIR}/${KERNEL_HEX_NAME}")
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
Expand Down
8 changes: 0 additions & 8 deletions soc/silabs/silabs_siwx917/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,3 @@
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(siwg917)

set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/siwx917_isp_prepare.py
--rom_addr ${CONFIG_FLASH_BASE_ADDRESS}
--out_hex ${KERNEL_HEX_NAME}
${KERNEL_BIN_NAME}
${KERNEL_BIN_NAME}.rps
)
190 changes: 0 additions & 190 deletions soc/silabs/silabs_siwx917/siwx917_isp_prepare.py

This file was deleted.

0 comments on commit ee2b420

Please sign in to comment.