All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: "Maupin, Chase" <chase.maupin@ti.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>,
	"Cooper Jr., Franklin" <fcooper@ti.com>
Subject: Re: [PATCH] meta-toolchain-arago: make SDK/devkit relocatable
Date: Wed, 7 Nov 2012 15:46:26 -0500	[thread overview]
Message-ID: <20121107204623.GF11967@edge> (raw)
In-Reply-To: <7D46E86EC0A8354091174257B2FED1015929C175@DLEE12.ent.ti.com>

Did it work for you? What did you do? It didn't seem to work for me with the 
functions...


On Wed, Nov 07, 2012 at 03:45:20PM -0500, Maupin, Chase wrote:
> I'll wait for that then.  I got it half working with the function export, but it isn't all the way there.
> 
> 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: Dmytriyenko, Denys
> > Sent: Wednesday, November 07, 2012 2:44 PM
> > To: Maupin, Chase
> > Cc: Cooper Jr., Franklin; meta-arago@arago-project.org
> > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make SDK/devkit
> > relocatable
> > 
> > Good luck with that - been there, done that, didn't work for me :)
> > I have something that works, will be sending a v2 patch shortly.
> > 
> > Denys
> > 
> > 
> > On Wed, Nov 07, 2012 at 03:17:58PM -0500, Maupin, Chase wrote:
> > > Yeah, I've been playing with this myself with no luck.
> > >
> > > I did see some people say that if you had functions exported and did
> > export -f <function> it might work.  I'm going to try this.
> > >
> > > 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 Dmytriyenko, Denys
> > > > Sent: Wednesday, November 07, 2012 2:09 PM
> > > > To: Cooper Jr., Franklin
> > > > Cc: meta-arago@arago-project.org
> > > > Subject: Re: [meta-arago] [PATCH] meta-toolchain-arago: make
> > > > SDK/devkit relocatable
> > > >
> > > > Nope, aliases are not accessible from Makefiles, need to switch
> > > > gears...
> > > >
> > > >
> > > > On Wed, Nov 07, 2012 at 01:58:47PM -0500, Denys Dmytriyenko
> > > > wrote:
> > > > > 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 <denys@ti.com>
> > > > > > > > ---
> > > > > > > >  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
> > > > > _______________________________________________
> > > > > 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


  reply	other threads:[~2012-11-07 20:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-07  6:25 [PATCH] meta-toolchain-arago: make SDK/devkit relocatable Denys Dmytriyenko
2012-11-07  6:31 ` Denys Dmytriyenko
2012-11-07 15:15   ` Maupin, Chase
2012-11-07 18:53     ` Cooper Jr., Franklin
2012-11-07 18:58       ` Denys Dmytriyenko
2012-11-07 20:09         ` Denys Dmytriyenko
2012-11-07 20:17           ` Maupin, Chase
2012-11-07 20:44             ` Denys Dmytriyenko
2012-11-07 20:45               ` Maupin, Chase
2012-11-07 20:46                 ` Denys Dmytriyenko [this message]
2012-11-07 20:57                   ` Maupin, Chase
2012-11-07 21:01                     ` Maupin, Chase

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20121107204623.GF11967@edge \
    --to=denys@ti.com \
    --cc=chase.maupin@ti.com \
    --cc=fcooper@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.