1# Copyright (c) 2023 Nordic Semiconductor ASA 2# Copyright 2024 NXP 3# SPDX-License-Identifier: Apache-2.0 4 5if("${SB_CONFIG_NET_CORE_BOARD}" STREQUAL "") 6 message(FATAL_ERROR 7 "Target ${BOARD} not supported for this sample. " 8 "There is no remote board selected in Kconfig.sysbuild") 9endif() 10 11set(REMOTE_APP remote) 12 13ExternalZephyrProject_Add( 14 APPLICATION ${REMOTE_APP} 15 SOURCE_DIR ${APP_DIR}/${REMOTE_APP} 16 BOARD ${SB_CONFIG_NET_CORE_BOARD} 17) 18 19# Add dependencies so that the remote sample will be built first 20# This is required because some primary cores need information from the 21# remote core's build, such as the output image's LMA 22add_dependencies(${DEFAULT_IMAGE} ${REMOTE_APP}) 23sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} ${REMOTE_APP}) 24