summaryrefslogtreecommitdiff
path: root/common/spl/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-23 05:30:21 +0300
committerSimon Glass <sjg@chromium.org>2021-01-05 22:24:40 +0300
commit38d6b7ebdaee3e0e8426ef1b9df88bdce8ae2e75 (patch)
tree8270760e4e3f1e29be75d813b921fb65422c98d8 /common/spl/Kconfig
parentacfb5308f5e51fd1f4428618d704ad0de2358871 (diff)
downloadu-boot-38d6b7ebdaee3e0e8426ef1b9df88bdce8ae2e75.tar.xz
spl: Drop bd_info in the data section
This uses up space in the SPL binary but it always starts as zero. Also some boards cannot support data in TPL (e.g. Intel Apollo Lake). Use malloc() to allocate this structure instead, by moving the init a little later, after malloc() is inited. Make this function optional since it pulls in malloc(). This reduces the TPL binary size on coral by about 64 bytes Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl/Kconfig')
-rw-r--r--common/spl/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 6d980be0b7..6b0186763b 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -113,6 +113,15 @@ config SPL_FSL_PBL
Create boot binary having SPL binary in PBI format concatenated with
u-boot binary.
+config SPL_ALLOC_BD
+ bool "Allocate memory for bd_info"
+ default y if X86 || SANDBOX
+ help
+ Some boards don't allocate space for this in their board_init_f()
+ code. In this case U-Boot can allocate space for gd->bd in the
+ standard SPL flow (board_init_r()). Enable this option to support
+ this feature.
+
endmenu
config HANDOFF