aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-11 00:52:57 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-15 02:25:11 +0900
commit16b59cd78595df5d77c535a08537f2d9dae61496 (patch)
tree6dcf6393c942d20c259a70aed00dd3dc7ee28ec8 /Makefile
parent33e84f2e79659e410c379b530dac57779f201d15 (diff)
kbuild: move the Module.symvers check for external module build
$(objtree)/Module.symvers is not required for descending into sub-directories. It is needed for the modpost stage. Move the Module.symvers check to the right place. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1b23f95db176..a083dd9dce4a 100644
--- a/Makefile
+++ b/Makefile
@@ -1620,10 +1620,10 @@ $(objtree)/Module.symvers:
module-dirs := $(addprefix _module_,$(KBUILD_EXTMOD))
PHONY += $(module-dirs) modules
-$(module-dirs): prepare $(objtree)/Module.symvers
+$(module-dirs): prepare
$(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@) need-modorder=1
-modules: $(module-dirs)
+modules: $(module-dirs) $(objtree)/Module.symvers
@$(kecho) ' Building modules, stage 2.';
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost

Privacy Policy