Skip to content

Commit 88f30f3

Browse files
nordicjmnashif
authored andcommitted
samples: Use DEFAULT_IMAGE for sysbuild
Uses the variable for the default image when adding sysbuild dependencies so that they can be copied out-of-tree and still work Signed-off-by: Jamie McCrae <[email protected]>
1 parent 116fdc1 commit 88f30f3

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

samples/drivers/ipm/ipm_mcux/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ ExternalZephyrProject_Add(
1212
# Add dependencies so that the remote sample will be built first
1313
# This is required because some primary cores need information from the
1414
# remote core's build, such as the output image's LMA
15-
add_dependencies(ipm_mcux ipm_mcux_remote)
16-
sysbuild_add_dependencies(CONFIGURE ipm_mcux ipm_mcux_remote)
15+
add_dependencies(${DEFAULT_IMAGE} ipm_mcux_remote)
16+
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} ipm_mcux_remote)
1717

1818
if(SB_CONFIG_BOOTLOADER_MCUBOOT)
1919
# Make sure MCUboot is flashed first

samples/subsys/ipc/openamp/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ ExternalZephyrProject_Add(
1212
# Add dependencies so that the remote sample will be built first
1313
# This is required because some primary cores need information from the
1414
# remote core's build, such as the output image's LMA
15-
add_dependencies(openamp openamp_remote)
16-
sysbuild_add_dependencies(CONFIGURE openamp openamp_remote)
15+
add_dependencies(${DEFAULT_IMAGE} openamp_remote)
16+
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} openamp_remote)
1717

1818
if(SB_CONFIG_BOOTLOADER_MCUBOOT)
1919
# Make sure MCUboot is flashed first

samples/subsys/ipc/rpmsg_service/sysbuild.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ ExternalZephyrProject_Add(
1212
BOARD ${SB_CONFIG_RPMSG_REMOTE_BOARD}
1313
)
1414

15-
add_dependencies(rpmsg_service rpmsg_service_remote)
15+
add_dependencies(${DEFAULT_IMAGE} rpmsg_service_remote)

samples/sysbuild/hello_world/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ ExternalZephyrProject_Add(
1111
BOARD ${SB_CONFIG_REMOTE_BOARD}
1212
)
1313

14-
add_dependencies(hello_world remote)
15-
sysbuild_add_dependencies(FLASH hello_world remote)
14+
add_dependencies(${DEFAULT_IMAGE} remote)
15+
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} remote)

0 commit comments

Comments
 (0)