diff --git a/linux_config/default b/linux_config/default index ad751b4..0363154 100644 --- a/linux_config/default +++ b/linux_config/default @@ -10,8 +10,14 @@ CONFIG_OVERLAY_FS=y # https://cirosantilli.com/linux-kernel-module-cheat#squashfs CONFIG_SQUASHFS=y -# GDB debugging. +## GDB debugging. + +# https://unix.stackexchange.com/questions/712513/why-is-the-flag-config-debug-info-reset-when-building-the-linux-kernel +# < 5.18 CONFIG_DEBUG_INFO=y +# >= 5.18 +CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y + CONFIG_DEBUG_KERNEL=y CONFIG_GDB_SCRIPTS=y