From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by arago-project.org (Postfix) with ESMTPS id 99BAA52AB4 for ; Thu, 15 Nov 2012 01:02:29 +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 qAF12Sij026199; Wed, 14 Nov 2012 19:02:28 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id qAF12SMI025574; Wed, 14 Nov 2012 19:02:28 -0600 Received: from dlelxv22.itg.ti.com (172.17.1.197) by dfle72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.1.323.3; Wed, 14 Nov 2012 19:02:28 -0600 Received: from localhost ([158.218.102.158]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id qAF12S5k022004; Wed, 14 Nov 2012 19:02:28 -0600 Date: Wed, 14 Nov 2012 20:02:27 -0500 From: Denys Dmytriyenko To: "Cooper Jr., Franklin" Message-ID: <20121115010227.GB29941@edge> References: <1352865012-11447-1-git-send-email-denys@ti.com> <20121114035851.GE13096@edge> <05B212D4-8433-4995-88CF-34CF07576A0D@ti.com> <20121114190950.GA31599@denix.org> <7D46E86EC0A8354091174257B2FED101592AA782@DLEE12.ent.ti.com> <20121114223657.GB31599@denix.org> <7D46E86EC0A8354091174257B2FED101592AA945@DLEE12.ent.ti.com> <8F29D6B095ED194EA1980491A5E029710C320A1A@DFLE09.ent.ti.com> MIME-Version: 1.0 In-Reply-To: <8F29D6B095ED194EA1980491A5E029710C320A1A@DFLE09.ent.ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "meta-arago@arago-project.org" 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: Thu, 15 Nov 2012 01:02:30 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Need to stop bitbake complaining about gdb provided multiple times - some conditional logic in external-toolchain recipe... On Thu, Nov 15, 2012 at 12:49:43AM +0000, Cooper Jr., Franklin wrote: > Denys, > > Do you want to commit your patch or are their tweaks you want to make first? > > -----Original Message----- > From: Cooper Jr., Franklin > Sent: Wednesday, November 14, 2012 5:29 PM > To: Maupin, Chase; Denys Dmytriyenko > Cc: meta-arago@arago-project.org > Subject: RE: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk > > I tried debugging the Thermostat demo and a simple helloworld..... > > Everything works fine :) > > Thanks Denys > > -----Original Message----- > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > Sent: Wednesday, November 14, 2012 5:11 PM > To: Denys Dmytriyenko > Cc: meta-arago@arago-project.org > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case for gdb to be built as part of canadian-cross-sdk > > > -----Original Message----- > > From: Denys Dmytriyenko [mailto:denis@denix.org] > > Sent: Wednesday, November 14, 2012 4:37 PM > > To: Maupin, Chase > > Cc: Dmytriyenko, Denys; meta-arago@arago-project.org > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: special case > > for gdb to be built as part of canadian-cross-sdk > > > > On Wed, Nov 14, 2012 at 10:26:56PM +0000, Maupin, Chase wrote: > > > I was able to execute the arm-arago-linux-gnueabi-gdb and run > > > > > > python print 23 > > > > Yeah, that part I was able to verify myself... :) I was rather > > interested in Qt Creator results. > > > > > > > I did have to source environment-setup for the wrapper script > > to work. As a though, could we do something like the following in > > these wrapper scripts? > > > > > > if [ -n "$BASH_SOURCE" ] > > > then > > > . `dirname $BASH_SOURCE`/../environment-setup > > > fi > > > > > > I know this may not work for all shells, but like environment- > > setup itself, in the case that it does work then user's don't get > > bitten not having it sourced. Also doesn't hurt them if the > > environment-setup is already sourced. Thoughts? > > > > Nope, some things in the environment-setup are not reentrant... > > Like appending > > or prepending to PATH and other vars - they will be growing every time > > you source the script, duplicating entries. > > As per our discussion on IRC, if placed in the stub script this effect is temporary during script execution and is gone when the stub script finishes running. > > > > > -- > > Denys > > > > > > -----Original Message----- > > > > From: Dmytriyenko, Denys > > > > Sent: Wednesday, November 14, 2012 1:10 PM > > > > To: Maupin, Chase > > > > Cc: Dmytriyenko, Denys; meta-arago@arago-project.org > > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: > > special > > > > case for gdb to be built as part of canadian-cross-sdk > > > > > > > > Any updates yet? > > > > > > > > > > > > On Wed, Nov 14, 2012 at 04:08:32AM +0000, Maupin, Chase > > wrote: > > > > > Thank you denys. We will check for compatibility. Thanks > > for > > > > the quick response 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" > > > 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 = > > > > "external-arago-toolchain" > > > > > > PREFERRED_PROVIDER_gcc-cross-canadian- > > > > ${TRANSLATED_TARGET_ARCH} ?= "external-arago-sdk-toolchain" > > > > > > PREFERRED_PROVIDER_binutils-cross-canadian- > > > > ${TRANSLATED_TARGET_ARCH} ?= "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} = > > > > "${exec_prefix}/bin" > > > > > > +PREFERRED_PROVIDER_gdb-cross-canadian- > > > > ${TRANSLATED_TARGET_ARCH} = "gdb-cross-canadian- > > > > ${TRANSLATED_TARGET_ARCH}" > > > > > > + > > > > > > GCCVERSION ?= "4.5%" > > > > > > SDKGCCVERSION ?= "4.5%" > > > > > > BINUVERSION ?= "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 ?= "${SDK_NAME}- > > > > ${ARMPKGARCH}-${TARGET_OS}-sdk-${SDK_ARCH}" > > > > > > > > > > > > require recipes-core/meta/meta-toolchain.bb > > > > > > > > > > > > -PR = "r7" > > > > > > +PR = "r8" > > > > > > > > > > > > SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}" > > > > > > > > > > > > @@ -54,6 +54,8 @@ toolchain_create_sdk_env_script () { > > > > > > echo 'export OECORE_ACLOCAL_OPTS="-I > > > > $SDK_PATH/usr/share/aclocal"' >> $script > > > > > > echo 'export > > > > OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script > > > > > > echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' > > >> > > > > $script > > > > > > + echo 'export PYTHONHOME=$SDK_PATH' >> $script > > > > > > + echo 'export PYTHONPATH=lib/python2.7' >> $script > > > > > > } > > > > > > > > > > > > populate_sdk_ipk_append () { > > > > > > @@ -64,4 +66,9 @@ populate_sdk_ipk_append () { > > > > > > printf > > > > > > "#!/bin/sh\nLD_LIBRARY_PATH=\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 as part of > > > > canadian-cross-sdk > > > > > > + mv ${ARAGO_TARGET_SYS}-gdb ${ARAGO_TARGET_SYS}- > > gdb.real > > > > > > + printf > > > > > > "#!/bin/sh\nLD_LIBRARY_PATH=\x24SDK_PATH/lib:\x24LD_LIBRARY_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 > > > > > > > > > _______________________________________________ > > > > > meta-arago mailing list > > > > > meta-arago@arago-project.org > > > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta- > > arago > > > > > > _______________________________________________ > > > meta-arago mailing list > > > meta-arago@arago-project.org > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > > > > _______________________________________________ > meta-arago mailing list > meta-arago@arago-project.org > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago > _______________________________________________ > meta-arago mailing list > meta-arago@arago-project.org > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago