Skip to content

Commit 208db88

Browse files
committed
Revert "[nrf noup] mcumgr: img_mgmt: Fix check for chosen code partition"
This reverts commit 28efd42. Sgned-off-by: Tomasz Chyrowicz <[email protected]>
1 parent f75ebf1 commit 208db88

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

subsys/mgmt/mcumgr/grp/img_mgmt/src/img_mgmt.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -43,31 +43,13 @@
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

7254
BUILD_ASSERT(sizeof(struct image_header) == IMAGE_HEADER_SIZE,
7355
"struct image_header not required size");

0 commit comments

Comments
 (0)