kbuild: add dependency from vmlinux to resolve_btfids
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 23 Nov 2024 13:33:37 +0000 (14:33 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Nov 2024 23:46:03 +0000 (08:46 +0900)
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>
scripts/Makefile.vmlinux

index 997be5dc7bf52d7524a61de6167e0b3584fbbc9a..2ecd350e9c43b3f13a80d79b0731e01ac5393bfd 100644 (file)
@@ -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
 # ---------------------------------------------------------------------------