2022-08-04 22:35:30 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
# Copyright 2022 NXP
|
|
|
|
|
|
|
|
# Add external project
|
|
|
|
ExternalZephyrProject_Add(
|
|
|
|
APPLICATION openamp_remote
|
|
|
|
SOURCE_DIR ${APP_DIR}/remote
|
|
|
|
BOARD ${SB_CONFIG_OPENAMP_REMOTE_BOARD}
|
|
|
|
)
|
|
|
|
|
2023-05-15 17:19:47 +08:00
|
|
|
# Add dependencies so that the remote sample will be built first
|
2022-08-04 22:35:30 +08:00
|
|
|
# This is required because some primary cores need information from the
|
|
|
|
# remote core's build, such as the output image's LMA
|
2024-06-26 18:14:51 +08:00
|
|
|
add_dependencies(${DEFAULT_IMAGE} openamp_remote)
|
|
|
|
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} openamp_remote)
|
2023-05-15 17:19:47 +08:00
|
|
|
|
|
|
|
if(SB_CONFIG_BOOTLOADER_MCUBOOT)
|
|
|
|
# Make sure MCUboot is flashed first
|
|
|
|
sysbuild_add_dependencies(FLASH openamp_remote mcuboot)
|
|
|
|
endif()
|