[openwrt/openwrt] config: fix CONFIG_GDB appearing in main menuconfig menu

LEDE Commits lede-commits at lists.infradead.org
Thu Apr 18 02:53:10 PDT 2024


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/e8cc17e147c092d99430f6c707c2ca94dfad40ae

commit e8cc17e147c092d99430f6c707c2ca94dfad40ae
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Mon Apr 8 22:05:19 2024 +0200

    config: fix CONFIG_GDB appearing in main menuconfig menu
    
    I noticed that CONFIG_GDB was suddenly appearing in the main menuconfig
    menu despite the fact that it should be visible only when TOOLCHAINOPTS
    is selected and under a dedicated menu.
    
    After some trial and error, it seems that this was caused by the recent
    addition of GCC_USE_DEFAULT_VERSION, and after even more trial and error
    it gets fixed as soon GCC_USE_DEFAULT_VERSION is placed after GCC_VERSION.
    
    So, lets simply put GCC_USE_DEFAULT_VERSION after GCC_VERSION.
    
    Fixes: 501ef81040ba ("config: select KERNEL_WERROR if building with default GCC version")
    Signed-off-by: Robert Marko <robimarko at gmail.com>
    Signed-off-by: Petr Štetiar <ynezz at true.cz> [rebased]
    (cherry picked from commit 12b2cb2ec3f1366b65caa0dbbdd83846c1c88d4e)
---
 toolchain/gcc/Config.in      | 5 -----
 toolchain/gcc/Config.version | 5 +++++
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/toolchain/gcc/Config.in b/toolchain/gcc/Config.in
index be975e5334..9156f9c263 100644
--- a/toolchain/gcc/Config.in
+++ b/toolchain/gcc/Config.in
@@ -16,11 +16,6 @@ choice
 		bool "gcc 13.x"
 endchoice
 
-config GCC_USE_DEFAULT_VERSION
-	bool
-	default y if !TOOLCHAINOPTS || GCC_USE_VERSION_12
-	imply KERNEL_WERROR
-
 config GCC_USE_GRAPHITE
 	bool
 	prompt "Compile in support for the new Graphite framework in GCC 4.4+" if TOOLCHAINOPTS
diff --git a/toolchain/gcc/Config.version b/toolchain/gcc/Config.version
index 7126a0c883..e40d6b2df3 100644
--- a/toolchain/gcc/Config.version
+++ b/toolchain/gcc/Config.version
@@ -11,3 +11,8 @@ config GCC_VERSION
 	default "11.3.0"	if GCC_VERSION_11
 	default "13.1.0"	if GCC_VERSION_13
 	default "12.3.0"
+
+config GCC_USE_DEFAULT_VERSION
+	bool
+	default y if !TOOLCHAINOPTS || GCC_USE_VERSION_12
+	imply KERNEL_WERROR




More information about the lede-commits mailing list