Skip to content

Commit c9f3690

Browse files
nordicjmnashif
authored andcommitted
kconfig: Remove deprecated option BOOTLOADER_SRAM_SIZE
Removes BOOTLOADER_SRAM_SIZE which was deprecated with Zephyr 3.6 Signed-off-by: Jamie McCrae <[email protected]>
1 parent 11f18c7 commit c9f3690

File tree

4 files changed

+2
-61
lines changed

4 files changed

+2
-61
lines changed

Kconfig.zephyr

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,32 +1021,6 @@ config IS_BOOTLOADER
10211021
This option indicates that Zephyr will act as a bootloader to execute
10221022
a separate Zephyr image payload.
10231023

1024-
config BOOTLOADER_SRAM_SIZE
1025-
int "SRAM reserved for bootloader [DEPRECATED]"
1026-
default 0
1027-
depends on !XIP || IS_BOOTLOADER
1028-
depends on ARM || XTENSA
1029-
help
1030-
This option specifies the amount of SRAM (measure in kB) reserved for
1031-
a bootloader image, when either:
1032-
- the Zephyr image itself is to act as the bootloader, or
1033-
- Zephyr is a !XIP image, which implicitly assumes existence of a
1034-
bootloader that loads the Zephyr !XIP image onto SRAM.
1035-
1036-
This option is deprecated, users should transition to using DTS to set this, if needed.
1037-
To be removed after Zephyr 3.7 release.
1038-
1039-
config BOOTLOADER_SRAM_SIZE_DEPRECATED
1040-
bool
1041-
default y
1042-
select DEPRECATED
1043-
depends on BOOTLOADER_SRAM_SIZE != 0
1044-
depends on !XIP || IS_BOOTLOADER
1045-
depends on ARM || XTENSA
1046-
help
1047-
Non-prompt symbol to indicate that the deprecated BOOTLOADER_SRAM_SIZE Kconfig has a
1048-
non-0 value. Please transition to using devicetree.
1049-
10501024
config BOOTLOADER_BOSSA
10511025
bool "BOSSA bootloader support"
10521026
select USE_DT_CODE_PARTITION

include/zephyr/arch/arm/cortex_a_r/scripts/linker.ld

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,8 @@
5252
#define ROM_SIZE (CONFIG_FLASH_SIZE*1K - CONFIG_FLASH_LOAD_OFFSET - ROM_END_OFFSET)
5353
#endif
5454

55-
#if defined(CONFIG_XIP)
56-
#if defined(CONFIG_IS_BOOTLOADER)
57-
#define RAM_SIZE (CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
58-
#define RAM_ADDR (CONFIG_SRAM_BASE_ADDRESS + \
59-
(CONFIG_SRAM_SIZE * 1K - RAM_SIZE))
60-
#else
61-
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K)
62-
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
63-
#endif
64-
#else
65-
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K - CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
66-
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
67-
#endif
55+
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K)
56+
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
6857

6958
/* Set alignment to CONFIG_ARM_MPU_REGION_MIN_ALIGN_AND_SIZE
7059
* to make linker section alignment comply with MPU granularity.

include/zephyr/arch/arm/cortex_m/scripts/linker.ld

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,8 @@
5252
#define ROM_SIZE (CONFIG_FLASH_SIZE * 1024 - CONFIG_FLASH_LOAD_OFFSET - ROM_END_OFFSET)
5353
#endif
5454

55-
#if defined(CONFIG_XIP)
56-
#if defined(CONFIG_IS_BOOTLOADER)
57-
#define RAM_SIZE (CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
58-
#define RAM_ADDR (CONFIG_SRAM_BASE_ADDRESS + \
59-
(CONFIG_SRAM_SIZE * 1K - RAM_SIZE))
60-
#else
6155
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K)
6256
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
63-
#endif
64-
#else
65-
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K - CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
66-
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
67-
#endif
6857

6958
#if defined(CONFIG_CUSTOM_SECTION_ALIGN)
7059
_region_min_align = CONFIG_CUSTOM_SECTION_MIN_ALIGN_SIZE;

soc/infineon/cat1b/cyw20829/linker.ld

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,8 @@
4545
#define ROM_SIZE (CONFIG_FLASH_SIZE * 1024 - CONFIG_FLASH_LOAD_OFFSET - ROM_END_OFFSET)
4646
#endif
4747

48-
#if defined(CONFIG_XIP)
49-
#if defined(CONFIG_IS_BOOTLOADER)
50-
#define RAM_SIZE (CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
51-
#define RAM_ADDR (CONFIG_SRAM_BASE_ADDRESS + \
52-
(CONFIG_SRAM_SIZE * 1K - RAM_SIZE))
53-
#else
5448
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K)
5549
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
56-
#endif
57-
#else
58-
#define RAM_SIZE (CONFIG_SRAM_SIZE * 1K - CONFIG_BOOTLOADER_SRAM_SIZE * 1K)
59-
#define RAM_ADDR CONFIG_SRAM_BASE_ADDRESS
60-
#endif
6150

6251
#if defined(CONFIG_CUSTOM_SECTION_ALIGN)
6352
_region_min_align = CONFIG_CUSTOM_SECTION_MIN_ALIGN_SIZE;

0 commit comments

Comments
 (0)