File tree Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Expand file tree Collapse file tree 1 file changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ mcuboot_primary:
1515
1616# Partition for secondary slot is not created if building in single application
1717# slot configuration.
18- # if !defined(CONFIG_SINGLE_APPLICATION_SLOT)
18+ # if !defined(CONFIG_SINGLE_APPLICATION_SLOT) && !defined(CONFIG_BOOT_DIRECT_XIP)
1919mcuboot_secondary :
2020 share_size : [mcuboot_primary]
2121# if defined(CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY)
@@ -28,7 +28,30 @@ mcuboot_secondary:
2828 align_next : CONFIG_FPROTECT_BLOCK_SIZE # Ensure that the next partition does not interfere with this image
2929 after : mcuboot_primary
3030# endif /* CONFIG_PM_EXTERNAL_FLASH_MCUBOOT_SECONDARY */
31- # endif /* !defined(CONFIG_SINGLE_APPLICATION_SLOT) */
31+
32+ # endif /* !defined(CONFIG_SINGLE_APPLICATION_SLOT) && !defined(CONFIG_BOOT_DIRECT_XIP) */
33+
34+ # if CONFIG_BOOT_DIRECT_XIP
35+
36+ # Direct XIP is enabled, reserve area for metadata (padding) and name the
37+ # partition so that its clear that it is not the secondary slot, but the direct
38+ # XIP alternative.
39+
40+ mcuboot_secondary_pad :
41+ share_size : mcuboot_pad
42+ placement :
43+ after : mcuboot_primary
44+ align : {start: CONFIG_FPROTECT_BLOCK_SIZE}
45+
46+ mcuboot_secondary_app :
47+ share_size : mcuboot_primary_app
48+ placement :
49+ after : mcuboot_secondary_pad
50+
51+ mcuboot_secondary :
52+ span : [mcuboot_secondary_pad, mcuboot_secondary_app]
53+
54+ # endif /* CONFIG_BOOT_DIRECT_XIP */
3255
3356# if CONFIG_BOOT_SWAP_USING_SCRATCH
3457mcuboot_scratch :
You can’t perform that action at this time.
0 commit comments