diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2012-09-20 15:52:30 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-21 11:10:24 +0100 |
commit | 494fe41903e69601103c7eb7f8804207e3f4f7f1 (patch) | |
tree | 5fb12c097705948ec5c0d1896ab90b34074b28a6 /meta/classes | |
parent | 04877f768ebc7ed76fe320befe0b405c78d94b0f (diff) | |
download | poky-494fe41903e69601103c7eb7f8804207e3f4f7f1.tar.gz |
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]
(From OE-Core rev: 3c7aac33cb63dc63b989db4e9d7389a7f4d3c18d)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | 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 42c0d39749..6eb6726033 100644 --- a/meta/classes/populate_sdk_base.bbclass +++ b/meta/classes/populate_sdk_base.bbclass | |||
@@ -150,10 +150,10 @@ if [ $? -ne 0 ]; then | |||
150 | exit 1 | 150 | exit 1 |
151 | fi | 151 | fi |
152 | 152 | ||
153 | payload_offset=$(($(grep -na -m1 "^MARKER:$" $(basename $0)|cut -d':' -f1) + 1)) | 153 | payload_offset=$(($(grep -na -m1 "^MARKER:$" $0|cut -d':' -f1) + 1)) |
154 | 154 | ||
155 | printf "Extracting SDK..." | 155 | printf "Extracting SDK..." |
156 | tail -n +$payload_offset $(basename $0) | tar xj --strip-components=4 -C $target_sdk_dir | 156 | tail -n +$payload_offset $0| tar xj --strip-components=4 -C $target_sdk_dir |
157 | echo "done" | 157 | echo "done" |
158 | 158 | ||
159 | printf "Setting it up..." | 159 | printf "Setting it up..." |