File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
subsys/mgmt/mcumgr/grp/img_mgmt/src Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 6868 (DEVICE_DT_GET_OR_NULL(DT_NODELABEL(FIXED_PARTITION_DATA_FIELD(label, _DEV)))))
6969#define FLASH_AREA_DEVICE (label ) FIXED_PARTITION_DEVICE(label)
7070
71+ #define FIXED_PARTITION_MTD (label ) \
72+ COND_CODE_1(DT_NODE_EXISTS(FIXED_PARTITION_DATA_FIELD(label, _DEV)), \
73+ (FIXED_PARTITION_DATA_FIELD(label, _DEV)), \
74+ (DT_NODELABEL(FIXED_PARTITION_DATA_FIELD(label, _DEV))))
75+ #define FIXED_PARTITION_NODE_MTD (node ) \
76+ COND_CODE_1( \
77+ DT_FIXED_SUBPARTITION_EXISTS(node), \
78+ (DT_MTD_FROM_FIXED_SUBPARTITION(node)), \
79+ (DT_MTD_FROM_FIXED_PARTITION(node)))
80+
7181#define FIXED_PARTITION_EXISTS (label ) IS_ENABLED(PM_IS_ENABLED(label))
7282#define FLASH_AREA_LABEL_EXISTS (label ) FIXED_PARTITION_EXISTS(label)
7383
Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ BUILD_ASSERT(PM_MCUBOOT_PAD_SIZE == PM_MCUBOOT_SECONDARY_PAD_SIZE);
7171#endif
7272
7373#define FIXED_PARTITION_IS_RUNNING_APP_PARTITION (label ) \
74+ DT_SAME_NODE(FIXED_PARTITION_NODE_MTD(DT_CHOSEN(zephyr_code_partition)), \
75+ FIXED_PARTITION_MTD(label)) && \
7476 (FIXED_PARTITION_OFFSET(label) <= CONFIG_FLASH_LOAD_OFFSET && \
7577 FIXED_PARTITION_OFFSET(label) + FIXED_PARTITION_SIZE(label) > CONFIG_FLASH_LOAD_OFFSET)
7678#endif /* USE_PARTITION_MANAGER */
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ manifest:
6464 # https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html
6565 - name : zephyr
6666 repo-path : sdk-zephyr
67- revision : dc05376c170fc2739a4881629caf49c40d485a9e
67+ revision : pull/3520/head
6868 import :
6969 # In addition to the zephyr repository itself, NCS also
7070 # imports the contents of zephyr/west.yml at the above
You can’t perform that action at this time.
0 commit comments