examples/api: improve determination of LOAD_ADDR
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 27 Jan 2025 06:49:36 +0000 (07:49 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 4 Feb 2025 17:57:36 +0000 (11:57 -0600)
commit1df9cbd70f56bdbb3b8b004d51c8eea7379a28b2
tree7eb9f3caa35990c2152c3bef7c23c6d819023e0b
parent881f0b77dc8cfc454fb99ee183717d2538013665
examples/api: improve determination of LOAD_ADDR

The current load address for the 'demo' binary does not work for
qemu_arm_defconfig.

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.

On most boards we can assume that 8 MiB of memory is available above
$loadaddr. So $loadaddr + 0x400000 should work there.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
examples/api/Makefile