diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-09-28 09:39:40 +0300 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-10-02 21:52:58 +0300 |
commit | 7a342e6c7735e13b294374cb0a0f6283d8667496 (patch) | |
tree | 784cf59af95127834224b9977a226160e6ea08f3 /Makefile | |
parent | 637a642f5ca5e850186bb64ac75ebb0f124b458d (diff) | |
download | linux-7a342e6c7735e13b294374cb0a0f6283d8667496.tar.xz |
kbuild: move modules.builtin(.modinfo) rules to Makefile.vmlinux_o
Do not build modules.builtin(.modinfo) as a side-effect of vmlinux.
There are no good reason to rebuild them just because any of vmlinux's
prerequistes (vmlinux.lds, .vmlinux.export.c, etc.) has been updated.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1153,9 +1153,13 @@ targets += vmlinux.a vmlinux.a: $(KBUILD_VMLINUX_OBJS) scripts/head-object-list.txt autoksyms_recursive FORCE $(call if_changed,ar_vmlinux.a) -vmlinux.o: vmlinux.a $(KBUILD_VMLINUX_LIBS) FORCE +PHONY += vmlinux_o +vmlinux_o: vmlinux.a $(KBUILD_VMLINUX_LIBS) $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.vmlinux_o +vmlinux.o modules.builtin.modinfo modules.builtin: vmlinux_o + @: + ARCH_POSTLINK := $(wildcard $(srctree)/arch/$(SRCARCH)/Makefile.postlink) # Final link of vmlinux with optional arch pass after final link |