All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] meta-toolchain-arago: make SDK/devkit relocatable
@ 2012-11-07  6:25 Denys Dmytriyenko
  2012-11-07  6:31 ` Denys Dmytriyenko
  0 siblings, 1 reply; 12+ messages in thread
From: Denys Dmytriyenko @ 2012-11-07  6:25 UTC (permalink / raw)
  To: meta-arago

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
 }
-- 
1.8.0



^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-11-07 21:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-11-07 20:57                   ` Maupin, Chase
2012-11-07 21:01                     ` Maupin, Chase

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.