X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=scripts%2FMakefile.build;fp=scripts%2FMakefile.build;h=fdca952f6a409ba41cbae8a4a1e351c0acee4673;hb=85356f802225fedeee8c3e65bdd93b263ace0a8b;hp=d5f925abe4d29710ab0b314bf28d29752b35dc8d;hpb=dfad3d598c4bbbaf137588e22bac1ce624529f7e;p=~andy%2Flinux 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 ifdef CONFIG_FTRACE_MCOUNT_RECORD ifdef BUILD_C_RECORDMCOUNT +ifeq ("$(origin RECORDMCOUNT_WARN)", "command line") + RECORDMCOUNT_FLAGS = -w +endif # Due to recursion, we must skip empty.o. # The empty.o file is created in the make process in order to determine # the target endianness and word size. It is made before all other C # files, including recordmcount. sub_cmd_record_mcount = \ if [ $(@) != "scripts/mod/empty.o" ]; then \ - $(objtree)/scripts/recordmcount "$(@)"; \ + $(objtree)/scripts/recordmcount $(RECORDMCOUNT_FLAGS) "$(@)"; \ fi; else sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \