summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2024-11-23 14:33:37 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2024-11-28 00:46:03 +0100
commit18e9944e56f68423e52505066f79939e7d12a62b (patch)
treede10e02cc315bcfef87e27a5b2dd55bbad624973
parentmodpost: replace tdb_hash() with hash_str() (diff)
downloadlinux-18e9944e56f68423e52505066f79939e7d12a62b.tar.xz
linux-18e9944e56f68423e52505066f79939e7d12a62b.zip
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 <linux@weissschuh.net> Acked-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
-rw-r--r--scripts/Makefile.vmlinux3
1 files changed, 3 insertions, 0 deletions
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
# ---------------------------------------------------------------------------