From: Thomas Weißschuh Date: Sat, 23 Nov 2024 13:33:37 +0000 (+0100) Subject: kbuild: add dependency from vmlinux to resolve_btfids X-Git-Tag: microblaze-v6.16~480^2~2 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=18e9944e56f68423e52505066f79939e7d12a62b;p=linux-2.6-microblaze.git kbuild: add dependency from vmlinux to resolve_btfids resolve_btfids is used by link-vmlinux.sh. In contrast to other configuration options and targets no transitive dependency between resolve_btfids and vmlinux. Add an explicit one. Signed-off-by: Thomas Weißschuh Acked-by: Jiri Olsa Signed-off-by: Masahiro Yamada --- diff --git a/scripts/Makefile.vmlinux b/scripts/Makefile.vmlinux index 997be5dc7bf5..2ecd350e9c43 100644 --- a/scripts/Makefile.vmlinux +++ b/scripts/Makefile.vmlinux @@ -68,6 +68,9 @@ cmd_link_vmlinux = \ targets += vmlinux vmlinux: scripts/link-vmlinux.sh vmlinux.o $(KBUILD_LDS) FORCE +$(call if_changed_dep,link_vmlinux) +ifdef CONFIG_DEBUG_INFO_BTF +vmlinux: $(RESOLVE_BTFIDS) +endif # module.builtin.ranges # ---------------------------------------------------------------------------