Skip to content

Commit 8b0e50c

Browse files
oyvindronningstadSebastianBoe
authored andcommitted
[nrf noup] zephyr: cmake: Use PM properties with the proper names
This is needed when the properties are automatically set. Signed-off-by: Øyvind Rønningstad <[email protected]>
1 parent 4a61a17 commit 8b0e50c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

zephyr/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ if(CONFIG_BOOTLOADER_MCUBOOT)
3535
${MCUBOOT_BASE}/scripts/imgtool.py
3636
sign
3737
--key ${MCUBOOT_BASE}/${CONFIG_BOOT_SIGNATURE_KEY_FILE}
38-
--header-size $<TARGET_PROPERTY:partition_manager,MCUBOOT_HEADER_SIZE>
38+
--header-size $<TARGET_PROPERTY:partition_manager,PM_MCUBOOT_PAD_SIZE>
3939
--align ${DT_FLASH_WRITE_BLOCK_SIZE}
4040
--version ${CONFIG_MCUBOOT_IMAGE_VERSION}
41-
--slot-size $<TARGET_PROPERTY:partition_manager,MCUBOOT_SLOT_SIZE>
41+
--slot-size $<TARGET_PROPERTY:partition_manager,PM_MCUBOOT_PRIMARY_SIZE>
4242
--pad-header
4343
)
4444

@@ -70,7 +70,7 @@ if(CONFIG_BOOTLOADER_MCUBOOT)
7070
${CMAKE_OBJCOPY}
7171
--input-target=ihex
7272
--output-target=ihex
73-
--change-address $<TARGET_PROPERTY:partition_manager,MCUBOOT_SLOT_SIZE>
73+
--change-address $<TARGET_PROPERTY:partition_manager,PM_MCUBOOT_PRIMARY_SIZE>
7474
${update_hex}
7575
${PROJECT_BINARY_DIR}/moved_update.hex
7676
DEPENDS

0 commit comments

Comments
 (0)