From: Michal Marek Date: Wed, 1 Jul 2015 15:19:30 +0000 (+0200) Subject: kbuild: Allow arch Makefiles to override {cpp,ld,c}flags X-Git-Tag: omap-for-v4.3/fixes-merge-window~243^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61754c18752ffb78145671e94f053fb202fff041;p=pandora-kernel.git 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 Cc: stable@vger.kernel.org # 3.16+ Signed-off-by: Michal Marek --- Reading git-diff-tree failed