summaryrefslogtreecommitdiff
path: root/examples/api/Makefile
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-11-14 10:51:13 -0600
committerTom Rini <[email protected]>2024-11-14 10:51:28 -0600
commit2b14d12067709bca97a0b7239dffd23b7c4a1ea3 (patch)
tree1d352f33bd39e4176ee4483c24618edbafee90a4 /examples/api/Makefile
parentf6ee67126492f07d400d677e82467de3f8ad2bda (diff)
parent9e7d7f95ecfe0dd94b17c8dddff0e9f4934c2ad2 (diff)
Merge patch series "examples: fix building on arm64"
Heinrich Schuchardt <[email protected]> says: Commit f9886bc60f42 ("Added arm64 assembly for examples/api crt0") added the arm64 architecture but the code does not even build. With the changes the 'demo' program runs on qemu_arm64_defconfig using setenv autostart no dhcp demo setenv autostart yes bootelf $loadaddr Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'examples/api/Makefile')
-rw-r--r--examples/api/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile
index ca4eb1f71ad..ec1643e4875 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -9,8 +9,12 @@ ifeq ($(ARCH),powerpc)
LOAD_ADDR = 0x40000
endif
ifeq ($(ARCH),arm)
+ifdef CONFIG_64BIT
+LOAD_ADDR = 0x40400000
+else
LOAD_ADDR = 0x1000000
endif
+endif
ifeq ($(ARCH),mips)
ifdef CONFIG_64BIT
LOAD_ADDR = 0xffffffff80200000