diff mbox series

[01/11] kbuild: move the Module.symvers check for external module build

Message ID 20190810155307.29322-2-yamada.masahiro@socionext.com
State Accepted
Commit 16b59cd78595df5d77c535a08537f2d9dae61496
Headers show
Series kbuild: clean-ups and improvement of single targets | expand

Commit Message

Masahiro Yamada Aug. 10, 2019, 3:52 p.m. UTC
$(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>


 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff mbox series


diff --git a/Makefile b/Makefile
index 02aff718a11d..24c9ed272b5f 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