samples|tests several: Support using nrf5340bsim hwmv2 names
For all samples which handle the nrf5340bsim in some special way (for example in sysbuild files, or by checking what samples are supported) handle also building with the hwmv2 names. Also, let's fix the cmake info message in these respective samples which tells the user which board target is used for which part of the app. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
a994dc5a35
commit
4235efc7bd
19 changed files with 28 additions and 6 deletions
|
@ -8,6 +8,7 @@ config NET_CORE_BOARD
|
|||
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk"
|
||||
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if "$(BOARD)" = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if "$(BOARD)$(BOARD_IDENTIFIER)" = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NET_CORE_IMAGE_HCI_IPC
|
||||
bool "HCI IPC image on network core"
|
||||
|
|
|
@ -8,6 +8,7 @@ config NET_CORE_BOARD
|
|||
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk"
|
||||
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if "$(BOARD)" = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if "$(BOARD)$(BOARD_IDENTIFIER)" = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NET_CORE_IMAGE_HCI_IPC
|
||||
bool "HCI IPC image on network core"
|
||||
|
|
|
@ -8,6 +8,7 @@ config NET_CORE_BOARD
|
|||
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk"
|
||||
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if "$(BOARD)" = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if "$(BOARD)$(BOARD_IDENTIFIER)" = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NET_CORE_IMAGE_HCI_IPC
|
||||
bool "HCI IPC image on network core"
|
||||
|
|
|
@ -8,6 +8,7 @@ config NET_CORE_BOARD
|
|||
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk"
|
||||
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if "$(BOARD)" = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NET_CORE_IMAGE_HCI_IPC
|
||||
bool "HCI IPC image on network core"
|
||||
|
|
|
@ -8,6 +8,7 @@ config NET_CORE_BOARD
|
|||
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk"
|
||||
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if "$(BOARD)" = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NET_CORE_IMAGE_HCI_IPC
|
||||
bool "HCI IPC image on network core"
|
||||
|
|
|
@ -8,6 +8,7 @@ config NET_CORE_BOARD
|
|||
default "nrf5340dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340dk"
|
||||
default "nrf5340_audio_dk/nrf5340/cpunet" if "$(BOARD)" = "nrf5340_audio_dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if "$(BOARD)" = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NET_CORE_IMAGE_HCI_IPC
|
||||
bool "HCI IPC image on network core"
|
||||
|
|
|
@ -8,8 +8,9 @@ cmake_minimum_required(VERSION 3.20.0)
|
|||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
|
||||
if(("${BOARD}" STREQUAL "nrf5340dk") OR
|
||||
("${BOARD}${BOARD_IDENTIFIER}" STREQUAL "nrf5340bsim/nrf5340/cpuapp") OR
|
||||
("${BOARD}" STREQUAL "nrf5340bsim_nrf5340_cpuapp"))
|
||||
message(INFO " ${BOARD} used for Application Core")
|
||||
message(INFO " ${BOARD}${BOARD_IDENTIFIER} used for Application Core")
|
||||
else()
|
||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
||||
endif()
|
||||
|
|
|
@ -8,3 +8,4 @@ config NET_CORE_BOARD
|
|||
string
|
||||
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
|
|
@ -8,8 +8,9 @@ cmake_minimum_required(VERSION 3.20.0)
|
|||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
|
||||
if(("${BOARD}" STREQUAL "nrf5340dk") OR
|
||||
("${BOARD}" STREQUAL "nrf5340bsim_nrf5340_cpunet"))
|
||||
message(INFO " ${BOARD} used for Network Core")
|
||||
("${BOARD}" STREQUAL "nrf5340bsim_nrf5340_cpunet") OR
|
||||
("${BOARD}" STREQUAL "nrf5340bsim"))
|
||||
message(INFO " ${BOARD}${BOARD_IDENTIFIER} used for Network Core")
|
||||
else()
|
||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
||||
endif()
|
||||
|
|
|
@ -12,6 +12,7 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|||
set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr)
|
||||
|
||||
if(("${BOARD}" STREQUAL "nrf5340dk") OR
|
||||
("${BOARD}${BOARD_IDENTIFIER}" STREQUAL "nrf5340bsim/nrf5340/cpuapp") OR
|
||||
("${BOARD}" STREQUAL "nrf5340bsim_nrf5340_cpuapp") OR
|
||||
("${BOARD}" STREQUAL "adp_xc7k") OR
|
||||
("${BOARD}" STREQUAL "mimxrt1170_evkb") OR
|
||||
|
@ -19,7 +20,7 @@ if(("${BOARD}" STREQUAL "nrf5340dk") OR
|
|||
("${BOARD}" STREQUAL "mimxrt1160_evk") OR
|
||||
("${BOARD}" STREQUAL "lpcxpresso55s69") OR
|
||||
("${BOARD}" STREQUAL "nrf54h20dk"))
|
||||
message(STATUS "${BOARD} compile as Main in this sample")
|
||||
message(STATUS "${BOARD}${BOARD_IDENTIFIER} compile as Main in this sample")
|
||||
else()
|
||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
||||
endif()
|
||||
|
|
|
@ -9,6 +9,7 @@ config REMOTE_BOARD
|
|||
string
|
||||
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
default "adp_xc7k/ae350" if $(BOARD) = "adp_xc7k"
|
||||
default "mimxrt1170_evkb/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evkb"
|
||||
default "mimxrt1170_evk/mimxrt1176/cm4" if $(BOARD) = "mimxrt1170_evk"
|
||||
|
|
|
@ -10,6 +10,7 @@ cmake_minimum_required(VERSION 3.20.0)
|
|||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
|
||||
if(("${BOARD}" STREQUAL "nrf5340dk") OR
|
||||
("${BOARD}" STREQUAL "nrf5340bsim") OR
|
||||
("${BOARD}" STREQUAL "nrf5340bsim_nrf5340_cpunet") OR
|
||||
("${BOARD}" STREQUAL "mimxrt1170_evkb") OR
|
||||
("${BOARD}" STREQUAL "mimxrt1170_evk") OR
|
||||
|
@ -17,7 +18,7 @@ if(("${BOARD}" STREQUAL "nrf5340dk") OR
|
|||
("${BOARD}" STREQUAL "lpcxpresso55s69") OR
|
||||
("${BOARD}" STREQUAL "adp_xc7k") OR
|
||||
("${BOARD}" STREQUAL "nrf54h20dk"))
|
||||
message(STATUS "${BOARD} compile as remote in this sample")
|
||||
message(STATUS "${BOARD}${BOARD_IDENTIFIER} compile as remote in this sample")
|
||||
else()
|
||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
||||
endif()
|
||||
|
|
|
@ -9,8 +9,9 @@ cmake_minimum_required(VERSION 3.20.0)
|
|||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
|
||||
if(NOT(("${BOARD}" STREQUAL "nrf5340dk")
|
||||
OR ("${BOARD}${BOARD_IDENTIFIER}" STREQUAL "nrf5340bsim/nrf5340/cpuapp")
|
||||
OR ("${BOARD}" STREQUAL "nrf5340bsim_nrf5340_cpuapp")))
|
||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
||||
message(FATAL_ERROR "${BOARD}${BOARD_IDENTIFIER} is not supported for this sample")
|
||||
endif()
|
||||
|
||||
project(log_multidomain)
|
||||
|
|
|
@ -8,3 +8,4 @@ config NET_CORE_BOARD
|
|||
string
|
||||
default "nrf5340dk/nrf5340/cpunet" if $(BOARD) = "nrf5340dk"
|
||||
default "nrf5340bsim_nrf5340_cpunet" if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
|
|
@ -8,3 +8,4 @@ config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
|||
# Let's pass the test arguments to the application MCU test
|
||||
# otherwise by default they would have gone to the net core.
|
||||
default 0 if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default 0 if $(BOARD) = "nrf5340bsim"
|
||||
|
|
|
@ -8,3 +8,4 @@ config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
|||
# Let's pass the test arguments to the application MCU test
|
||||
# otherwise by default they would have gone to the net core.
|
||||
default 0 if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default 0 if $(BOARD) = "nrf5340bsim"
|
||||
|
|
|
@ -6,9 +6,11 @@ source "share/sysbuild/Kconfig"
|
|||
config NET_CORE_BOARD
|
||||
string
|
||||
default "nrf5340bsim_nrf5340_cpunet" if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
||||
int
|
||||
# Let's pass the test arguments to the application MCU test
|
||||
# otherwise by default they would have gone to the net core.
|
||||
default 0 if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default 0 if $(BOARD) = "nrf5340bsim"
|
||||
|
|
|
@ -6,9 +6,11 @@ source "share/sysbuild/Kconfig"
|
|||
config NET_CORE_BOARD
|
||||
string
|
||||
default "nrf5340bsim_nrf5340_cpunet" if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
||||
int
|
||||
# Let's pass the test arguments to the application MCU test
|
||||
# otherwise by default they would have gone to the net core.
|
||||
default 0 if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default 0 if $(BOARD) = "nrf5340bsim"
|
||||
|
|
|
@ -6,9 +6,11 @@ source "share/sysbuild/Kconfig"
|
|||
config NET_CORE_BOARD
|
||||
string
|
||||
default "nrf5340bsim_nrf5340_cpunet" if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default "nrf5340bsim/nrf5340/cpunet" if $(BOARD)$(BOARD_IDENTIFIER) = "nrf5340bsim/nrf5340/cpuapp"
|
||||
|
||||
config NATIVE_SIMULATOR_PRIMARY_MCU_INDEX
|
||||
int
|
||||
# Let's pass the test arguments to the application MCU test
|
||||
# otherwise by default they would have gone to the net core.
|
||||
default 0 if $(BOARD) = "nrf5340bsim_nrf5340_cpuapp"
|
||||
default 0 if $(BOARD) = "nrf5340bsim"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue