Skip to content

Commit

Permalink
[nrf toup] cmake: Improve access to other images in multi-image builds.
Browse files Browse the repository at this point in the history
Global property:
 - ${IMAGE}KERNEL_NAME.

Signed-off-by: Øyvind Rønningstad <[email protected]>
  • Loading branch information
oyvindronningstad authored and SebastianBoe committed May 22, 2019
1 parent 85a6975 commit 64d2463
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/app/boilerplate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,12 @@ set(KERNEL_EXE_NAME ${KERNEL_NAME}.exe)
set(KERNEL_STAT_NAME ${KERNEL_NAME}.stat)
set(KERNEL_STRIP_NAME ${KERNEL_NAME}.strip)

define_property(GLOBAL PROPERTY ${IMAGE}KERNEL_NAME
BRIEF_DOCS "Name (KERNEL_NAME) for the ${IMAGE} image."
FULL_DOCS "To be used to access e.g. this image's hex file."
)
set_property(GLOBAL PROPERTY ${IMAGE}KERNEL_NAME ${KERNEL_NAME})

include(${BOARD_DIR}/board.cmake OPTIONAL)

# If we are using a suitable ethernet driver inside qemu, then these options
Expand Down

0 comments on commit 64d2463

Please sign in to comment.