diff options
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | scripts/Makefile.build | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -1268,6 +1268,7 @@ help: | |||
1268 | @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)' |
1269 | @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' | 1270 | @echo ' make W=1 [targets] Enable extra gcc checks' |
1271 | @echo ' make RECORDMCOUNT_WARN=1 [targets] Warn about ignored mcount sections' | ||
1271 | @echo '' | 1272 | @echo '' |
1272 | @echo 'Execute "make" or "make all" to build all targets marked with [*] ' | 1273 | @echo 'Execute "make" or "make all" to build all targets marked with [*] ' |
1273 | @echo 'For further info see the ./README file' | 1274 | @echo 'For further info see the ./README file' |
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index d5f925abe4d..fdca952f6a4 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -244,13 +244,16 @@ endif | |||
244 | 244 | ||
245 | ifdef CONFIG_FTRACE_MCOUNT_RECORD | 245 | ifdef CONFIG_FTRACE_MCOUNT_RECORD |
246 | ifdef BUILD_C_RECORDMCOUNT | 246 | ifdef BUILD_C_RECORDMCOUNT |
247 | ifeq ("$(origin RECORDMCOUNT_WARN)", "command line") | ||
248 | RECORDMCOUNT_FLAGS = -w | ||
249 | endif | ||
247 | # Due to recursion, we must skip empty.o. | 250 | # Due to recursion, we must skip empty.o. |
248 | # The empty.o file is created in the make process in order to determine | 251 | # The empty.o file is created in the make process in order to determine |
249 | # the target endianness and word size. It is made before all other C | 252 | # the target endianness and word size. It is made before all other C |
250 | # files, including recordmcount. | 253 | # files, including recordmcount. |
251 | sub_cmd_record_mcount = \ | 254 | sub_cmd_record_mcount = \ |
252 | if [ $(@) != "scripts/mod/empty.o" ]; then \ | 255 | if [ $(@) != "scripts/mod/empty.o" ]; then \ |
253 | $(objtree)/scripts/recordmcount "$(@)"; \ | 256 | $(objtree)/scripts/recordmcount $(RECORDMCOUNT_FLAGS) "$(@)"; \ |
254 | fi; | 257 | fi; |
255 | else | 258 | else |
256 | sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ | 259 | sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \ |