diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-11-23 09:47:54 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2025-01-05 02:30:47 +0100 |
commit | 8e5b57eea04c80a9226c6c71f892c8808caa3d65 (patch) | |
tree | 7b21b3596d874cc101fd1d5cbfc6475ca9802176 | |
parent | e18186686fc6c4f1b7ef04a5f77b74fcd44cb721 (diff) | |
download | u-boot-8e5b57eea04c80a9226c6c71f892c8808caa3d65.tar.gz |
examples: use QEMU compatible LOAD_ADDR on RISC-V
On some RISC-V including QEMU $loadaddr is 0x80200000.
For bootelf to work choose a different LOAD_ADDR to which the demo ELF
binary is relocated.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
-rw-r--r-- | examples/api/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile index 13e859cf080..722c7e45904 100644 --- a/examples/api/Makefile +++ b/examples/api/Makefile @@ -22,6 +22,9 @@ else LOAD_ADDR = 0x80200000 endif endif +ifeq ($(ARCH),riscv) +LOAD_ADDR = 0x84000000 +endif # Resulting ELF and binary exectuables will be named demo and demo.bin extra-y = demo |