linux/scripts
Sam Ravnborg a0f97e06a4 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>
2007-10-14 22:21:35 +02:00
..
basic docproc: style & typo cleanups 2007-10-12 21:15:31 +02:00
genksyms kbuild: apply genksyms changes 2007-10-12 21:15:31 +02:00
kconfig kconfig/menuconfig: distinguish between selected-by-another options and comments 2007-10-12 21:20:33 +02:00
ksymoops
mod kbuild: make modpost detect unterminated device id lists 2007-10-12 21:48:11 +02:00
package x86_64: Support x86_64 in make buildtar 2007-05-21 09:56:56 -07:00
rt-tester
.gitignore [PATCH] Add unifdef to gitignore 2006-10-02 19:46:55 -07:00
bin2c.c
binoffset.c
bloat-o-meter
checkincludes.pl
checkkconfigsymbols.sh kbuild: script to check for undefined Kconfig symbols 2007-10-12 21:13:50 +02:00
checkpatch.pl update checkpatch.pl to version 0.09 2007-08-11 15:47:41 -07:00
checkstack.pl [AVR32] checkstack support 2007-10-11 12:16:56 +02:00
checksyscalls.sh i386/x86_64: move headers to include/asm-x86 2007-10-11 11:20:03 +02:00
checkversion.pl
cleanfile scripts: Make cleanfile/cleanpatch warn about long lines 2007-07-16 21:15:50 +02:00
cleanpatch scripts: Make cleanfile/cleanpatch warn about long lines 2007-07-16 21:15:50 +02:00
conmakehash.c
decodecode doc/oops-tracing: add Code: decode info 2007-07-16 09:05:48 -07:00
export_report.pl kbuild: fix perl usage in export_report.pl 2007-10-12 21:13:50 +02:00
extract-ikconfig
gcc-version.sh kbuild: improve scripts/gcc-version.sh output a bit when called without args 2007-10-12 21:15:30 +02:00
gcc-x86_64-has-stack-protector.sh
gen_initramfs_list.sh kbuild: add support for squashing uid/gid in gen_initramfs_list.sh 2007-07-16 21:15:52 +02:00
hdrcheck.sh
kallsyms.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild 2007-07-19 14:28:19 -07:00
Kbuild.include kbuild: enable 'make CFLAGS=...' to add additional options to CC 2007-10-14 22:21:35 +02:00
kernel-doc kernel-doc: fix leading dot in man-mode output 2007-07-19 10:04:45 -07:00
Lindent Fix Lindent to not indent preprocessor comments so far 2007-07-20 08:45:38 -07:00
Makefile [PATCH] allow /proc/config.gz to be built as a module 2006-10-01 00:39:20 -07:00
Makefile.build kbuild: kill backward compatibility checks 2007-10-12 21:20:32 +02:00
Makefile.clean kbuild: kill backward compatibility checks 2007-10-12 21:20:32 +02:00
Makefile.headersinst kbuild: use POSIX BRE in headers install target 2007-07-17 14:24:55 +02:00
Makefile.host kbuild: enable use of code from a different dir 2007-05-06 09:23:45 +02:00
Makefile.lib kbuild: enable 'make CFLAGS=...' to add additional options to CC 2007-10-14 22:21:35 +02:00
Makefile.modinst
Makefile.modpost kbuild: use LDFLAGS_MODULE only for .ko links 2007-07-25 21:18:19 +02:00
makelst [PATCH] kbuild scripts: replace gawk, head, bc with shell, update 2007-02-06 14:30:49 -08:00
mkcompile_h kbuild: override build timestamp & version 2007-05-02 20:58:09 +02:00
mkmakefile kbuild: call make once for all targets when O=.. is used 2007-10-12 21:20:32 +02:00
mksysmap
mkuboot.sh kbuild/mkuboot.sh: allow spaces in CROSS_COMPILE 2007-05-02 20:58:10 +02:00
mkversion
namespace.pl x86: fixup the x86 namespace change in scripts/namespace.pl 2007-10-11 17:56:02 +02:00
patch-kernel
pnmtologo.c
profile2linkerlist.pl
setlocalversion
show_delta
unifdef.c
ver_linux kbuild: scripts/ver_linux : correct printing of binutils version 2007-10-12 21:15:31 +02:00