diff mbox

[2/3,config/gdb] Update GDB version dependencies

Message ID 1408141290-19515-3-git-send-email-bryanhundven@gmail.com
State Superseded
Headers show

Commit Message

Bryan Hundven Aug. 15, 2014, 10:21 p.m. UTC
This change allows the gdb build scripts to use a generic:
    GDB_X_Y_or_later
instead of parsing the GDB_VERSION string.

Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
---
 config/debug/gdb.in | 61 +++++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 47 insertions(+), 14 deletions(-)

Comments

Bryan Hundven Aug. 15, 2014, 11:49 p.m. UTC | #1
Yann, List,

On Fri, Aug 15, 2014 at 3:21 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
> This change allows the gdb build scripts to use a generic:
>     GDB_X_Y_or_later
> instead of parsing the GDB_VERSION string.

This patch is optional.

I see potential uses for doing kconfig checks on certain versions
(or_later) in combination with certain targets being supported.

But, if I remember correctly, I think we spoke a while ago about
dropping the cross-gdb and gdbserver for the target build system to
make (buildroot, yocto, openembedded, ptxdist, etc...)

-Bryan

> Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
> ---
>  config/debug/gdb.in | 61 +++++++++++++++++++++++++++++++++++++++++------------
>  1 file changed, 47 insertions(+), 14 deletions(-)
>
> diff --git a/config/debug/gdb.in b/config/debug/gdb.in
> index 3aaff8e..26884ab 100644
> --- a/config/debug/gdb.in
> +++ b/config/debug/gdb.in
> @@ -36,71 +36,71 @@ choice
>  config GDB_V_7_8
>      bool
>      prompt "7.8"
> -    select GDB_7_2_or_later
> +    select GDB_7_8_or_later
>
>  config GDB_V_7_7_1
>      bool
>      prompt "7.7.1"
> -    select GDB_7_2_or_later
> +    select GDB_7_7_or_later
>
>  config GDB_V_7_7
>      bool
>      prompt "7.7"
> -    select GDB_7_2_or_later
> +    select GDB_7_7_or_later
>
>  config GDB_V_7_6_1
>      bool
>      prompt "7.6.1"
> -    select GDB_7_2_or_later
> +    select GDB_7_6_or_later
>
>  config GDB_V_linaro_7_6_2013_05
>      bool
>      prompt "linaro-7.6-2013.05"
>      depends on DEBUG_GDB_SHOW_LINARO
> -    select GDB_7_2_or_later
> +    select GDB_7_6_or_later
>
>  config GDB_V_7_5_1
>      bool
>      prompt "7.5.1"
> -    select GDB_7_2_or_later
> +    select GDB_7_5_or_later
>
>  config GDB_V_linaro_7_5_2012_12_1
>      bool
>      prompt "linaro-7.5-2012.12-1"
>      depends on DEBUG_GDB_SHOW_LINARO
> -    select GDB_7_2_or_later
> +    select GDB_7_5_or_later
>
>  config GDB_V_linaro_7_4_2012_06
>      bool
>      prompt "linaro-7.4-2012.06"
>      depends on DEBUG_GDB_SHOW_LINARO
> -    select GDB_7_2_or_later
> +    select GDB_7_4_or_later
>
>  config GDB_V_7_4_1
>      bool
>      prompt "7.4.1"
> -    select GDB_7_2_or_later
> +    select GDB_7_4_or_later
>
>  config GDB_V_7_4
>      bool
>      prompt "7.4"
> -    select GDB_7_2_or_later
> +    select GDB_7_4_or_later
>
>  config GDB_V_linaro_7_3_2011_12
>      bool
>      prompt "linaro-7.3-2011.12"
>      depends on DEBUG_GDB_SHOW_LINARO
> -    select GDB_7_2_or_later
> +    select GDB_7_3_or_later
>
>  config GDB_V_7_3_1
>      bool
>      prompt "7.3.1"
> -    select GDB_7_2_or_later
> +    select GDB_7_3_or_later
>
>  config GDB_V_7_3a
>      bool
>      prompt "7.3a"
> -    select GDB_7_2_or_later
> +    select GDB_7_3_or_later
>
>  config GDB_V_linaro_7_2_2011_05_0
>      bool
> @@ -116,7 +116,7 @@ config GDB_V_7_2a
>  config GDB_V_7_1a
>      bool
>      prompt "7.1a"
> -    select GDB_7_0_or_later
> +    select GDB_7_1_or_later
>
>  config GDB_V_7_0_1a
>      bool
> @@ -131,6 +131,7 @@ config GDB_V_7_0a
>  config GDB_V_6_8a
>      bool
>      prompt "6.8a"
> +    select GDB_6_8_or_later
>
>  config GDB_CUSTOM
>      bool
> @@ -140,14 +141,46 @@ config GDB_CUSTOM
>
>  endchoice
>
> +config GDB_7_8_or_later
> +    bool
> +    select GDB_7_7_or_later
> +
> +config GDB_7_7_or_later
> +    bool
> +    select GDB_7_6_or_later
> +
> +config GDB_7_6_or_later
> +    bool
> +    select GDB_7_5_or_later
> +
> +config GDB_7_5_or_later
> +    bool
> +    select GDB_7_4_or_later
> +
> +config GDB_7_4_or_later
> +    bool
> +    select GDB_7_3_or_later
> +
> +config GDB_7_3_or_later
> +    bool
> +    select GDB_7_2_or_later
> +
>  config GDB_7_2_or_later
>      bool
> +    select GDB_7_1_or_later
> +
> +config GDB_7_1_or_later
> +    bool
>      select GDB_7_0_or_later
>
>  config GDB_7_0_or_later
>      bool
>      select GDB_HAS_PKGVERSION_BUGURL
>      select GDB_INSTALL_GDBINIT
> +    select GDB_6_8_or_later
> +
> +config GDB_6_8_or_later
> +    bool
>
>  config GDB_HAS_PKGVERSION_BUGURL
>      bool
> --
> 2.1.0.rc1
>

--
For unsubscribe information see http://sourceware.org/lists.html#faq
diff mbox

Patch

diff --git a/config/debug/gdb.in b/config/debug/gdb.in
index 3aaff8e..26884ab 100644
--- a/config/debug/gdb.in
+++ b/config/debug/gdb.in
@@ -36,71 +36,71 @@  choice
 config GDB_V_7_8
     bool
     prompt "7.8"
-    select GDB_7_2_or_later
+    select GDB_7_8_or_later
 
 config GDB_V_7_7_1
     bool
     prompt "7.7.1"
-    select GDB_7_2_or_later
+    select GDB_7_7_or_later
 
 config GDB_V_7_7
     bool
     prompt "7.7"
-    select GDB_7_2_or_later
+    select GDB_7_7_or_later
 
 config GDB_V_7_6_1
     bool
     prompt "7.6.1"
-    select GDB_7_2_or_later
+    select GDB_7_6_or_later
 
 config GDB_V_linaro_7_6_2013_05
     bool
     prompt "linaro-7.6-2013.05"
     depends on DEBUG_GDB_SHOW_LINARO
-    select GDB_7_2_or_later
+    select GDB_7_6_or_later
 
 config GDB_V_7_5_1
     bool
     prompt "7.5.1"
-    select GDB_7_2_or_later
+    select GDB_7_5_or_later
 
 config GDB_V_linaro_7_5_2012_12_1
     bool
     prompt "linaro-7.5-2012.12-1"
     depends on DEBUG_GDB_SHOW_LINARO
-    select GDB_7_2_or_later
+    select GDB_7_5_or_later
 
 config GDB_V_linaro_7_4_2012_06
     bool
     prompt "linaro-7.4-2012.06"
     depends on DEBUG_GDB_SHOW_LINARO
-    select GDB_7_2_or_later
+    select GDB_7_4_or_later
 
 config GDB_V_7_4_1
     bool
     prompt "7.4.1"
-    select GDB_7_2_or_later
+    select GDB_7_4_or_later
 
 config GDB_V_7_4
     bool
     prompt "7.4"
-    select GDB_7_2_or_later
+    select GDB_7_4_or_later
 
 config GDB_V_linaro_7_3_2011_12
     bool
     prompt "linaro-7.3-2011.12"
     depends on DEBUG_GDB_SHOW_LINARO
-    select GDB_7_2_or_later
+    select GDB_7_3_or_later
 
 config GDB_V_7_3_1
     bool
     prompt "7.3.1"
-    select GDB_7_2_or_later
+    select GDB_7_3_or_later
 
 config GDB_V_7_3a
     bool
     prompt "7.3a"
-    select GDB_7_2_or_later
+    select GDB_7_3_or_later
 
 config GDB_V_linaro_7_2_2011_05_0
     bool
@@ -116,7 +116,7 @@  config GDB_V_7_2a
 config GDB_V_7_1a
     bool
     prompt "7.1a"
-    select GDB_7_0_or_later
+    select GDB_7_1_or_later
 
 config GDB_V_7_0_1a
     bool
@@ -131,6 +131,7 @@  config GDB_V_7_0a
 config GDB_V_6_8a
     bool
     prompt "6.8a"
+    select GDB_6_8_or_later
 
 config GDB_CUSTOM
     bool
@@ -140,14 +141,46 @@  config GDB_CUSTOM
 
 endchoice
 
+config GDB_7_8_or_later
+    bool
+    select GDB_7_7_or_later
+
+config GDB_7_7_or_later
+    bool
+    select GDB_7_6_or_later
+
+config GDB_7_6_or_later
+    bool
+    select GDB_7_5_or_later
+
+config GDB_7_5_or_later
+    bool
+    select GDB_7_4_or_later
+
+config GDB_7_4_or_later
+    bool
+    select GDB_7_3_or_later
+
+config GDB_7_3_or_later
+    bool
+    select GDB_7_2_or_later
+
 config GDB_7_2_or_later
     bool
+    select GDB_7_1_or_later
+
+config GDB_7_1_or_later
+    bool
     select GDB_7_0_or_later
 
 config GDB_7_0_or_later
     bool
     select GDB_HAS_PKGVERSION_BUGURL
     select GDB_INSTALL_GDBINIT
+    select GDB_6_8_or_later
+
+config GDB_6_8_or_later
+    bool
 
 config GDB_HAS_PKGVERSION_BUGURL
     bool