diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-24 01:13:28 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-07-01 10:09:28 +0900 |
commit | 68980b4704d5d8c8cf2661f9d65a1a20ee455c1b (patch) | |
tree | 3f895b66a498218aa7e509e705e28ba891c2536a /Makefile | |
parent | 50ef0cdf58aea2f03f3d21390d68561ee7be215e (diff) | |
download | linux-starfive-68980b4704d5d8c8cf2661f9d65a1a20ee455c1b.tar.gz linux-starfive-68980b4704d5d8c8cf2661f9d65a1a20ee455c1b.tar.bz2 linux-starfive-68980b4704d5d8c8cf2661f9d65a1a20ee455c1b.zip |
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-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1286,12 +1286,14 @@ all: modules # using awk while concatenating to the final file. PHONY += modules -modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin - $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order +modules: $(if $(KBUILD_BUILTIN),vmlinux) modules.order modules.builtin @$(kecho) ' Building modules, stage 2.'; $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost $(Q)$(CONFIG_SHELL) $(srctree)/scripts/modules-check.sh +modules.order: $(vmlinux-dirs) + $(Q)$(AWK) '!x[$$0]++' $(addsuffix /$@, $(vmlinux-dirs)) > $@ + modbuiltin-dirs := $(addprefix _modbuiltin_, $(vmlinux-dirs)) modules.builtin: $(modbuiltin-dirs) |