[oe-commits] Laurentiu Palcu : SDK: allow toolchain installation from another directory

git at git.openembedded.org git at git.openembedded.org
Fri Sep 21 10:18:14 UTC 2012


Module: openembedded-core.git
Branch: master
Commit: 3c7aac33cb63dc63b989db4e9d7389a7f4d3c18d
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3c7aac33cb63dc63b989db4e9d7389a7f4d3c18d

Author: Laurentiu Palcu <laurentiu.palcu at intel.com>
Date:   Thu Sep 20 15:52:30 2012 +0300

SDK: allow toolchain installation from another directory

This patch will allow one to run the installer from another directory
than the one where it's actually located.

Suppose the installer is in /home/user/test/my/sdk and the current
directory is in a different place. With this patch, one can run the
installer like this:

$ sh ~/test/my/sdk/poky-eglibc-x86_64-arm-toolchain-gmae-1.2+snapshot-20120920.sh

[YOCTO #3135]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu at intel.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>

---

 meta/classes/populate_sdk_base.bbclass |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 42c0d39..6eb6726 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -150,10 +150,10 @@ if [ $? -ne 0 ]; then
 	exit 1
 fi
 
-payload_offset=$(($(grep -na -m1 "^MARKER:$" $(basename $0)|cut -d':' -f1) + 1))
+payload_offset=$(($(grep -na -m1 "^MARKER:$" $0|cut -d':' -f1) + 1))
 
 printf "Extracting SDK..."
-tail -n +$payload_offset $(basename $0) | tar xj --strip-components=4 -C $target_sdk_dir
+tail -n +$payload_offset $0| tar xj --strip-components=4 -C $target_sdk_dir
 echo "done"
 
 printf "Setting it up..."





More information about the Openembedded-commits mailing list