From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from comal.ext.ti.com (comal.ext.ti.com [198.47.26.152]) by arago-project.org (Postfix) with ESMTPS id 2AC5252A0E for ; Wed, 7 Nov 2012 18:58:49 +0000 (UTC) Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id qA7Iwm0Z028821; Wed, 7 Nov 2012 12:58:48 -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 qA7IwmEP015831; Wed, 7 Nov 2012 12:58:48 -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, 7 Nov 2012 12:58:48 -0600 Received: from localhost ([158.218.102.158]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id qA7IwlvY032595; Wed, 7 Nov 2012 12:58:47 -0600 Date: Wed, 7 Nov 2012 13:58:47 -0500 From: Denys Dmytriyenko To: "Cooper Jr., Franklin" Message-ID: <20121107185847.GA11967@edge> References: <1352269511-5899-1-git-send-email-denys@ti.com> <20121107063118.GB29763@denix.org> <7D46E86EC0A8354091174257B2FED1015929B566@DLEE12.ent.ti.com> <8F29D6B095ED194EA1980491A5E029710C31A9FC@DFLE09.ent.ti.com> MIME-Version: 1.0 In-Reply-To: <8F29D6B095ED194EA1980491A5E029710C31A9FC@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: make SDK/devkit relocatable 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, 07 Nov 2012 18:58:49 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline The only worry I have is whether aliases are going to work in a Makefile On Wed, Nov 07, 2012 at 01:53:57PM -0500, Cooper Jr., Franklin wrote: > Looks great > > -----Original Message----- > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-bounces@arago-project.org] On Behalf Of Maupin, Chase > Sent: Wednesday, November 07, 2012 9:16 AM > To: Denys Dmytriyenko; Dmytriyenko, Denys > Cc: meta-arago@arago-project.org > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit relocatable > > Your script-fu is strong :) > > Sincerely, > Chase Maupin > Software Applications > ARM MPU > e-mail: chase.maupin@ti.com > phone: (214) 567-2950 > > For support: > Forums - http://community.ti.com/forums/ Wiki - http://wiki.davincidsp.com/ > > > > -----Original Message----- > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago- > > bounces@arago-project.org] On Behalf Of Denys Dmytriyenko > > Sent: Wednesday, November 07, 2012 12:31 AM > > To: Dmytriyenko, Denys > > Cc: meta-arago@arago-project.org > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make > > SDK/devkit relocatable > > > > On Wed, Nov 07, 2012 at 01:25:11AM -0500, Denys Dmytriyenko > > wrote: > > > Implement poor man's relocation technique for self-contained > > crosssdk binaries > > > > > > Signed-off-by: Denys Dmytriyenko > > > --- > > > meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | > > 4 +++- > > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > > > 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 d2fe982..27782f7 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 = "r5" > > > +PR = "r6" > > > > > > SDKTARGETSYSROOT = "${SDKPATH}/${ARAGO_TARGET_SYS}" > > > > > > @@ -28,6 +28,7 @@ toolchain_create_sdk_env_script () { > > > echo 'export TARGET_SYS=${ARAGO_TARGET_SYS}' >> $script > > > echo 'export TARGET_PREFIX=$TARGET_SYS-' >> $script > > > echo 'export PATH=$SDK_PATH/bin:$PATH' >> $script > > > + echo 'export > > LD_LIBRARY_PATH=$SDK_PATH/lib:$LD_LIBRARY_PATH' >> $script > > > echo 'export > > CPATH=$SDK_PATH/$TARGET_SYS/usr/include:$CPATH' >> $script > > > echo 'export PKG_CONFIG_SYSROOT_DIR=$SDK_PATH/$TARGET_SYS' > > >> $script > > > echo 'export > > PKG_CONFIG_PATH=$SDK_PATH/$TARGET_SYS${libdir}/pkgconfig' >> $script > > > @@ -54,4 +55,5 @@ 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 'for i in `cd $SDK_PATH/bin; find -L ! -name > > "$TARGET_SYS-*" -type f -perm +111 -exec file {} \;|grep -v > > ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`; do alias > > $i="$SDK_PATH/lib/ld-linux.so.2 $SDK_PATH/bin/$i"; done' >> $script > > > > ^^^^^^^^^^^^^^^^^^^^ > > Yep, that's pretty much it - several days of debugging, reseach and > > testing and the result is a one-liner script-fu... > > > > -- > > Denys > > _______________________________________________ > > 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