From 5cbd09c81cfd8b38d8689999f7e910c33951801e Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Sun, 30 Nov 2025 21:10:08 -0800 Subject: [PATCH] kconfigcheck: rust: disable DEBUG_INFO_BTF When this config is enabled along with LTO (from the "hardening" category), the kernel build system disables rust support. These options are added to a new category, "rust" since it's only necessary for kernels with rust support enabled. Signed-off-by: Clayton Craft Part-of: --- kconfigcheck.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kconfigcheck.toml b/kconfigcheck.toml index b5eb15172..2429ddefd 100644 --- a/kconfigcheck.toml +++ b/kconfigcheck.toml @@ -599,3 +599,7 @@ CFI_ICALL_NORMALIZE_INTEGERS = "y" # Required for CFI with Rust SHADOW_CALL_STACK = "y" ["category:hardening".">=6.7.0"."riscv64"] SHADOW_CALL_STACK = "y" + +["category:rust".">=6.1.0"] +DEBUG_INFO_BTF = "n" # Conflicts with LTO when Rust is enabled +DEBUG_INFO_BTF_MODULES = "n" # Conflicts with LTO when Rust is enabled