mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01:00
spl: support TPL_STACK, TPL_MAX_SIZE and TPL_TEXT_BASE via Kconfig
Let's clean up behind ourselves and move the (newly defined)
TPL_STACK, TPL_MAX_SIZE and TPL_TEXT_BASE into Kconfig. Given that
0x0 might be considered to be valid values for TPL_TEXT_BASE and
TPL_STACK, we need to introduce helper config options
("TPL_NEEDS_SEPARATE_...") to indicate that these symbols are used
(and not inherited from their SPL variants) for any given
target-platform.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
d9d1242b82
commit
b3ed6ce780
@ -726,6 +726,45 @@ config TPL_LDSCRIPT
|
|||||||
U-Boot stage. Set this to the path of the linker-script to
|
U-Boot stage. Set this to the path of the linker-script to
|
||||||
be used for TPL.
|
be used for TPL.
|
||||||
|
|
||||||
|
May be left empty to trigger the Makefile infrastructure to
|
||||||
|
fall back to the linker-script used for the SPL stage.
|
||||||
|
|
||||||
|
config TPL_NEEDS_SEPARATE_TEXT_BASE
|
||||||
|
bool "TPL needs a separate text-base"
|
||||||
|
default n
|
||||||
|
depends on TPL
|
||||||
|
help
|
||||||
|
Enable, if the TPL stage should not inherit its text-base
|
||||||
|
from the SPL stage. When enabled, a base address for the
|
||||||
|
.text sections of the TPL stage has to be set below.
|
||||||
|
|
||||||
|
config TPL_NEEDS_SEPARATE_STACK
|
||||||
|
bool "TPL needs a separate initial stack-pointer"
|
||||||
|
default n
|
||||||
|
depends on TPL
|
||||||
|
help
|
||||||
|
Enable, if the TPL stage should not inherit its initial
|
||||||
|
stack-pointer from the settings for the SPL stage.
|
||||||
|
|
||||||
|
config TPL_TEXT_BASE
|
||||||
|
hex "Base address for the .text section of the TPL stage"
|
||||||
|
depends on TPL_NEEDS_SEPARATE_TEXT_BASE
|
||||||
|
help
|
||||||
|
The base address for the .text section of the TPL stage.
|
||||||
|
|
||||||
|
config TPL_MAX_SIZE
|
||||||
|
int "Maximum size (in bytes) for the TPL stage"
|
||||||
|
depends on TPL
|
||||||
|
help
|
||||||
|
The maximum size (in bytes) of the TPL stage.
|
||||||
|
|
||||||
|
config TPL_STACK
|
||||||
|
hex "Address of the initial stack-pointer for the TPL stage"
|
||||||
|
depends on TPL_NEEDS_SEPARATE_STACK
|
||||||
|
help
|
||||||
|
The address of the initial stack-pointer for the TPL stage.
|
||||||
|
Usually this will be the (aligned) top-of-stack.
|
||||||
|
|
||||||
config TPL_BOOTROM_SUPPORT
|
config TPL_BOOTROM_SUPPORT
|
||||||
bool "Support returning to the BOOTROM (from TPL)"
|
bool "Support returning to the BOOTROM (from TPL)"
|
||||||
help
|
help
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user