kbuild: fix up CFLAGS usage

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>
This commit is contained in:
Sam Ravnborg
2007-10-14 21:49:42 +02:00
parent e00498258c
commit 9a39e273d4
4 changed files with 4 additions and 7 deletions

View 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