diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-10 17:52:57 +0200 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-08-14 19:25:11 +0200 |
commit | 16b59cd78595df5d77c535a08537f2d9dae61496 (patch) | |
tree | 6dcf6393c942d20c259a70aed00dd3dc7ee28ec8 /Makefile | |
parent | kbuild: treat an object as multi-used when $(foo-) is set (diff) | |
download | linux-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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |