[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241124-kbuild-allconfig_debug_info-v1-1-07a7ac8d9a73@weissschuh.net>
Date: Sun, 24 Nov 2024 16:58:04 +0100
From: Thomas Weißschuh <linux@...ssschuh.net>
To: Andrew Morton <akpm@...ux-foundation.org>,
Masahiro Yamada <masahiroy@...nel.org>
Cc: linux-kernel@...r.kernel.org, Nathan Chancellor <nathan@...nel.org>,
Nicolas Schier <nicolas@...sle.eu>, linux-kbuild@...r.kernel.org,
Thomas Weißschuh <linux@...ssschuh.net>
Subject: [PATCH] kconfig: prefer toolchain default for debug information
choice
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@...ssschuh.net>
---
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@...ssschuh.net>
Powered by blists - more mailing lists