]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - arch/alpha/Makefile
kbuild: enable 'make CFLAGS=...' to add additional options to CC
authorSam Ravnborg <sam@neptun.(none)>
Sun, 14 Oct 2007 20:21:35 +0000 (22:21 +0200)
committerSam Ravnborg <sam@neptun.(none)>
Sun, 14 Oct 2007 20:21:35 +0000 (22:21 +0200)
commita0f97e06a43cf524e616f09e6af3398e1e9c1c5b
tree2503b24bdbc144aea9ea5bde6ead94b3406eaf98
parent9a39e273d4df0560c724c5fe71f6314a0583ca2b
kbuild: enable 'make CFLAGS=...' to add additional options to CC

The variable CFLAGS is a wellknown variable and the usage by
kbuild may result in unexpected behaviour.
On top of that several people over time has asked for a way to
pass in additional flags to gcc.

This patch replace use of CFLAGS with KBUILD_CFLAGS all over the
tree and enabling one to use:
make CFLAGS=...
to specify additional gcc commandline options.

One usecase is when trying to find gcc bugs but other
use cases has been requested too.

Patch was tested on following architectures:
alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k

Test was simple to do a defconfig build, apply the patch and check
that nothing got rebuild.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
46 files changed:
Documentation/kbuild/makefiles.txt
Makefile
arch/alpha/Makefile
arch/alpha/kernel/Makefile
arch/alpha/lib/Makefile
arch/arm/Makefile
arch/arm/boot/compressed/Makefile
arch/avr32/Makefile
arch/blackfin/Makefile
arch/cris/Makefile
arch/frv/Makefile
arch/h8300/Makefile
arch/i386/Makefile
arch/ia64/Makefile
arch/m32r/Makefile
arch/m68k/Makefile
arch/m68knommu/Makefile
arch/mips/Makefile
arch/mips/kernel/Makefile
arch/parisc/Makefile
arch/powerpc/Makefile
arch/ppc/Makefile
arch/s390/Makefile
arch/sh/Makefile
arch/sh/boot/compressed/Makefile
arch/sh64/Makefile
arch/sparc/Makefile
arch/sparc64/Makefile
arch/um/Makefile
arch/um/Makefile-i386
arch/um/Makefile-os-Linux
arch/um/Makefile-x86_64
arch/um/drivers/Makefile
arch/um/sys-i386/Makefile
arch/um/sys-x86_64/Makefile
arch/v850/Makefile
arch/x86/boot/Makefile
arch/x86/boot/compressed/Makefile_32
arch/x86/boot/compressed/Makefile_64
arch/x86/vdso/Makefile
arch/x86_64/Makefile
arch/xtensa/Makefile
arch/xtensa/boot/boot-redboot/Makefile
init/Makefile
scripts/Kbuild.include
scripts/Makefile.lib