[PATCH] kconfig: prefer toolchain default for debug information choice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kconfig by default chooses the first entry of a choice setting.
For the "debug information" choice this is DEBUG_INFO_NONE which
disables debug information completely.

The kconfig choice itself recommends to use "Toolchain default":

	Choose which version of DWARF debug info to emit. If unsure,
	select "Toolchain default".

Align the actual configuration with the recommendation by providing an
explicit default.

This also enables more codepaths from allmodconfig/allyesconfig which
depend on debug information being available.

Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
 lib/Kconfig.debug | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 5d9eca035d470f7ba0c5ff932c37fd5869174269..0aefcd103d9012cd8067e5594404358b0e977644 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -240,6 +240,7 @@ config AS_HAS_NON_CONST_ULEB128
 choice
 	prompt "Debug information"
 	depends on DEBUG_KERNEL
+	default DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT
 	help
 	  Selecting something other than "None" results in a kernel image
 	  that will include debugging info resulting in a larger kernel image.

---
base-commit: 9f16d5e6f220661f73b36a4be1b21575651d8833
change-id: 20241124-kbuild-allconfig_debug_info-f7449ba15be6

Best regards,
-- 
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>





[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux