Skip to content

Commit 4740e2d

Browse files
de-nordicanangl
authored andcommitted
[nrf noup] sysflash: Add missing _FLASH_0_ID definitions
MCUboot uses SOC_FLASH_0_ID and SPI_FLASH_0_ID to distinguish between internal and external boot device. These IDs are provided by sysflash.h, but the pm_sysflash.h overrides entire file, and was lacking that definitions. Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
1 parent d2b1549 commit 4740e2d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

boot/zephyr/include/sysflash/pm_sysflash.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,12 @@ static inline uint32_t __flash_area_ids_for_slot(int img, int slot)
8484

8585
#endif /* CONFIG_SINGLE_APPLICATION_SLOT */
8686

87+
#ifndef SOC_FLASH_0_ID
88+
#define SOC_FLASH_0_ID 0
89+
#endif
90+
91+
#ifndef SPI_FLASH_0_ID
92+
#define SPI_FLASH_0_ID 1
93+
#endif
94+
8795
#endif /* __PM_SYSFLASH_H__ */

0 commit comments

Comments
 (0)