zephyr/samples/subsys/ipc/openamp/sysbuild.cmake
Daniel DeGrasse e033677787 samples: openamp: update openamp sample to use sysbuild
Update IPC openamp sample to use sysbuild for multi core images.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
2022-11-15 14:46:02 +01:00

18 lines
553 B
CMake

# 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}
)
# Add a dependency so that the remote sample will be built and flashed 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(openamp openamp_remote)
# Place remote image first in the image list
set(IMAGES "openamp_remote" ${IMAGES})