diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -102,6 +102,10 @@ ifeq ("$(origin O)", "command line") | |||
102 | KBUILD_OUTPUT := $(O) | 102 | KBUILD_OUTPUT := $(O) |
103 | endif | 103 | endif |
104 | 104 | ||
105 | ifeq ("$(origin W)", "command line") | ||
106 | export KBUILD_ENABLE_EXTRA_GCC_CHECKS := 1 | ||
107 | endif | ||
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 |
106 | PHONY := _all | 110 | PHONY := _all |
107 | _all: | 111 | _all: |
@@ -1018,7 +1022,7 @@ hdr-dst = $(if $(KBUILD_HEADERS), dst=include/asm-$(hdr-arch), dst=include/asm) | |||
1018 | 1022 | ||
1019 | PHONY += __headers | 1023 | PHONY += __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 | ||
1023 | PHONY += headers_install_all | 1027 | PHONY += headers_install_all |
1024 | headers_install_all: | 1028 | headers_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' |