]> git.wh0rd.org - patches.git/blob - u-boot-no-TEXT_BASE.patch
initial import
[patches.git] / u-boot-no-TEXT_BASE.patch
1 diff --git a/config.mk b/config.mk
2 index 582df32..e57339f 100644
3 --- a/config.mk
4 +++ b/config.mk
5 @@ -147,8 +147,10 @@ OBJCFLAGS += --gap-fill=0xff
6
7 gccincdir := $(shell $(CC) -print-file-name=include)
8
9 -CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) \
10 - -D__KERNEL__ -DTEXT_BASE=$(TEXT_BASE) \
11 +CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) -D__KERNEL__
12 +ifneq ($(TEXT_BASE),)
13 +CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE)
14 +endif
15
16 ifneq ($(OBJTREE),$(SRCTREE))
17 CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include
18 @@ -186,7 +188,10 @@ endif
19
20 AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS)
21
22 -LDFLAGS += -Bstatic -T $(LDSCRIPT) -Ttext $(TEXT_BASE) $(PLATFORM_LDFLAGS)
23 +LDFLAGS += -Bstatic -T $(LDSCRIPT) $(PLATFORM_LDFLAGS)
24 +ifneq ($(TEXT_BASE),)
25 +LDFLAGS += -Ttext $(TEXT_BASE)
26 +endif
27
28 # Location of a usable BFD library, where we define "usable" as
29 # "built for ${HOST}, supports ${TARGET}". Sensible values are