summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-06-23 12:13:28 -0400
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-06-30 21:09:28 -0400
commit68980b4704d5d8c8cf2661f9d65a1a20ee455c1b (patch)
tree3f895b66a498218aa7e509e705e28ba891c2536a /Makefile
parent50ef0cdf58aea2f03f3d21390d68561ee7be215e (diff)
kbuild: split modules.order build rule out of 'modules' target
modules.order is a real target. Split its build rule out like modules.builtin Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f8e4f930e497..c3b6dcd5b177 100644
--- a/Makefile
+++ b/Makefile
@@ -1286,12 +1286,14 @@ all: modules
1286# using awk while concatenating to the final file. 1286# using awk while concatenating to the final file.
1287 1287
1288PHONY += modules 1288PHONY += modules
1289modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin 1289modules: $(if $(KBUILD_BUILTIN),vmlinux) modules.order modules.builtin
1290 $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
1291 @$(kecho) ' Building modules, stage 2.'; 1290 @$(kecho) ' Building modules, stage 2.';
1292 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost 1291 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
1293 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh 1292 $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh
1294 1293
1294modules.order: $(vmlinux-dirs)
1295 $(Q)$(AWK) '!x[$$0]++' $(addsuffix /$@, $(vmlinux-dirs)) > $@
1296
1295modbuiltin-dirs := $(addprefix _modbuiltin_, $(vmlinux-dirs)) 1297modbuiltin-dirs := $(addprefix _modbuiltin_, $(vmlinux-dirs))
1296 1298
1297modules.builtin: $(modbuiltin-dirs) 1299modules.builtin: $(modbuiltin-dirs)