blob: ead989529b3cf0b84762f3575d6673e72e227893 [file] [log] [blame]
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2022 NXP
# Add external project
ExternalZephyrProject_Add(
APPLICATION ipm_mcux_remote
SOURCE_DIR ${APP_DIR}/remote
BOARD ${SB_CONFIG_IPM_REMOTE_BOARD}
)
# Add dependencies so that the remote sample will be built first
# This is required because some primary cores need information from the
# remote core's build, such as the output image's LMA
add_dependencies(${DEFAULT_IMAGE} ipm_mcux_remote)
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} ipm_mcux_remote)
if(SB_CONFIG_BOOTLOADER_MCUBOOT)
# Make sure MCUboot is flashed first
sysbuild_add_dependencies(FLASH ipm_mcux_remote mcuboot)
endif()