Skip to content

Commit 4831c16

Browse files
committed
scripts: board gen: Default to nrfutil and align with upstream
Default to nrfutil on all boards and also add some changes made upstream in the meantime. Signed-off-by: Carles Cufi <[email protected]>
1 parent b0491d4 commit 4831c16

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
board_runner_args(jlink "--device={{ soc | replace("nrf", "nRF") }}_xx{{ variant[2:] | upper }}" "--speed=4000")
2-
31
set(OPENOCD_NRF5_SUBFAMILY "nrf52")
2+
board_runner_args(jlink "--device={{ soc | replace("nrf", "nRF") }}_xx{{ variant[2:] | upper }}" "--speed=4000")
43
board_runner_args(pyocd "--target={{ soc }}" "--frequency=4000000")
54

6-
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
75
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
6+
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
87
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
98
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)
109
include(${ZEPHYR_BASE}/boards/common/openocd-nrf5.board.cmake)

scripts/west_commands/create_board/templates/nrf53/board.cmake.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ if(CONFIG_BOARD_{{ board | upper }}_NRF5340_CPUNET)
1414
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
1515
endif()
1616

17-
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
1817
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
18+
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
1919
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

scripts/west_commands/create_board/templates/nrf54l/board.cmake.jinja2

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@ elseif (CONFIG_SOC_{{ soc | upper }}_CPUFLPR)
44
board_runner_args(jlink "--device={{ soc | replace("nrf", "nRF") | replace("l", "L") }}_RV32" "--speed=4000")
55
endif()
66

7+
if(CONFIG_BOARD_{{ board | upper }}_{{ soc | upper }}_NS)
8+
set(TFM_PUBLIC_KEY_FORMAT "full")
9+
endif()
10+
11+
if(CONFIG_TFM_FLASH_MERGED_BINARY)
12+
set_property(TARGET runners_yaml_props_target PROPERTY hex_file "${CMAKE_BINARY_DIR}/tfm_merged.hex")
13+
endif()
14+
715
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
816
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

scripts/west_commands/create_board/templates/nrf91/board.cmake.jinja2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ endif()
88

99
board_runner_args(jlink "--device={{ soc | replace("nrf", "nRF") }}_{{ 'xxAA' if soc == 'nrf9160' else 'xxCA' }}" "--speed=4000")
1010

11+
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)
1112
include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake)
1213
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

0 commit comments

Comments
 (0)