]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - lib/Kconfig.debug
kbuild: add ability to generate BTF type info for vmlinux
[thirdparty/linux.git] / lib / Kconfig.debug
index bd62be80228e4b3d6b09c685c78663f977dde54a..188fc17c22022d8a67fe51fb0f673b6156e69d28 100644 (file)
@@ -196,6 +196,7 @@ config DEBUG_INFO_REDUCED
 config DEBUG_INFO_SPLIT
        bool "Produce split debuginfo in .dwo files"
        depends on DEBUG_INFO
+       depends on $(cc-option,-gsplit-dwarf)
        help
          Generate debug info into separate .dwo files. This significantly
          reduces the build directory size for builds with DEBUG_INFO,
@@ -211,12 +212,21 @@ config DEBUG_INFO_SPLIT
 config DEBUG_INFO_DWARF4
        bool "Generate dwarf4 debuginfo"
        depends on DEBUG_INFO
+       depends on $(cc-option,-gdwarf-4)
        help
          Generate dwarf4 debug info. This requires recent versions
          of gcc and gdb. It makes the debug information larger.
          But it significantly improves the success of resolving
          variables in gdb on optimized code.
 
+config DEBUG_INFO_BTF
+       bool "Generate BTF typeinfo"
+       depends on DEBUG_INFO
+       help
+         Generate deduplicated BTF type 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 GDB_SCRIPTS
        bool "Provide GDB scripts for kernel debugging"
        depends on DEBUG_INFO