aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9193f94ddf83..7d4e9c8da729 100644
--- a/Makefile
+++ b/Makefile
@@ -102,6 +102,10 @@ ifeq ("$(origin O)", "command line")
102 KBUILD_OUTPUT := $(O) 102 KBUILD_OUTPUT := $(O)
103endif 103endif
104 104
105ifeq ("$(origin W)", "command line")
106 export KBUILD_ENABLE_EXTRA_GCC_CHECKS := 1
107endif
108
105# That's our default target when none is given on the command line 109# That's our default target when none is given on the command line
106PHONY := _all 110PHONY := _all
107_all: 111_all:
@@ -1018,7 +1022,7 @@ hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm)
1018 1022
1019PHONY += __headers 1023PHONY += __headers
1020__headers: include/linux/version.h scripts_basic FORCE 1024__headers: include/linux/version.h scripts_basic FORCE
1021 $(Q)$(MAKE) $(build)=scripts scripts/unifdef 1025 $(Q)$(MAKE) $(build)=scripts build_unifdef
1022 1026
1023PHONY += headers_install_all 1027PHONY += headers_install_all
1024headers_install_all: 1028headers_install_all:
@@ -1263,6 +1267,7 @@ help:
1263 @echo ' make O=dir [targets] Locate all output files in "dir", including .config' 1267 @echo ' make O=dir [targets] Locate all output files in "dir", including .config'
1264 @echo ' make C=1 [targets] Check all c source with $$CHECK (sparse by default)' 1268 @echo ' make C=1 [targets] Check all c source with $$CHECK (sparse by default)'
1265 @echo ' make C=2 [targets] Force check of all c source with $$CHECK' 1269 @echo ' make C=2 [targets] Force check of all c source with $$CHECK'
1270 @echo ' make W=1 [targets] Enable extra gcc checks'
1266 @echo '' 1271 @echo ''
1267 @echo 'Execute "make" or "make all" to build all targets marked with [*] ' 1272 @echo 'Execute "make" or "make all" to build all targets marked with [*] '
1268 @echo 'For further info see the ./README file' 1273 @echo 'For further info see the ./README file'