Skip to content

Commit b0de134

Browse files
committed
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 e1389fa commit b0de134

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
@@ -1022,32 +1022,6 @@ config IS_BOOTLOADER
10221022
This option indicates that Zephyr will act as a bootloader to execute
10231023
a separate Zephyr image payload.
10241024

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