Skip to content

Commit

Permalink
[nrf noup] zephyr: cmake: Use PM properties with the proper names
Browse files Browse the repository at this point in the history
This is needed when the properties are automatically set.

Signed-off-by: Øyvind Rønningstad <[email protected]>
  • Loading branch information
oyvindronningstad authored and SebastianBoe committed Jun 6, 2019
1 parent 4a61a17 commit 8b0e50c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ if(CONFIG_BOOTLOADER_MCUBOOT)
${MCUBOOT_BASE}/scripts/imgtool.py
sign
--key ${MCUBOOT_BASE}/${CONFIG_BOOT_SIGNATURE_KEY_FILE}
--header-size $<TARGET_PROPERTY:partition_manager,MCUBOOT_HEADER_SIZE>
--header-size $<TARGET_PROPERTY:partition_manager,PM_MCUBOOT_PAD_SIZE>
--align ${DT_FLASH_WRITE_BLOCK_SIZE}
--version ${CONFIG_MCUBOOT_IMAGE_VERSION}
--slot-size $<TARGET_PROPERTY:partition_manager,MCUBOOT_SLOT_SIZE>
--slot-size $<TARGET_PROPERTY:partition_manager,PM_MCUBOOT_PRIMARY_SIZE>
--pad-header
)

Expand Down Expand Up @@ -70,7 +70,7 @@ if(CONFIG_BOOTLOADER_MCUBOOT)
${CMAKE_OBJCOPY}
--input-target=ihex
--output-target=ihex
--change-address $<TARGET_PROPERTY:partition_manager,MCUBOOT_SLOT_SIZE>
--change-address $<TARGET_PROPERTY:partition_manager,PM_MCUBOOT_PRIMARY_SIZE>
${update_hex}
${PROJECT_BINARY_DIR}/moved_update.hex
DEPENDS
Expand Down

0 comments on commit 8b0e50c

Please sign in to comment.