Skip to content

[nrf noup] boot: zephyr: Update partition macros#624

Open
nordicjm wants to merge 1 commit intonrfconnect:mainfrom
nordicjm:bringinnewmappedbinding
Open

[nrf noup] boot: zephyr: Update partition macros#624
nordicjm wants to merge 1 commit intonrfconnect:mainfrom
nordicjm:bringinnewmappedbinding

Conversation

@nordicjm
Copy link
Contributor

Updates partition macros to use the new, non-deprecated macros

manifest-pr-skip

Updates partition macros to use the new, non-deprecated macros

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
@nordicjm nordicjm force-pushed the bringinnewmappedbinding branch from a7de5b4 to f2276ed Compare March 18, 2026 14:11
@sonarqubecloud
Copy link

@nvlsianpu nvlsianpu requested a review from tomchy March 19, 2026 17:02
#error "mcuboot resume support section not defined in dts"
#endif

#define FIXED_PARTITION_ADDR(node_label) DT_REG_ADDR(DT_NODELABEL(node_label))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tomchy You suggested that for some purpose. Is this removal/replacement OK?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you look here: nrfconnect/sdk-zephyr#3880
The devicetree.h file now includes the <zephyr/devicetree/mapped-partition.h> which is the newly introduced mechanism to get partition address/offset/size, without the need to enable FLASH_MAP in the build.
Additionally, the PR sets all partitions on all Nordic platform to use the new compatible (zephyr,mapped-partition).

We still may need to give it a thought if those changes are backward compatible (imagine an out of tree sample that still uses fixed-partitions and fixed-subpartitions). The code there should handle it fine, but since all platforms are migrated, there are no tests that verify the old syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants