zephyr/samples/drivers/mbox_data/sysbuild.cmake
Tomas Galbicka 2589717852 samples: enable multicore samples for RT1180 board
This commit adds support for these multicore samples:
- samples/drivers/mbox
- samples/drivers/mbox_data
- samples/subsys/ipc/ipc_service/static_vrings
- samples/subsys/ipc/openamp

Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
2025-02-14 17:11:50 +01:00

29 lines
864 B
CMake

# Copyright 2024-2025 NXP
#
# SPDX-License-Identifier: Apache-2.0
if("${SB_CONFIG_REMOTE_BOARD}" STREQUAL "")
message(FATAL_ERROR
"Target ${BOARD} not supported for this sample. "
"There is no remote board selected in Kconfig.sysbuild")
endif()
set(REMOTE_APP remote)
ExternalZephyrProject_Add(
APPLICATION ${REMOTE_APP}
SOURCE_DIR ${APP_DIR}/${REMOTE_APP}
BOARD ${SB_CONFIG_REMOTE_BOARD}
)
if(SB_CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
SB_CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR
SB_CONFIG_BOARD_MIMXRT1180_EVK_MIMXRT1189_CM33 OR
SB_CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0)
# For these NXP boards the main core application is dependent on
# 'zephyr_image_info.h' generated by remote application.
# Let's build the remote application first
add_dependencies(${DEFAULT_IMAGE} ${REMOTE_APP})
endif()