diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-17 15:17:55 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-18 02:16:27 +0900 |
commit | ff9b45c55b2659d14420424da0ce4e8aa3dbce28 (patch) | |
tree | d913ed94c68666a7b76223f47abc092e6f36444c /Makefile | |
parent | c35c87d6f258ad943d0fb350ed45fa9302c36b52 (diff) | |
download | linux-ff9b45c55b2659d14420424da0ce4e8aa3dbce28.tar.gz linux-ff9b45c55b2659d14420424da0ce4e8aa3dbce28.tar.bz2 linux-ff9b45c55b2659d14420424da0ce4e8aa3dbce28.zip |
kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod
Towards the goal of removing MODVERDIR, read out modules.order to get
the list of modules to be processed. This is simpler than parsing *.mod
files in $(MODVERDIR).
For external modules, $(KBUILD_EXTMOD)/modules.order should be read.
I removed the single target %.ko from the top Makefile. To make sure
modpost works correctly, vmlinux and the other modules must be built.
You cannot build a particular .ko file alone.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1772,8 +1772,6 @@ build-dir = $(patsubst %/,%,$(dir $(build-target))) $(Q)$(MAKE) $(build)=$(build-dir) $(build-target) %.symtypes: prepare FORCE $(Q)$(MAKE) $(build)=$(build-dir) $(build-target) -%.ko: %.o - $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost # Modules PHONY += / |