diff options
author | Stanislav Galabov <sgalabov@gmail.com> | 2016-02-17 15:23:31 +0200 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2016-05-21 01:25:50 +0200 |
commit | 78757d52c8b27f7f33ab4035706796a414c81128 (patch) | |
tree | 463a951b1ce5a32ac658a0cd48efdd97581a42a8 /examples/api/Makefile | |
parent | 713a9e15bba4a5b6582d5e85fef2f282782cbed7 (diff) | |
download | u-boot-imx-78757d52c8b27f7f33ab4035706796a414c81128.zip u-boot-imx-78757d52c8b27f7f33ab4035706796a414c81128.tar.gz u-boot-imx-78757d52c8b27f7f33ab4035706796a414c81128.tar.bz2 |
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/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/api/Makefile b/examples/api/Makefile index 4e9b8ea..6cffee7 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 |