mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00

CONFIG_STANDALONE_LOAD_ADDR has been used for examples/standalone but not for examples/api. The suitability of an address to load an ELF binary and run it does not only depend on the architecture but also on the memory layout of the board which is not reflected in the default value of CONFIG_STANDALONE_LOAD_ADDR. Commit32b7e39db4
("Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig") set the default on RISC-V to 0x0 though most boards used 0x80200000 before the patch. On most boards we can assume 8 MiB of memory available above $loadaddr. So we can safely use $loadaddr + 4 MiB as load address for the standalone example and eliminate CONFIG_STANDALONE_LOAD_ADDR altogether. Fixes:32b7e39db4
("Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
22 lines
475 B
Text
22 lines
475 B
Text
config API
|
|
bool "Enable U-Boot API"
|
|
depends on CC_IS_GCC
|
|
help
|
|
This option enables the U-Boot API. See api/README for more information.
|
|
|
|
menu "API"
|
|
depends on API
|
|
|
|
config SYS_MMC_MAX_DEVICE
|
|
int "Maximum number of MMC devices exposed via the API"
|
|
default 1
|
|
|
|
config EXAMPLES
|
|
bool "Compile API examples"
|
|
depends on !SANDBOX
|
|
default y if ARCH_QEMU
|
|
help
|
|
U-Boot provides an API for standalone applications. Examples are
|
|
provided in directory examples/.
|
|
|
|
endmenu
|