2014-09-08 17:43:57 +00:00
|
|
|
From: Ben Hutchings <ben@decadent.org.uk>
|
|
|
|
Subject: kbuild: Fix recordmcount dependency for OOT modules
|
|
|
|
Date: Mon, 08 Sep 2014 18:31:24 +0100
|
2016-05-17 13:44:35 +00:00
|
|
|
Forwarded: no
|
2014-09-08 17:43:57 +00:00
|
|
|
|
|
|
|
We never rebuild anything in-tree when building an out-of-tree
|
|
|
|
modules, so external modules should not depend on the recordmcount
|
|
|
|
sources.
|
|
|
|
|
|
|
|
--- a/scripts/Makefile.build
|
|
|
|
+++ b/scripts/Makefile.build
|
2018-08-27 14:21:43 +00:00
|
|
|
@@ -232,6 +232,11 @@ cmd_record_mcount = \
|
|
|
|
endif # CC_USING_RECORD_MCOUNT
|
2017-08-29 20:07:26 +00:00
|
|
|
endif # CONFIG_FTRACE_MCOUNT_RECORD
|
2014-09-08 17:43:57 +00:00
|
|
|
|
|
|
|
+# Don't require recordmcount source for an OOT build.
|
|
|
|
+ifdef KBUILD_EXTMOD
|
|
|
|
+recordmcount_source :=
|
|
|
|
+endif
|
|
|
|
+
|
2016-04-14 13:59:13 +00:00
|
|
|
ifdef CONFIG_STACK_VALIDATION
|
|
|
|
ifneq ($(SKIP_STACK_VALIDATION),1)
|
|
|
|
|