summaryrefslogtreecommitdiffstats
path: root/examples/api/Makefile
diff options
context:
space:
mode:
authorStanislav Galabov <sgalabov@gmail.com>2016-02-17 15:23:31 +0200
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-05-21 01:25:50 +0200
commit78757d52c8b27f7f33ab4035706796a414c81128 (patch)
tree463a951b1ce5a32ac658a0cd48efdd97581a42a8 /examples/api/Makefile
parent713a9e15bba4a5b6582d5e85fef2f282782cbed7 (diff)
downloadtalos-obmc-uboot-78757d52c8b27f7f33ab4035706796a414c81128.tar.gz
talos-obmc-uboot-78757d52c8b27f7f33ab4035706796a414c81128.zip
Fix FreeBSD loader API so that it works on both 32-bit and 64-bit targets.
Specifically tested on MIPS under QEMU (works with all combination of bit-ness and endian-ness) Signed-off-by: Stanislav Galabov <sgalabov@gmail.com>
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 4e9b8ea17d..6cffee7465 100644
--- a/examples/api/Makefile
+++ b/examples/api/Makefile
@@ -11,8 +11,12 @@ ifeq ($(ARCH),arm)
LOAD_ADDR = 0x1000000
endif
ifeq ($(ARCH),mips)
+ifdef CONFIG_64BIT
+LOAD_ADDR = 0xffffffff80200000
+else
LOAD_ADDR = 0x80200000
endif
+endif
# Resulting ELF and binary exectuables will be named demo and demo.bin
extra-y = demo
OpenPOWER on IntegriCloud