Skip to content

Commit

Permalink
kbuild: add dependency from vmlinux to resolve_btfids
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Weißschuh authored and Masahiro Yamada committed Nov 27, 2024
1 parent 5eaea85 commit 18e9944
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/Makefile.vmlinux
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ---------------------------------------------------------------------------
Expand Down

0 comments on commit 18e9944

Please sign in to comment.