summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2021-02-28 03:22:47 +0200
committerMichael Bestas <mkbestas@lineageos.org>2021-02-28 03:22:47 +0200
commit3d9b6f5ee02e712b6cd1d50db3c2e68064fc2eca (patch)
tree3d6a43bfb8e720a34f8f22c180b67b9776512975 /scripts
parent32ed4c6cace37c492b7deacdf3fa223618b1ad2e (diff)
parent4fd124d1546d8a4300e1cdd637818af038e29fb2 (diff)
Merge branch 'android-4.4-p' of https://android.googlesource.com/kernel/common into lineage-18.1-caf-msm8998
This brings LA.UM.9.2.r1-02500-SDMxx0.0 up to date with https://android.googlesource.com/kernel/common/ android-4.4-p at commit: 4fd124d1546d8 Merge 4.4.258 into android-4.4-p Change-Id: Idbae7489bc1d831a378dd60993f46139e5e28c4c
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index e6441514be23..726d1b3f6759 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -226,6 +226,8 @@ cmd_modversions_c = \
endif
ifdef CONFIG_FTRACE_MCOUNT_RECORD
+ifndef CC_USING_RECORD_MCOUNT
+# compiler will not generate __mcount_loc use recordmcount or recordmcount.pl
ifdef BUILD_C_RECORDMCOUNT
ifeq ("$(origin RECORDMCOUNT_WARN)", "command line")
RECORDMCOUNT_FLAGS = -w
@@ -254,6 +256,7 @@ cmd_record_mcount = \
"$(CC_FLAGS_FTRACE)" ]; then \
$(sub_cmd_record_mcount) \
fi;
+endif # CC_USING_RECORD_MCOUNT
endif
define rule_cc_o_c