Files
openwrt/config
Sander van Deijck 388973e390 kernel: make KERNEL_DEBUG_INFO=n disable debug information
Since Linux 5.18, CONFIG_DEBUG_INFO has no prompt. It is selected by the
"Debug information" choice, which the generic config sets to
DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT. Writing "# CONFIG_DEBUG_INFO is not
set" is therefore ignored, and the kernel is built with debug
information even when KERNEL_DEBUG_INFO is disabled, which is the
default on SMALL_FLASH targets.

Add a hidden KERNEL_DEBUG_INFO_NONE option that selects DEBUG_INFO_NONE
in the choice when KERNEL_DEBUG_INFO is disabled.

Firmware images are not affected, as the kernel and modules are
stripped, but build time and disk usage are.

Signed-off-by: Sander van Deijck <sander@vandeijck.com>
Link: https://github.com/openwrt/openwrt/pull/26065
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2026-10-21 18:49:00 +02:00
..