File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
subsys/mgmt/mcumgr/grp/img_mgmt/src Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff line change 4343
4444#if !defined(CONFIG_MCUBOOT_BOOTLOADER_MODE_RAM_LOAD )
4545
46- #if USE_PARTITION_MANAGER
47- #include <flash_map_pm.h>
48-
49- #ifdef PM_MCUBOOT_SECONDARY_PAD_SIZE
50- BUILD_ASSERT (PM_MCUBOOT_PAD_SIZE == PM_MCUBOOT_SECONDARY_PAD_SIZE );
51- #endif
52-
53- #if CONFIG_BUILD_WITH_TFM
54- #define PM_ADDRESS_OFFSET (PM_MCUBOOT_PAD_SIZE + PM_TFM_SIZE)
55- #else
56- #define PM_ADDRESS_OFFSET (PM_MCUBOOT_PAD_SIZE)
57- #endif
58-
59- #define FIXED_PARTITION_IS_RUNNING_APP_PARTITION (label ) \
60- (FIXED_PARTITION_OFFSET(label) == (PM_ADDRESS - PM_ADDRESS_OFFSET))
61-
62- #else /* ! USE_PARTITION_MANAGER */
6346#ifndef CONFIG_FLASH_LOAD_OFFSET
6447#error MCUmgr requires application to be built with CONFIG_FLASH_LOAD_OFFSET set \
6548 to be able to figure out application running slot.
6649#endif
6750
6851#define FIXED_PARTITION_IS_RUNNING_APP_PARTITION (label ) \
6952 (FIXED_PARTITION_OFFSET(label) == CONFIG_FLASH_LOAD_OFFSET)
70- #endif /* USE_PARTITION_MANAGER */
7153
7254BUILD_ASSERT (sizeof (struct image_header ) == IMAGE_HEADER_SIZE ,
7355 "struct image_header not required size" );
You can’t perform that action at this time.
0 commit comments