summaryrefslogtreecommitdiffstats
path: root/config.mk
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-25 22:26:29 +0000
committerwdenk <wdenk>2003-06-25 22:26:29 +0000
commitb783edaee8252bfdba3f7b3fd29519a81ce71e42 (patch)
tree6993a909d2c21a3f07c51020edcc202a5697da91 /config.mk
parenta300d83cb8ad20b844e957587705675e9ac14147 (diff)
downloadtalos-obmc-uboot-b783edaee8252bfdba3f7b3fd29519a81ce71e42.tar.gz
talos-obmc-uboot-b783edaee8252bfdba3f7b3fd29519a81ce71e42.zip
* Header file cleanup for ARM
* Patch by Murray Jensen, 24 Jun 2003: - make sure to use only U-boot provided header files - fix problems with ".rodata.str1.4" section as used by GCC-3.x
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.mk b/config.mk
index 4dc350fe61..c8358cf782 100644
--- a/config.mk
+++ b/config.mk
@@ -107,10 +107,12 @@ LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
endif
OBJCFLAGS += --gap-fill=0xff
+gccincdir := $(shell $(CC) -print-file-name=include)
+
CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) \
-D__KERNEL__ -DTEXT_BASE=$(TEXT_BASE) \
-I$(TOPDIR)/include \
- -fno-builtin \
+ -fno-builtin -nostdinc -isystem $(gccincdir) \
-pipe $(PLATFORM_CPPFLAGS)
ifdef BUILD_TAG
OpenPOWER on IntegriCloud