From 262ae0a6193f10b6a94e86d2f752e7f5510416fa Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 3 Sep 2009 23:12:47 -0400 Subject: 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 --- lib_m68k/config.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib_m68k') diff --git a/lib_m68k/config.mk b/lib_m68k/config.mk index f41d1b3c2..749c38968 100644 --- a/lib_m68k/config.mk +++ b/lib_m68k/config.mk @@ -23,5 +23,8 @@ CROSS_COMPILE ?= m68k-elf- +clibdir = $(shell dirname `$(CC) $(CFLAGS) -print-file-name=libc.a`) +STANDALONE_LOAD_ADDR = 0x20000 -L $(clibdir) + PLATFORM_CPPFLAGS += -DCONFIG_M68K -D__M68K__ PLATFORM_LDFLAGS += -n -- cgit v1.2.3