From: Masahiro Yamada Date: Sat, 10 Aug 2019 15:52:57 +0000 (+0900) Subject: kbuild: move the Module.symvers check for external module build X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=16b59cd78595df5d77c535a08537f2d9dae61496;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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