summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-10 17:52:57 +0200
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-08-14 19:25:11 +0200
commit16b59cd78595df5d77c535a08537f2d9dae61496 (patch)
tree6dcf6393c942d20c259a70aed00dd3dc7ee28ec8
parentkbuild: treat an object as multi-used when $(foo-) is set (diff)
downloadlinux-16b59cd78595df5d77c535a08537f2d9dae61496.tar.xz
linux-16b59cd78595df5d77c535a08537f2d9dae61496.zip
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>
-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