summaryrefslogtreecommitdiff
path: root/lib_nios2
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-09-03 23:12:47 -0400
committerTom Rix <Tom.Rix@windriver.com>2009-10-03 09:04:14 -0500
commit8eb7e2801431910b56302c58da815e55cfa8c041 (patch)
tree4def2a35ff0e17cc2531f384ee927ad37b575b1d /lib_nios2
parentaa0c9e34d5ab869b3e1ca1fea56b79d458f1a22f (diff)
downloadu-boot-imx-8eb7e2801431910b56302c58da815e55cfa8c041.zip
u-boot-imx-8eb7e2801431910b56302c58da815e55cfa8c041.tar.gz
u-boot-imx-8eb7e2801431910b56302c58da815e55cfa8c041.tar.bz2
push LOAD_ADDR out to arch mk files
Rather than maintain/extend the current ifeq($(ARCH)) mess that exists in the standalone Makefile, push the setting up of LOAD_ADDR out to the arch config.mk (and rename to STANDALONE_LOAD_ADDR in the process). This keeps the common code clean and lets the arch do whatever crazy crap it wants in its own area. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'lib_nios2')
-rw-r--r--lib_nios2/config.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib_nios2/config.mk b/lib_nios2/config.mk
index 59931c2..34ee697 100644
--- a/lib_nios2/config.mk
+++ b/lib_nios2/config.mk
@@ -24,5 +24,7 @@
CROSS_COMPILE ?= nios2-elf-
+STANDALONE_LOAD_ADDR = 0x02000000 -L $(gcclibdir) -T nios2.lds
+
PLATFORM_CPPFLAGS += -DCONFIG_NIOS2 -D__NIOS2__
PLATFORM_CPPFLAGS += -ffixed-r15 -G0