[PATCH v2] build: make KERNEL_DEBUG_INFO_BTF_MODULES user-selectable

phpdragon phpdragon at foxmail.com
Thu Nov 26 21:03:58 PST 2026


Hi OpenWrt maintainers,

This is v2 of the patch. The only change from v1 is fixing the indentation to use tabs instead of spaces.

I have also updated the GitHub PR:
https://github.com/phpdragon/openwrt/pull/1

Below is the updated patch:

diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index 7c531cefbcffea..d6d9d06ecb052c 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -570,7 +570,8 @@ config KERNEL_DEBUG_INFO_BTF
          Required to run BPF CO-RE applications.
 
 config KERNEL_DEBUG_INFO_BTF_MODULES
-       def_bool y
+       bool "Generate BTF type information for kernel modules"
+       default y
        depends on KERNEL_DEBUG_INFO_BTF
 
 config KERNEL_MODULE_ALLOW_BTF_MISMATCH
-- 
2.55.0

Signed-off-by: phpdragon <phpdragon at qq.com>


More information about the openwrt-devel mailing list