Patchwork [1/4] crosstool-ng/gcc: Add recipe option for gdb-cross build

login
register
mail settings
Submitter Morten Svendsen
Date Oct. 17, 2012, 11:33 a.m.
Message ID <e3b09a5fb83f1a91a278c57e9b21ade54dd89c9b.1350473427.git.morten.thunbergsvendsen@prevas.dk>
Download mbox | patch
Permalink /patch/192017/
State Accepted
Delegated to: Esben Haabendal
Headers show

Comments

Morten Svendsen - Oct. 17, 2012, 11:33 a.m.
---
 recipes/crosstool-ng/gcc-configure.inc |    3 +++
 1 file changed, 3 insertions(+)
Esben Haabendal - Oct. 22, 2012, 4:16 p.m.
Morten Thunberg Svendsen <morten.thunbergsvendsen@prevas.dk> writes:

> ---
>  recipes/crosstool-ng/gcc-configure.inc |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/recipes/crosstool-ng/gcc-configure.inc b/recipes/crosstool-ng/gcc-configure.inc
> index 77e1cbb..edd7a47 100644
> --- a/recipes/crosstool-ng/gcc-configure.inc
> +++ b/recipes/crosstool-ng/gcc-configure.inc
> @@ -53,6 +53,9 @@ CT_GDB_GDBSERVER:cross		= "y"
>  
>  AUTO_CT_BOOLEAN_VARS += "CT_GDB_CROSS"
>  CT_GDB_CROSS:canadian-cross	= "y"
> +RECIPE_FLAGS:>cross                  += " toolchain_cross_gdb"
> +CT_GDB_CROSS:USE_toolchain_cross_gdb  = "y"
> +DEPENDS:>USE_toolchain_cross_gdb      = " host:libexpat"
>  
>  AUTO_CT_BOOLEAN_VARS += "CT_GDB_NATIVE"
>  CT_GDB_NATIVE:machine		= "y"

This way, the toolchain_cross_gdb USE flag will also enable gdb for
sdk-cross:gcc.  Is that intentional?

It would also be nice to stay prepared for adding "machine" to gcc
RECIPE_TYPES, which in this case would require the USE flag to be
handled a bit smarter.

/Esben
Esben Haabendal - Feb. 27, 2013, 9:10 a.m.
Morten Thunberg Svendsen <morten.thunbergsvendsen@prevas.dk> writes:

> ---
>  recipes/crosstool-ng/gcc-configure.inc |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/recipes/crosstool-ng/gcc-configure.inc b/recipes/crosstool-ng/gcc-configure.inc
> index 77e1cbb..edd7a47 100644
> --- a/recipes/crosstool-ng/gcc-configure.inc
> +++ b/recipes/crosstool-ng/gcc-configure.inc
> @@ -53,6 +53,9 @@ CT_GDB_GDBSERVER:cross		= "y"
>  
>  AUTO_CT_BOOLEAN_VARS += "CT_GDB_CROSS"
>  CT_GDB_CROSS:canadian-cross	= "y"
> +RECIPE_FLAGS:>cross                  += " toolchain_cross_gdb"
> +CT_GDB_CROSS:USE_toolchain_cross_gdb  = "y"
> +DEPENDS:>USE_toolchain_cross_gdb      = " host:libexpat"
>  
>  AUTO_CT_BOOLEAN_VARS += "CT_GDB_NATIVE"
>  CT_GDB_NATIVE:machine		= "y"

Merged to master, thanks.

/Esben

Patch

diff --git a/recipes/crosstool-ng/gcc-configure.inc b/recipes/crosstool-ng/gcc-configure.inc
index 77e1cbb..edd7a47 100644
--- a/recipes/crosstool-ng/gcc-configure.inc
+++ b/recipes/crosstool-ng/gcc-configure.inc
@@ -53,6 +53,9 @@  CT_GDB_GDBSERVER:cross		= "y"
 
 AUTO_CT_BOOLEAN_VARS += "CT_GDB_CROSS"
 CT_GDB_CROSS:canadian-cross	= "y"
+RECIPE_FLAGS:>cross                  += " toolchain_cross_gdb"
+CT_GDB_CROSS:USE_toolchain_cross_gdb  = "y"
+DEPENDS:>USE_toolchain_cross_gdb      = " host:libexpat"
 
 AUTO_CT_BOOLEAN_VARS += "CT_GDB_NATIVE"
 CT_GDB_NATIVE:machine		= "y"