Skip to content

Commit

Permalink
kernel: add DEBUG_INFO_REDUCED config option
Browse files Browse the repository at this point in the history
Add DEBUG_INFO_REDUCED as a kernel config option and remove it from the
kernel configs. This is in preparation of the upcoming option to enable
BTF typeinfo, which is incompatible with DEBUG_INFO_REDUCED.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
  • Loading branch information
stintel committed May 18, 2022
1 parent 2d2fd2a commit 44bcad2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
14 changes: 14 additions & 0 deletions config/Config-kernel.in
Expand Up @@ -373,6 +373,20 @@ config KERNEL_DEBUG_INFO
help
This will compile your kernel and modules with debug information.

config KERNEL_DEBUG_INFO_REDUCED
bool "Reduce debugging information"
default y
depends on KERNEL_DEBUG_INFO
help
If you say Y here gcc is instructed to generate less debugging
information for structure types. This means that tools that
need full debugging information (like kgdb or systemtap) won't
be happy. But if you merely need debugging information to
resolve line numbers there is no loss. Advantage is that
build directory object sizes shrink dramatically over a full
DEBUG_INFO build and compile times are reduced too.
Only works with newer gcc versions.

config KERNEL_DEBUG_LL_UART_NONE
bool
default n
Expand Down
1 change: 0 additions & 1 deletion target/linux/generic/config-5.10
Expand Up @@ -1276,7 +1276,6 @@ CONFIG_DEBUG_FS_ALLOW_ALL=y
# CONFIG_DEBUG_INFO_BTF is not set
# CONFIG_DEBUG_INFO_COMPRESSED is not set
# CONFIG_DEBUG_INFO_DWARF4 is not set
CONFIG_DEBUG_INFO_REDUCED=y
# CONFIG_DEBUG_INFO_SPLIT is not set
CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_KMEMLEAK is not set
Expand Down
1 change: 0 additions & 1 deletion target/linux/generic/config-5.15
Expand Up @@ -1315,7 +1315,6 @@ CONFIG_DEBUG_FS_ALLOW_ALL=y
# CONFIG_DEBUG_INFO_DWARF4 is not set
# CONFIG_DEBUG_INFO_DWARF5 is not set
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
CONFIG_DEBUG_INFO_REDUCED=y
# CONFIG_DEBUG_INFO_SPLIT is not set
# CONFIG_DEBUG_IRQFLAGS is not set
CONFIG_DEBUG_KERNEL=y
Expand Down

0 comments on commit 44bcad2

Please sign in to comment.