Kim Phillips
aa9e891c63
include/linux/stddef.h: avoid 'warning: preprocessor token offsetof redefined'
hack to avoid:
/opt/gcc-4.6.3-nolibc/powerpc-linux/bin/../lib/gcc/powerpc-linux/4.6.3/include/stddef.h:413:9: warning: preprocessor token offsetof redefined
u-boot/include/linux/stddef.h:20:9: this was the original definition
tried protecting with __KERNEL__, and #including compiler.h first.
Even tried include dir reordering to no avail:
+++ b/config.mk
@@ -194,7 +194,11 @@ OBJCFLAGS += --gap-fill=0xff
gccincdir := $(shell $(CC) -print-file-name=include)
CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) \
- -D__KERNEL__
+ -D__KERNEL__ \
+ -I $(gccincdir) \
+ -nostdinc
+
+# -isystem $(gccincdir) \
# Enable garbage collection of un-used sections for SPL
ifeq ($(CONFIG_SPL_BUILD),y)
@@ -227,8 +231,7 @@ CPPFLAGS += -I$(OBJTREE)/include2 -I$(OBJTREE)/include
endif
CPPFLAGS += -I$(TOPDIR)/include
-CPPFLAGS += -fno-builtin -ffreestanding -nostdinc \
- -isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS)
+CPPFLAGS += -fno-builtin -ffreestanding -pipe $(PLATFORM_CPPFLAGS)
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
2012-11-04 11:00:34 -07:00
..
2012-09-21 21:11:25 +02:00
2012-11-02 15:20:43 -07:00
2012-11-04 11:00:34 -07:00
2012-08-13 14:34:35 +02:00
2012-09-29 07:26:08 -07:00
2012-10-15 11:54:01 -07:00
2012-08-09 23:42:20 +02:00
2012-11-02 15:20:41 -07:00
2012-11-02 15:20:43 -07:00
2012-10-17 11:28:54 +02:00
2012-09-01 14:26:02 +02:00
2012-10-15 13:37:22 -07:00
2012-10-22 02:53:35 -05:00
2012-10-22 08:29:55 -07:00
2012-10-22 08:29:42 -07:00
2012-11-04 11:00:34 -07:00
2012-10-28 20:17:25 +01:00
2012-08-09 23:42:20 +02:00
2012-10-29 14:21:19 -07:00
2012-10-22 15:52:46 -05:00
2012-10-01 10:02:14 -07:00
2012-09-01 14:58:10 +02:00
2012-08-23 12:16:55 -05:00
2012-09-01 16:21:50 +02:00
2012-10-22 02:56:25 -05:00
2012-10-22 15:52:46 -05:00
2012-11-02 15:13:30 -07:00
2012-09-18 12:01:52 -07:00
2012-10-29 14:21:19 -07:00
2012-10-29 14:21:20 -07:00
2012-10-25 12:07:47 -07:00
2012-09-21 16:22:18 -07:00
2012-10-26 22:35:20 +02:00
2012-10-22 14:31:25 -05:00
2012-11-04 11:00:34 -07:00
2012-09-01 14:58:30 +02:00
2012-10-22 14:31:25 -05:00
2012-09-17 19:51:45 -05:00
2012-09-01 16:21:50 +02:00
2012-09-17 09:39:50 +02:00
2012-10-19 15:25:43 -07:00
2012-10-22 08:29:55 -07:00
2012-10-15 19:20:32 -04:00
2012-10-19 15:25:44 -07:00
2012-09-24 10:48:19 +02:00
2012-10-15 11:54:04 -07:00
2012-09-01 14:58:24 +02:00
2012-10-15 22:24:36 -04:00
2012-10-22 08:29:29 -07:00
2012-09-26 11:08:32 -07:00
2012-09-07 13:54:31 -07:00
2012-09-01 14:19:02 +02:00
2012-10-23 15:23:26 -05:00
2012-09-27 12:21:56 -05:00
2012-09-17 17:33:43 -05:00
2012-09-24 13:55:44 -05:00
2012-09-26 12:36:32 -05:00
2012-10-15 11:53:47 -07:00
2012-09-01 14:58:10 +02:00
2012-09-25 15:05:44 -07:00
2012-09-02 14:18:52 +02:00
2012-10-28 20:17:25 +01:00
2012-09-25 14:49:18 -07:00
2012-10-15 11:54:03 -07:00
2012-11-02 15:20:41 -07:00
2012-10-22 02:53:36 -05:00
2012-09-18 12:01:52 -07:00
2012-10-17 07:55:50 -07:00
2012-08-08 10:24:41 +09:00
2012-10-03 02:04:24 +02:00
2012-10-01 10:02:14 -07:00
2012-10-28 20:17:25 +01:00
2012-09-26 12:36:29 -05:00
2012-10-15 11:54:02 -07:00
2012-10-15 11:53:59 -07:00
2012-09-25 14:49:17 -07:00