Add a new "hello world" sample that can be built for multiple board targets. This sample can be used to see if Zephyr boots successfully with _minimal_ configuration on SoCs with multiple cores, or boards with multiple SoCs. The following configurations are provided for now: - nRF5340 DK: cpuapp+cpunet - nRF54H20 DK: cpuapp+cpurad, cpuapp+cpuppr, cpuapp+cpuppr(xip) Note that because of a quoting bug somewhere in the build system, SB_CONFIG_REMOTE_BOARD is specified in .conf files (see the sysbuild/ directory). This should be fixed in the near future. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
16 lines
415 B
CMake
16 lines
415 B
CMake
# Copyright (c) 2024 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if("${SB_CONFIG_REMOTE_BOARD}" STREQUAL "")
|
|
message(FATAL_ERROR "REMOTE_BOARD must be set to a valid board name")
|
|
endif()
|
|
|
|
ExternalZephyrProject_Add(
|
|
APPLICATION remote
|
|
SOURCE_DIR ${APP_DIR}/remote
|
|
BOARD ${SB_CONFIG_REMOTE_BOARD}
|
|
)
|
|
|
|
add_dependencies(hello_world remote)
|
|
sysbuild_add_dependencies(FLASH hello_world remote)
|