diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-01-28 05:28:50 -0500 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-02-14 01:12:45 +0100 |
commit | 161b2af4d7b48fd602ce333c355a4df0337892bb (patch) | |
tree | ccfcfd0f7ebb6cb8a3ef2cf71920db5b0995f051 /config.mk | |
parent | 1b769881750030f10743808b9d6013e11f559350 (diff) | |
download | u-boot-imx-161b2af4d7b48fd602ce333c355a4df0337892bb.zip u-boot-imx-161b2af4d7b48fd602ce333c355a4df0337892bb.tar.gz u-boot-imx-161b2af4d7b48fd602ce333c355a4df0337892bb.tar.bz2 |
Only use TEXT_BASE if defined by the board
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |