tests: drivers: mbox: mbox_data: Fix usage of board name checking
Fixes using outdated hwmv1 board name checking with proper board defines Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
parent
931d286b57
commit
0c936f8bda
3 changed files with 17 additions and 20 deletions
|
|
@ -9,13 +9,12 @@ find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr)
|
set(REMOTE_ZEPHYR_DIR ${CMAKE_CURRENT_BINARY_DIR}/../remote/zephyr)
|
||||||
|
|
||||||
if(("${BOARD}" STREQUAL "mimxrt1170_evkb") OR
|
if(CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR
|
||||||
("${BOARD}" STREQUAL "mimxrt1170_evk") OR
|
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
|
||||||
("${BOARD}" STREQUAL "mimxrt1160_evk") OR
|
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0)
|
||||||
("${BOARD}" STREQUAL "lpcxpresso55s69"))
|
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
|
||||||
message(STATUS "${BOARD} compile as Main in this sample")
|
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(mbox_data_ipc)
|
project(mbox_data_ipc)
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,12 @@ cmake_minimum_required(VERSION 3.20.0)
|
||||||
|
|
||||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||||
|
|
||||||
if(("${BOARD}" STREQUAL "mimxrt1170_evkb") OR
|
if(CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM4 OR
|
||||||
("${BOARD}" STREQUAL "mimxrt1170_evk") OR
|
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM4 OR
|
||||||
("${BOARD}" STREQUAL "mimxrt1160_evk") OR
|
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1)
|
||||||
("${BOARD}" STREQUAL "lpcxpresso55s69"))
|
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample")
|
||||||
message(STATUS "${BOARD} compile as remote in this sample")
|
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "${BOARD} is not supported for this sample")
|
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
project(mbox_data_ipc_remote)
|
project(mbox_data_ipc_remote)
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,9 @@ ExternalZephyrProject_Add(
|
||||||
BOARD ${SB_CONFIG_REMOTE_BOARD}
|
BOARD ${SB_CONFIG_REMOTE_BOARD}
|
||||||
)
|
)
|
||||||
|
|
||||||
if ("${BOARD}" STREQUAL "mimxrt1170_evkb" OR
|
if(SB_CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
|
||||||
"${BOARD}" STREQUAL "mimxrt1170_evk" OR
|
SB_CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR
|
||||||
"${BOARD}" STREQUAL "mimxrt1160_evk"
|
SB_CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0)
|
||||||
)
|
|
||||||
# For these NXP boards the main core application is dependent on
|
# For these NXP boards the main core application is dependent on
|
||||||
# 'zephyr_image_info.h' generated by remote application.
|
# 'zephyr_image_info.h' generated by remote application.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue