]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Only use TEXT_BASE if defined by the board
authorMike Frysinger <vapier@gentoo.org>
Mon, 28 Jan 2008 10:28:50 +0000 (05:28 -0500)
committerWolfgang Denk <wd@denx.de>
Thu, 14 Feb 2008 00:12:45 +0000 (01:12 +0100)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
config.mk

index 79e5a31b72a6599f027eb0b45df9f95e526b563b..bff95bde0f8a7731d74ebfc25c0af90dc037887e 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -147,7 +147,10 @@ OBJCFLAGS += --gap-fill=0xff
 gccincdir := $(shell $(CC) -print-file-name=include)
 
 CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS)                \
-       -D__KERNEL__ -DTEXT_BASE=$(TEXT_BASE)           \
+       -D__KERNEL__
+ifneq ($(TEXT_BASE),)
+CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE)
+endif
 
 ifneq ($(OBJTREE),$(SRCTREE))
 CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include
@@ -185,7 +188,10 @@ endif
 
 AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS)
 
-LDFLAGS += -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
+LDFLAGS += -Bstatic -T $(LDSCRIPT) $(PLATFORM_LDFLAGS)
+ifneq ($(TEXT_BASE),)
+LDFLAGS += -Ttext $(TEXT_BASE)
+endif
 
 # Location of a usable BFD library, where we define "usable" as
 # "built for ${HOST}, supports ${TARGET}".  Sensible values are