• Sam Ravnborg's avatar
    kbuild: enable 'make CFLAGS=...' to add additional options to CC · a0f97e06
    Sam Ravnborg authored
    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: default avatarSam Ravnborg <sam@ravnborg.org>
    a0f97e06
Name
Last commit
Last update
..
Makefile Loading commit data...
callback_srm.S Loading commit data...
checksum.c Loading commit data...
clear_page.S Loading commit data...
clear_user.S Loading commit data...
copy_page.S Loading commit data...
copy_user.S Loading commit data...
csum_ipv6_magic.S Loading commit data...
csum_partial_copy.c Loading commit data...
dbg_current.S Loading commit data...
dbg_stackcheck.S Loading commit data...
dbg_stackkill.S Loading commit data...
dec_and_lock.c Loading commit data...
divide.S Loading commit data...
ev6-clear_page.S Loading commit data...
ev6-clear_user.S Loading commit data...
ev6-copy_page.S Loading commit data...
ev6-copy_user.S Loading commit data...
ev6-csum_ipv6_magic.S Loading commit data...
ev6-divide.S Loading commit data...
ev6-memchr.S Loading commit data...
ev6-memcpy.S Loading commit data...
ev6-memset.S Loading commit data...
ev6-strncpy_from_user.S Loading commit data...
ev6-stxcpy.S Loading commit data...
ev6-stxncpy.S Loading commit data...
ev67-strcat.S Loading commit data...
ev67-strchr.S Loading commit data...
ev67-strlen.S Loading commit data...
ev67-strlen_user.S Loading commit data...
ev67-strncat.S Loading commit data...
ev67-strrchr.S Loading commit data...
fls.c Loading commit data...
fpreg.c Loading commit data...
memchr.S Loading commit data...
memcpy.c Loading commit data...
memmove.S Loading commit data...
memset.S Loading commit data...
srm_printk.c Loading commit data...
srm_puts.c Loading commit data...
stacktrace.c Loading commit data...
strcat.S Loading commit data...
strchr.S Loading commit data...
strcpy.S Loading commit data...
strlen.S Loading commit data...
strlen_user.S Loading commit data...
strncat.S Loading commit data...
strncpy.S Loading commit data...
strncpy_from_user.S Loading commit data...
strrchr.S Loading commit data...
stxcpy.S Loading commit data...
stxncpy.S Loading commit data...
udelay.c Loading commit data...