Return-Path: Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by arago-project.org (Postfix) with ESMTPS id 0769752A6F for ; Wed, 14 Nov 2012 04:08:33 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id qAE48XuW027647 for ; Tue, 13 Nov 2012 22:08:33 -0600 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id qAE48Xif025951 for ; Tue, 13 Nov 2012 22:08:33 -0600 Received: from DLEE12.ent.ti.com ([fe80::3867:617:aab3:5956]) by DFLE73.ent.ti.com ([fe80::86e:fab6:cd95:e158%28]) with mapi id 14.01.0323.003; Tue, 13 Nov 2012 22:08:33 -0600 From: "Maupin, Chase" To: "Dmytriyenko, Denys" , "meta-arago@arago-project.org" Thread-Topic: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk Thread-Index: AQHNwhs2QuM086pw50GQbqDW0wXzn5fpGRWA//+eIBQ= Date: Wed, 14 Nov 2012 04:08:32 +0000 Message-ID: <05B212D4-8433-4995-88CF-34CF07576A0D@ti.com> References: <1352865012-11447-1-git-send-email-denys@ti.com>, <20121114035851.GE13096@edge> In-Reply-To: <20121114035851.GE13096@edge> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: MIME-Version: 1.0 Subject: Re: [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 04:08:34 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_05B212D48433499588CF34CF07576A0Dticom_" --_000_05B212D48433499588CF34CF07576A0Dticom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thank you denys. We will check for compatibility. Thanks for the quick re= sponse on this. Sent from my cell phone ----- Reply message ----- From: "Dmytriyenko, Denys" Date: Tue, Nov 13, 2012 9:59 pm Subject: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to= be built as part of canadian-cross-sdk To: "meta-arago@arago-project.org" This provides the bare minimum to get the Python-enabled gdb-7.4 into the devkit and set it up properly. We would need to test it with gdbserver-7.2 = and run it through OSRB... -- Denys On Tue, Nov 13, 2012 at 10:50:12PM -0500, Denys Dmytriyenko wrote: > Signed-off-by: Denys Dmytriyenko > --- > meta-arago-extras/conf/distro/include/tcmode-external-arago.inc | 4 ++++ > meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | 9 ++++= ++++- > 2 files changed, 12 insertions(+), 1 deletion(-) > > diff --git a/meta-arago-extras/conf/distro/include/tcmode-external-arago.= inc b/meta-arago-extras/conf/distro/include/tcmode-external-arago.inc > index 2ed3df2..3bc0fed 100644 > --- a/meta-arago-extras/conf/distro/include/tcmode-external-arago.inc > +++ b/meta-arago-extras/conf/distro/include/tcmode-external-arago.inc > @@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db =3D "external-arago= -toolchain" > PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?=3D "ex= ternal-arago-sdk-toolchain" > PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= =3D "external-arago-sdk-toolchain" > > +# Special case for gdb to be built as part of canadian-cross-sdk > +bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =3D "${exec_prefi= x}/bin" > +PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =3D "gdb= -cross-canadian-${TRANSLATED_TARGET_ARCH}" > + > GCCVERSION ?=3D "4.5%" > SDKGCCVERSION ?=3D "4.5%" > BINUVERSION ?=3D "2.20%" > diff --git a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb = b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb > index 1683c1f..f780385 100644 > --- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb > +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb > @@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?=3D "${SDK_NAME}-${ARMPKGARCH}-${TA= RGET_OS}-sdk-${SDK_ARCH}" > > require recipes-core/meta/meta-toolchain.bb > > -PR =3D "r7" > +PR =3D "r8" > > SDKTARGETSYSROOT =3D "${SDKPATH}/${ARAGO_TARGET_SYS}" > > @@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () { > echo 'export OECORE_ACLOCAL_OPTS=3D"-I $SDK_PATH/usr/share/aclocal= "' >> $script > echo 'export OECORE_DISTRO_VERSION=3D"${DISTRO_VERSION}"' >> $scri= pt > echo 'export OECORE_SDK_VERSION=3D"${SDK_VERSION}"' >> $script > + echo 'export PYTHONHOME=3D$SDK_PATH' >> $script > + echo 'export PYTHONPATH=3Dlib/python2.7' >> $script > } > > populate_sdk_ipk_append () { > @@ -64,4 +66,9 @@ populate_sdk_ipk_append () { > printf "#!/bin/sh\nLD_LIBRARY_PATH=3D\x24SDK_PATH/lib:\x24= LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x2= 4\x2a\n" > $i > chmod +x $i > done > + > + # Special case for gdb, which is built as part of canadian-cross-sd= k > + mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}-gdb.real > + printf "#!/bin/sh\nLD_LIBRARY_PATH=3D\x24SDK_PATH/lib:\x24LD_LIBRAR= Y_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/${ARAGO_TARGET_SYS}-= gdb.real \x24\x2a\n" > ${ARAGO_TARGET_SYS}-gdb > + chmod +x ${ARAGO_TARGET_SYS}-gdb > } > -- > 1.8.0 > _______________________________________________ meta-arago mailing list meta-arago@arago-project.org http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago --_000_05B212D48433499588CF34CF07576A0Dticom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Thank you denys.  We will check for compatibility.  Thanks f= or the quick response on this.

Sent from my cell phone

----- Reply message -----
From: "Dmytriyenko, Denys" <denys@ti.com>
Date: Tue, Nov 13, 2012 9:59 pm
Subject: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to= be built as part of canadian-cross-sdk
To: "meta-arago@arago-project.org" <meta-arago@arago-project.o= rg>

This provides the bare minimum to get the Python-e= nabled gdb-7.4 into the
devkit and set it up properly. We would need to test it with gdbserver-7.2 = and
run it through OSRB...

--
Denys


On Tue, Nov 13, 2012 at 10:50:12PM -0500, Denys Dmytriyenko wrote:
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> ---
>  meta-arago-extras/conf/distro/include/tcmode-external-arago.inc = | 4 ++++
>  meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb = ;    | 9 ++++++++-
>  2 files changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/meta-arago-extras/conf/distro/include/tcmode-external-ara= go.inc b/meta-arago-extras/conf/distro/include/tcmode-external-arago.inc > index 2ed3df2..3bc0fed 100644
> --- a/meta-arago-extras/conf/distro/include/tcmode-external-arago.inc<= br> > +++ b/meta-arago-extras/conf/distro/include/tcmode-externa= l-arago.inc
> @@ -30,6 +30,10 @@ PREFERRED_PROVIDER_glibc-thread-db =3D "ex= ternal-arago-toolchain"
>  PREFERRED_PROVIDER_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} = ?=3D "external-arago-sdk-toolchain"
>  PREFERRED_PROVIDER_binutils-cross-canadian-${TRANSLATED_TARGET_A= RCH} ?=3D "external-arago-sdk-toolchain"
> 
> +# Special case for gdb to be built as part of canadian-cross-sdk<= br> > +bindir_pn-gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} =3D "= ${exec_prefix}/bin"
> +PREFERRED_PROVIDER_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} = =3D "gdb-cross-canadian-${TRANSLATED_TARGET_ARCH}"
> +
>  GCCVERSION ?=3D "4.5%"
>  SDKGCCVERSION ?=3D "4.5%"
>  BINUVERSION ?=3D "2.20%"
> diff --git a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.= bb b/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
> index 1683c1f..f780385 100644
> --- a/meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb
> +++ b/meta-arago-extras/recipes-core/meta/meta-toolchain-a= rago.bb
> @@ -4,7 +4,7 @@ TOOLCHAIN_OUTPUTNAME ?=3D "${SDK_NAME}-${ARMP= KGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}"
> 
>  require recipes-core/meta/meta-toolchain.bb
> 
> -PR =3D "r7"
> +PR =3D "r8"
> 
>  SDKTARGETSYSROOT =3D "${SDKPATH}/${ARAGO_TARGET_SYS}"<= br> > 
> @@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () {
>        echo 'export OECORE_ACLOCAL_= OPTS=3D"-I $SDK_PATH/usr/share/aclocal"' >> $script
>        echo 'export OECORE_DISTRO_V= ERSION=3D"${DISTRO_VERSION}"' >> $script
>        echo 'export OECORE_SDK_VERS= ION=3D"${SDK_VERSION}"' >> $script
> +     echo 'export PYTHONHOME=3D$SDK_PATH' >= ;> $script
> +     echo 'export PYTHONPATH=3Dlib/python2.7'= >> $script
>  }
> 
>  populate_sdk_ipk_append () {
> @@ -64,4 +66,9 @@ populate_sdk_ipk_append () {
>            = ;    printf "#!/bin/sh\nLD_LIBRARY_PATH=3D\x24SDK_PATH/= lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.= real \x24\x2a\n" > $i
>            = ;    chmod +x $i
>        done
> +
> +     # Special case for gdb, which is built a= s part of canadian-cross-sdk
> +     mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGE= T_SYS}-gdb.real
> +     printf "#!/bin/sh\nLD_LIBRARY_PATH= =3D\x24SDK_PATH/lib:\x24LD_LIBRARY_PATH \x24SDK_PATH/lib/ld-linux.so.2 \x24= SDK_PATH/bin/${ARAGO_TARGET_SYS}-gdb.real \x24\x2a\n" > ${ARAGO_TAR= GET_SYS}-gdb
> +     chmod +x ${ARAGO_TARGET_SYS}-gdb
>  }
> --
> 1.8.0
>
_______________________________________________
meta-arago mailing list
meta-arago@arago-project.org
ht= tp://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
--_000_05B212D48433499588CF34CF07576A0Dticom_--