From f68cee94057a7a9e75ccda78aee952ded51f8156 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Fri, 14 Jul 2023 00:47:55 +0200 Subject: [PATCH] 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 --- Kconfig.zephyr | 2 +- doc/releases/release-notes-3.5.rst | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 0fa8ff2db8..809565ee50 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -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 diff --git a/doc/releases/release-notes-3.5.rst b/doc/releases/release-notes-3.5.rst index 117171f992..807511b95d 100644 --- a/doc/releases/release-notes-3.5.rst +++ b/doc/releases/release-notes-3.5.rst @@ -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 ============================