Skip to content

Commit 8e5b57e

Browse files
committed
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>
1 parent e181866 commit 8e5b57e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/api/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ else
2222
LOAD_ADDR = 0x80200000
2323
endif
2424
endif
25+
ifeq ($(ARCH),riscv)
26+
LOAD_ADDR = 0x84000000
27+
endif
2528

2629
# Resulting ELF and binary exectuables will be named demo and demo.bin
2730
extra-y = demo

0 commit comments

Comments
 (0)