Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: vmlinux.unstripped should always depend on .vmlinux.export.o

Since .vmlinux.export.c is used to add generated by modpost modaliases
for builtin modules the .vmlinux.export.o is no longer optional and
should always be created. The generation of this file is not dependent
on CONFIG_MODULES.

Signed-off-by: Alexey Gladkov <legion@kernel.org>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/0e63a9c7741fe8217e4fd7c60afcf057ffa2ef5a.1758182101.git.legion@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

authored by

Alexey Gladkov and committed by
Nathan Chancellor
3328d39a 5ab23c79

+3 -11
+2 -7
scripts/Makefile.vmlinux
··· 53 53 # vmlinux.unstripped 54 54 # --------------------------------------------------------------------------- 55 55 56 - ifdef CONFIG_MODULES 57 - targets += .vmlinux.export.o 58 - vmlinux.unstripped: .vmlinux.export.o 59 - endif 60 - 61 56 ifdef CONFIG_ARCH_WANTS_PRE_LINK_VMLINUX 62 57 vmlinux.unstripped: arch/$(SRCARCH)/tools/vmlinux.arch.o 63 58 ··· 67 72 $< "$(LD)" "$(KBUILD_LDFLAGS)" "$(LDFLAGS_vmlinux)" "$@"; \ 68 73 $(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true) 69 74 70 - targets += vmlinux.unstripped 71 - vmlinux.unstripped: scripts/link-vmlinux.sh vmlinux.o $(KBUILD_LDS) FORCE 75 + targets += vmlinux.unstripped .vmlinux.export.o 76 + vmlinux.unstripped: scripts/link-vmlinux.sh vmlinux.o .vmlinux.export.o $(KBUILD_LDS) FORCE 72 77 +$(call if_changed_dep,link_vmlinux) 73 78 ifdef CONFIG_DEBUG_INFO_BTF 74 79 vmlinux.unstripped: $(RESOLVE_BTFIDS)