summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-17 08:17:55 +0200
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-17 19:16:27 +0200
commitff9b45c55b2659d14420424da0ce4e8aa3dbce28 (patch)
treed913ed94c68666a7b76223f47abc092e6f36444c /Makefile
parentkbuild: modsign: read modules.order instead of $(MODVERDIR)/*.mod (diff)
downloadlinux-ff9b45c55b2659d14420424da0ce4e8aa3dbce28.tar.xz
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--Makefile2
1 files changed, 0 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 396cd5e525d1..d9103e731187 100644
--- a/Makefile
+++ b/Makefile
@@ -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 += /