|
@@ -244,13 +244,16 @@ endif
|
|
|
|
|
|
ifdef CONFIG_FTRACE_MCOUNT_RECORD
|
|
ifdef CONFIG_FTRACE_MCOUNT_RECORD
|
|
ifdef BUILD_C_RECORDMCOUNT
|
|
ifdef BUILD_C_RECORDMCOUNT
|
|
|
|
+ifeq ("$(origin RECORDMCOUNT_WARN)", "command line")
|
|
|
|
+ RECORDMCOUNT_FLAGS = -w
|
|
|
|
+endif
|
|
# Due to recursion, we must skip empty.o.
|
|
# Due to recursion, we must skip empty.o.
|
|
# The empty.o file is created in the make process in order to determine
|
|
# 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
|
|
# the target endianness and word size. It is made before all other C
|
|
# files, including recordmcount.
|
|
# files, including recordmcount.
|
|
sub_cmd_record_mcount = \
|
|
sub_cmd_record_mcount = \
|
|
if [ $(@) != "scripts/mod/empty.o" ]; then \
|
|
if [ $(@) != "scripts/mod/empty.o" ]; then \
|
|
- $(objtree)/scripts/recordmcount "$(@)"; \
|
|
|
|
|
|
+ $(objtree)/scripts/recordmcount $(RECORDMCOUNT_FLAGS) "$(@)"; \
|
|
fi;
|
|
fi;
|
|
else
|
|
else
|
|
sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
|
|
sub_cmd_record_mcount = set -e ; perl $(srctree)/scripts/recordmcount.pl "$(ARCH)" \
|