Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68980b47 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 50ef0cdf
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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)