Skip to content

Commit 61a73fb

Browse files
tejlmandrlubos
authored andcommitted
sysbuild: update image specific names to use DEFAULT_IMAGE
The image name is hard coded for dependency configuration, but when using sysbuild the image name of the default image is based on the name of the folder. This means that if sample is copied elsewhere for local modification the hard coded name may no longer match the default image name. Improve this by using DEFAULT_IMAGE variable instead of hard coded name. Jira: NCSDK-28028 Signed-off-by: Torsten Rasmussen <[email protected]> (cherry picked from commit 53bebe9)
1 parent 9291fdf commit 61a73fb

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

applications/machine_learning/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ if(SB_CONFIG_PARTITION_MANAGER)
3131
endif()
3232

3333
# Add a dependency so that the remote image will be built first.
34-
sysbuild_add_dependencies(CONFIGURE machine_learning ipc_radio remote)
34+
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} ipc_radio remote)
3535
# Add dependency so that the remote image is flashed first.
36-
sysbuild_add_dependencies(FLASH machine_learning ipc_radio remote)
36+
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} ipc_radio remote)
3737

3838
endif()

samples/caf_sensor_manager/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ if(SB_CONFIG_PARTITION_MANAGER)
3333
endif()
3434

3535
# Add a dependency so that the remote sample will be built and flashed first
36-
sysbuild_add_dependencies(CONFIGURE caf_sensor_manager remote)
36+
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} remote)
3737
# Add dependency so that the remote image is flashed first.
38-
sysbuild_add_dependencies(FLASH caf_sensor_manager remote)
38+
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} remote)

samples/event_manager_proxy/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ set_property(GLOBAL PROPERTY DOMAIN_APP_CPUNET remote)
2424
set(CPUNET_PM_DOMAIN_DYNAMIC_PARTITION remote CACHE INTERNAL "")
2525

2626
# Add a dependency so that the remote sample will be built and flashed first
27-
sysbuild_add_dependencies(CONFIGURE event_manager_proxy remote)
27+
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} remote)
2828
# Add dependency so that the remote image is flashed first.
29-
sysbuild_add_dependencies(FLASH event_manager_proxy remote)
29+
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} remote)

samples/ipc/ipc_service/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ set_property(GLOBAL PROPERTY DOMAIN_APP_CPUNET remote)
2121
set(CPUNET_PM_DOMAIN_DYNAMIC_PARTITION remote CACHE INTERNAL "")
2222

2323
# Add a dependency so that the remote sample will be built and flashed first
24-
sysbuild_add_dependencies(CONFIGURE ipc_service remote)
24+
sysbuild_add_dependencies(CONFIGURE ${DEFAULT_IMAGE} remote)
2525
# Add dependency so that the remote image is flashed first.
26-
sysbuild_add_dependencies(FLASH ipc_service remote)
26+
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} remote)

tests/benchmarks/multicore/idle/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ set_property(GLOBAL PROPERTY DOMAIN_APP_CPUNET remote)
2121
set(CPUNET_PM_DOMAIN_DYNAMIC_PARTITION remote CACHE INTERNAL "")
2222

2323
# Add a dependency so that the remote image will be built and flashed first
24-
add_dependencies(idle remote)
24+
add_dependencies(${DEFAULT_IMAGE} remote)
2525
# Add dependency so that the remote image is flashed first.
26-
sysbuild_add_dependencies(FLASH idle remote)
26+
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} remote)

tests/subsys/event_manager_proxy/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ set_property(GLOBAL PROPERTY DOMAIN_APP_CPUNET remote)
2121
set(CPUNET_PM_DOMAIN_DYNAMIC_PARTITION remote CACHE INTERNAL "")
2222

2323
# Add a dependency so that the remote sample will be built and flashed first
24-
add_dependencies(event_manager_proxy remote)
24+
add_dependencies(${DEFAULT_IMAGE} remote)
2525
# Add dependency so that the remote image is flashed first.
26-
sysbuild_add_dependencies(FLASH event_manager_proxy remote)
26+
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} remote)

tests/subsys/pcd/sysbuild.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ set_property(GLOBAL PROPERTY DOMAIN_APP_CPUNET hello_world)
2121
set(CPUNET_PM_DOMAIN_DYNAMIC_PARTITION hello_world CACHE INTERNAL "")
2222

2323
# Add a dependency so that the remote sample will be built and flashed first
24-
add_dependencies(pcd hello_world)
24+
add_dependencies(${DEFAULT_IMAGE} hello_world)
2525
# Add dependency so that the remote image is flashed first.
26-
sysbuild_add_dependencies(FLASH pcd hello_world)
26+
sysbuild_add_dependencies(FLASH ${DEFAULT_IMAGE} hello_world)

0 commit comments

Comments
 (0)