]> err.no Git - linux-2.6/commitdiff
kbuild: fix up CFLAGS usage
authorSam Ravnborg <sam@neptun.(none)>
Sun, 14 Oct 2007 19:49:42 +0000 (21:49 +0200)
committerSam Ravnborg <sam@neptun.(none)>
Sun, 14 Oct 2007 19:49:42 +0000 (21:49 +0200)
Only in very rare cases is it needed to change CFLAGS
outside of arch/*/Makefile.
Fix up all wrong cases - in most cases
the use of EXTRA_CFLAGS is the only thing needed.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
arch/parisc/math-emu/Makefile
arch/ppc/boot/Makefile
arch/x86/math-emu/Makefile
arch/xtensa/boot/Makefile

index affd4c80e3b7561fde8056e41b7f50260ac340b6..1f3f225897f58a4ca5cd21479c7938c7d9300629 100644 (file)
@@ -3,7 +3,7 @@
 #
 
 # See arch/parisc/math-emu/README
-CFLAGS += -Wno-parentheses -Wno-implicit-function-declaration \
+EXTRA_CFLAGS += -Wno-parentheses -Wno-implicit-function-declaration \
        -Wno-uninitialized -Wno-strict-prototypes -Wno-return-type \
        -Wno-implicit-int
 
index b739e25d4728bca49f984c7603fd358d903c2964..487dc66dcc7414d9f1ca67508b06c5dbb1f82852 100644 (file)
@@ -13,7 +13,6 @@
 # modified by Cort (cort@cs.nmt.edu)
 #
 
-CFLAGS         += -fno-builtin -D__BOOTER__ -Iarch/$(ARCH)/boot/include
 HOSTCFLAGS     += -Iarch/$(ARCH)/boot/include
 
 BOOT_TARGETS   = zImage zImage.initrd znetboot znetboot.initrd
index 9c943fa6ce6b857e7b23bff8b8f43b5748fbb7b3..9b0c63b6030296defe20d5035b4feedf344b251c 100644 (file)
@@ -5,8 +5,7 @@
 #DEBUG = -DDEBUGGING
 DEBUG  =
 PARANOID = -DPARANOID
-CFLAGS := $(CFLAGS) $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
-
+EXTRA_CFLAGS   := $(PARANOID) $(DEBUG) -fno-builtin $(MATH_EMULATION)
 EXTRA_AFLAGS   := $(PARANOID)
 
 # From 'C' language sources:
index 820b31d10ae419c60258d7cee7f34a572b2e1e5d..9c5185f605b666f7a9e3a51daf244762a56b9f4c 100644 (file)
@@ -8,13 +8,12 @@
 #
 
 
-CFLAGS                 += -fno-builtin -Iarch/$(ARCH)/boot/include
+EXTRA_CFLAGS   += -fno-builtin -Iarch/$(ARCH)/boot/include
 HOSTFLAGS      += -Iarch/$(ARCH)/boot/include
 
 BIG_ENDIAN     := $(shell echo -e __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
 
-export CFLAGS
-export AFLAGS
+export EXTRA_CFLAGS
 export BIG_ENDIAN
 
 subdir-y       := lib