examples: eliminate CONFIG_STANDALONE_LOAD_ADDR
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 27 Jan 2025 07:18:46 +0000 (08:18 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 4 Feb 2025 17:57:36 +0000 (11:57 -0600)
commit72bbb645b365c19def1527855248c11ec9665f28
tree58916d9091add20ce71e5706673050a7c7240629
parent1df9cbd70f56bdbb3b8b004d51c8eea7379a28b2
examples: eliminate CONFIG_STANDALONE_LOAD_ADDR

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.

Commit 32b7e39db4d3 ("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: 32b7e39db4d3 ("Convert CONFIG_STANDALONE_LOAD_ADDR to Kconfig")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
api/Kconfig
config.mk
examples/standalone/Makefile