Skip to content

Commit 924b793

Browse files
[nrf temphack] dfu: fix partition manager / mcuboot interaction
The removal of the scratch partition has broken the build for asset tracker. There's probably a better way to fix it than this, but let's get the build working again and figure it out. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 0cf9c61 commit 924b793

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

subsys/dfu/boot/mcuboot.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ struct mcuboot_v1_raw_header {
7676

7777
#define FLASH_AREA_IMAGE_PRIMARY PM_MCUBOOT_PRIMARY_ID
7878
#define FLASH_AREA_IMAGE_SECONDARY PM_MCUBOOT_SECONDARY_ID
79+
#ifdef PM_MCUBOOT_SCRATCH_ID
7980
#define FLASH_AREA_IMAGE_SCRATCH PM_MCUBOOT_SCRATCH_ID
81+
#endif
8082

8183
#else
8284

0 commit comments

Comments
 (0)