build: add option KERNEL_DEBUG_INFO_BTF
[openwrt/staging/nbd.git] / config / Config-kernel.in
index 07d65bc465c5ef7063372e49955968fb96d64ee2..bd71bcebf22ca52fd13ef82175ce4eed3eaae42a 100644 (file)
@@ -368,6 +368,21 @@ config KERNEL_DEBUG_INFO
        help
          This will compile your kernel and modules with debug information.
 
+config KERNEL_DEBUG_INFO_BTF
+       bool "Enable additional BTF type information"
+       default n
+       depends on KERNEL_DEBUG_INFO
+       depends on !HOST_OS_MACOS
+       select DWARVES
+       help
+         Generate BPF Type Format (BTF) information from DWARF debug info.
+         Turning this on expects presence of pahole tool, which will convert
+         DWARF type info into equivalent deduplicated BTF type info.
+
+config KERNEL_DEBUG_INFO_REDUCED
+       def_bool !KERNEL_DEBUG_INFO_BTF
+       depends on KERNEL_DEBUG_INFO
+
 config KERNEL_DEBUG_LL_UART_NONE
        bool
        default n