Skip to content

Commit 77425f1

Browse files
nordicjmArekBalysNordic
authored andcommitted
[nrf fromtree] boards: nordic: Fix some CMake inconsistencies
Fixes some oddities with CMake code Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 4fa91b5)
1 parent ed5bba8 commit 77425f1

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

boards/nordic/nrf5340dk/board.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP_NS)
55
endif()
66

77
if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP_NS)
8-
board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
8+
board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
99
endif()
1010

1111
if(CONFIG_TFM_FLASH_MERGED_BINARY)
1212
set_property(TARGET runners_yaml_props_target PROPERTY hex_file tfm_merged.hex)
1313
endif()
1414

1515
if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET)
16-
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
16+
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
1717
endif()
1818

1919
include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake)

boards/nordic/nrf54l15dk/board.cmake

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# Copyright (c) 2024 Nordic Semiconductor ASA
22
# SPDX-License-Identifier: Apache-2.0
33

4-
if(CONFIG_SOC_NRF54L05_CPUAPP OR CONFIG_SOC_NRF54L10_CPUAPP OR
5-
CONFIG_SOC_NRF54L15_CPUAPP)
4+
if(CONFIG_SOC_NRF54L05_CPUAPP OR CONFIG_SOC_NRF54L10_CPUAPP OR CONFIG_SOC_NRF54L15_CPUAPP)
65
board_runner_args(jlink "--device=cortex-m33" "--speed=4000")
7-
elseif(CONFIG_SOC_NRF54L05_CPUFLPR OR CONFIG_SOC_NRF54L10_CPUFLPR OR
8-
CONFIG_SOC_NRF54L15_CPUFLPR)
6+
elseif(CONFIG_SOC_NRF54L05_CPUFLPR OR CONFIG_SOC_NRF54L10_CPUFLPR OR CONFIG_SOC_NRF54L15_CPUFLPR)
97
set(JLINKSCRIPTFILE ${CMAKE_CURRENT_LIST_DIR}/support/nrf54l_05_10_15_cpuflpr.JLinkScript)
108
board_runner_args(jlink "--device=RISC-V" "--speed=4000" "-if SW" "--tool-opt=-jlinkscriptfile ${JLINKSCRIPTFILE}")
119
endif()

boards/nordic/nrf7002dk/board.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# Copyright (c) 2024 Nordic Semiconductor ASA
22
# SPDX-License-Identifier: Apache-2.0
33

4-
if(CONFIG_BOARD_NRF7002DK_NRF5340_CPUAPP OR
5-
CONFIG_BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001)
4+
if(CONFIG_BOARD_NRF7002DK_NRF5340_CPUAPP OR CONFIG_BOARD_NRF7002DK_NRF5340_CPUAPP_NRF7001)
65
board_runner_args(jlink "--device=nrf5340_xxaa_app" "--speed=4000")
7-
endif()
8-
9-
if(CONFIG_BOARD_NRF7002DK_NRF5340_CPUNET)
6+
elseif(CONFIG_BOARD_NRF7002DK_NRF5340_CPUNET)
107
board_runner_args(jlink "--device=nrf5340_xxaa_net" "--speed=4000")
118
endif()
129

0 commit comments

Comments
 (0)