1# Copyright (c) 2025 Nordic Semiconductor ASA
2# SPDX-License-Identifier: Apache-2.0
3
4if("${SB_CONFIG_REMOTE_BOARD}" STREQUAL "")
5  message(FATAL_ERROR "REMOTE_BOARD must be set to a valid board name")
6endif()
7
8# Add remote project
9ExternalZephyrProject_Add(
10    APPLICATION remote
11    SOURCE_DIR ${APP_DIR}/remote
12    BOARD ${SB_CONFIG_REMOTE_BOARD}
13    BOARD_REVISION ${BOARD_REVISION}
14  )
15
16# Add a dependency so that the remote image will be built and flashed first
17add_dependencies(nrfs remote)
18sysbuild_add_dependencies(FLASH nrfs remote)
19