All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: <meta-arago@arago-project.org>
Subject: Re: [PATCHv2] meta-toolchain-arago: make SDK/devkit relocatable
Date: Wed, 7 Nov 2012 16:05:42 -0500	[thread overview]
Message-ID: <20121107210542.GG11967@edge> (raw)
In-Reply-To: <1352322180-17306-1-git-send-email-denys@ti.com>

On Wed, Nov 07, 2012 at 04:03:00PM -0500, Denys Dmytriyenko wrote:
> Implement poor man's relocation technique for self-contained crosssdk binaries
> 
> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
> ---
> In v2 use stub shell scripts instead of aliases, to work in Makefiles

Ok, this seems to work fine in shell and in Makefiles too. And it also works 
when environment-setup is sources before calling make, but not inside the 
Makefile.


>  meta-arago-extras/recipes-core/meta/meta-toolchain-arago.bb | 13 ++++++++++++-
>  1 file changed, 12 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..81bdeed 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
> @@ -55,3 +56,13 @@ toolchain_create_sdk_env_script () {
>  	echo 'export OECORE_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
>  	echo 'export OECORE_SDK_VERSION="${SDK_VERSION}"' >> $script
>  }
> +
> +populate_sdk_ipk_append () {
> +	cd ${SDK_OUTPUT}/${SDKPATH}/bin
> +	binfiles=`find ! -name "${ARAGO_TARGET_SYS}-*" -type f -perm +111 -exec file {} \;|grep -v ":.*ASCII.*text"|cut -d":" -f1|cut -c3-`
> +	for i in $binfiles; do
> +		mv $i $i.real
> +		printf "#!/bin/sh\n\x24SDK_PATH/lib/ld-linux.so.2 \x24SDK_PATH/bin/$i.real \x24\x2a\n" > $i
> +		chmod +x $i
> +	done
> +}
> -- 
> 1.8.0
> 


  reply	other threads:[~2012-11-07 21:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-07 21:03 [PATCHv2] meta-toolchain-arago: make SDK/devkit relocatable Denys Dmytriyenko
2012-11-07 21:05 ` Denys Dmytriyenko [this message]
2012-11-07 23:11   ` Cooper Jr., Franklin
2012-11-08  1:19     ` Denys Dmytriyenko

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=20121107210542.GG11967@edge \
    --to=denys@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.