* Add support for IceCube board (with MGT5100 and MPC5200 CPUs)
[oweals/u-boot.git] / config.mk
index 95b7256c54a8ee78dc811e311cd0905a95f3c6b9..c8358cf7825b64a1c3a30793c7356da602ef1cd4 100644 (file)
--- a/config.mk
+++ b/config.mk
 
 #########################################################################
 
+# clean the slate ...
+PLATFORM_RELFLAGS =
+PLATFORM_CPPFLAGS =
+PLATFORM_LDFLAGS =
+
 #
 # When cross-compiling on NetBSD, we have to define __PPC__ or else we
 # will pick up a va_list declaration that is incompatible with the
@@ -102,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