diff --git a/config/Config-kernel.in b/config/Config-kernel.in index 3f94b6517c..562eca3930 100644 --- a/config/Config-kernel.in +++ b/config/Config-kernel.in @@ -352,7 +352,6 @@ config KERNEL_DEBUG_INFO This will compile your kernel and modules with debug information. config KERNEL_DEBUG_INFO_BTF - bool "Enable additional BTF type information" default y if (TARGET_armsr || TARGET_bcm27xx || TARGET_ipq806x_chromium || TARGET_ipq807x || TARGET_mediatek_filogic || TARGET_mvebu_cortexa53 || TARGET_mvebu_cortexa72 || TARGET_rockchip || TARGET_sunxi || TARGET_x86_64) && BUILDBOT depends on !HOST_OS_MACOS @@ -365,9 +364,13 @@ config KERNEL_DEBUG_INFO_BTF Required to run BPF CO-RE applications. +config KERNEL_DEBUG_INFO_BTF_MODULES + def_bool y + depends on KERNEL_DEBUG_INFO_BTF + config KERNEL_MODULE_ALLOW_BTF_MISMATCH bool "Allow loading modules with non-matching BTF type info" - depends on KERNEL_DEBUG_INFO_BTF + depends on KERNEL_DEBUG_INFO_BTF_MODULES default y help For modules whose split BTF does not match vmlinux, load without