kconfig: Add image size reduction option

Adds a Kconfig option that can be used to reduce the available
slot size of an application, this is useful for things like
bootloaders whereby the bootloader or bootloader configuration
reduces the available flash size that the image can occupy

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2023-10-30 17:16:31 +00:00 committed by Carles Cufí
parent 6bc93c8016
commit 7c631f0fac

View file

@ -141,6 +141,17 @@ config ROM_START_OFFSET
alignment requirements on most ARM targets, although some targets alignment requirements on most ARM targets, although some targets
may require smaller or larger values. may require smaller or larger values.
config ROM_END_OFFSET
hex "ROM end offset"
default 0
help
If non-zero, this option reduces the maximum size that the Zephyr image is allowed to
occupy, this is to allow for additional image storage which can be created and used by
other systems such as bootloaders (for MCUboot, this would include the image swap
fields and TLV storage at the end of the image).
If unsure, leave at the default value 0.
config LD_LINKER_SCRIPT_SUPPORTED config LD_LINKER_SCRIPT_SUPPORTED
bool bool
default y default y