diff options
author | Sam Ravnborg <sam@neptun.(none)> | 2007-10-16 00:17:25 +0400 |
---|---|---|
committer | Sam Ravnborg <sam@neptun.(none)> | 2007-10-16 00:17:25 +0400 |
commit | 06c5040cdb13d27adad118f2fbfae905a1911b37 (patch) | |
tree | e5e62e04ca2d6f834aed9925a13869f730656139 /arch/arm/Makefile | |
parent | 52bcc3308ae3344266f55bf98a22c1ac0201eda7 (diff) | |
download | linux-06c5040cdb13d27adad118f2fbfae905a1911b37.tar.xz |
kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP
The variable CPPFLAGS is a wellknown variable and the usage by
kbuild may result in unexpected behaviour.
This patch replace use of CPPFLAGS with KBUILD_CPPFLAGS all over the
tree and enabling one to use:
make CPPFLAGS=...
to specify additional CPP commandline options.
Patch was tested on following architectures:
alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index b762d235b81a..0d450e757e0e 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -32,11 +32,11 @@ KBUILD_CFLAGS +=-fno-omit-frame-pointer -mapcs -mno-sched-prolog endif ifeq ($(CONFIG_CPU_BIG_ENDIAN),y) -CPPFLAGS += -mbig-endian +KBUILD_CPPFLAGS += -mbig-endian AS += -EB LD += -EB else -CPPFLAGS += -mlittle-endian +KBUILD_CPPFLAGS += -mlittle-endian AS += -EL LD += -EL endif |