kconfig: Set `BOOTLOADER_SRAM_SIZE` default to 0

The current default value for `BOOTLOADER_SRAM_SIZE` is set to an
arbitrary-seeming value of `16`, which feels like a random magic
number.

Given that adding an offset in SRAM for a bootloader should always be
a conscious choice for a specific platform, this PR sets the default
to `0`. An appropriate value can be set at the SoC or board level,
overriding this default.

Signed-off-by: Kevin Townsend <kevin.townsend@linaro.org>
This commit is contained in:
Kevin Townsend 2023-07-14 00:47:55 +02:00 committed by Fabio Baltieri
parent 0e35bbbfd2
commit f68cee9405
2 changed files with 5 additions and 1 deletions

View File

@ -827,7 +827,7 @@ config IS_BOOTLOADER
config BOOTLOADER_SRAM_SIZE
int "SRAM reserved for bootloader"
default 16
default 0
depends on !XIP || IS_BOOTLOADER
depends on ARM || XTENSA
help

View File

@ -20,6 +20,10 @@ API Changes
Changes in this release
=======================
* Set :kconfig:option:`CONFIG_BOOTLOADER_SRAM_SIZE` default value to ``0`` (was
``16``). Bootloaders that use a part of the SRAM should set this value to an
appropriate size. :github:`60371`
Removed APIs in this release
============================