Skip to content

Commit

Permalink
[nrf noup] include: arch: arm: cortex_m: linker: Add PM SRAM override
Browse files Browse the repository at this point in the history
fixup! [nrf noup] tree-wide: support NCS Partition Manager (PM) definitions

Allows overriding the variable used for specifying how much SRAM a
device has in partition manager by using the Kconfig value rather
than the PM-generated config value

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
nordicjm committed Oct 2, 2024
1 parent 8005d4e commit 8e116cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/zephyr/arch/arm/cortex_m/scripts/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ _image_1_primary_slot_id = PM_S1_ID;
#define ROM_ADDR PM_ADDRESS
#define ROM_SIZE PM_SIZE

#if defined(CONFIG_PM_USE_CONFIG_SRAM_SIZE)
#define RAM_SIZE CONFIG_PM_SRAM_SIZE
#else
#define RAM_SIZE PM_SRAM_SIZE
#endif
#define RAM_ADDR PM_SRAM_ADDRESS

#else /* ! USE_PARTITION_MANAGER */
Expand Down

0 comments on commit 8e116cc

Please sign in to comment.