]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kbuild: add dependency from vmlinux to sorttable
authorXi Ruoyao <xry111@xry111.site>
Wed, 26 Feb 2025 13:30:14 +0000 (21:30 +0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 15 Mar 2025 12:19:44 +0000 (21:19 +0900)
Without this dependency it's really puzzling when we bisect for a "bad"
commit in a series of sorttable change: when "git bisect" switches to
another commit, "make" just does nothing to vmlinux.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/Makefile.vmlinux

index 873caaa553134e09d034e0c4e0ac7f07c9e3f31b..fb79fd6b246543d598e83c919f2dfcf349e58b5e 100644 (file)
@@ -79,6 +79,10 @@ ifdef CONFIG_DEBUG_INFO_BTF
 vmlinux: $(RESOLVE_BTFIDS)
 endif
 
+ifdef CONFIG_BUILDTIME_TABLE_SORT
+vmlinux: scripts/sorttable
+endif
+
 # module.builtin.ranges
 # ---------------------------------------------------------------------------
 ifdef CONFIG_BUILTIN_MODULE_RANGES