aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 8bdb1dc4072c..dcbca18011bb 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -207,6 +207,11 @@ cmd_modversions_c = \
207endif 207endif
208 208
209ifdef CONFIG_FTRACE_MCOUNT_RECORD 209ifdef CONFIG_FTRACE_MCOUNT_RECORD
210# gcc 5 supports generating the mcount tables directly
211ifneq ($(call cc-option,-mrecord-mcount,y),y)
212KBUILD_CFLAGS += -mrecord-mcount
213else
214# else do it all manually
210ifdef BUILD_C_RECORDMCOUNT 215ifdef BUILD_C_RECORDMCOUNT
211ifeq ("$(origin RECORDMCOUNT_WARN)", "command line") 216ifeq ("$(origin RECORDMCOUNT_WARN)", "command line")
212 RECORDMCOUNT_FLAGS = -w 217 RECORDMCOUNT_FLAGS = -w
@@ -259,6 +264,7 @@ ifneq ($(RETPOLINE_CFLAGS),)
259 objtool_args += --retpoline 264 objtool_args += --retpoline
260endif 265endif
261endif 266endif
267endif
262 268
263 269
264ifdef CONFIG_MODVERSIONS 270ifdef CONFIG_MODVERSIONS