kbuild: Allow arch Makefiles to override {cpp,ld,c}flags
authorMichal Marek <mmarek@suse.cz>
Wed, 1 Jul 2015 15:19:30 +0000 (17:19 +0200)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Jul 2015 05:39:00 +0000 (11:09 +0530)
commit61754c18752ffb78145671e94f053fb202fff041
tree30468e47109348f877c50a8c2ae176cd735ad5e7
parentb607eddd7122595bbcf49c00192faf3e49b142d3
kbuild: Allow arch Makefiles to override {cpp,ld,c}flags

Since commit a1c48bb1 (Makefile: Fix unrecognized cross-compiler command
line options), the arch Makefile is included earlier by the main
Makefile, preventing the arc architecture to set its -O3 compiler
option. Since there might be more use cases for an arch Makefile to
fine-tune the options, add support for ARCH_CPPFLAGS, ARCH_AFLAGS and
ARCH_CFLAGS variables that are appended to the respective kbuild
variables. The user still has the final say via the KCPPFLAGS, KAFLAGS
and KCFLAGS variables.

Reported-by: Vineet Gupta <Vineet.Gupta1@synopsys.com>
Cc: stable@vger.kernel.org # 3.16+
Signed-off-by: Michal Marek <mmarek@suse.com>
Documentation/kbuild/makefiles.txt
Makefile
This page took 0.026996 seconds and 5 git commands to generate.