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 <craftyguy@postmarketos.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7466>
This commit is contained in:
Clayton Craft 2025-11-30 21:10:08 -08:00 committed by The Friendly Merge Bot
parent 5800491bb1
commit 5cbd09c81c
No known key found for this signature in database

View file

@ -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