mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-28 01:30:37 +04:00
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>