diff options
author | Scott Garman <scott.a.garman@intel.com> | 2011-01-21 14:15:05 -0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-01-24 14:09:11 -0800 |
commit | 57392afdbb0daf79a42c9a7a6814145715582289 (patch) | |
tree | 1c8f66b99d77703027ad7cd289b859245c4eda77 /scripts/poky-extract-sdk | |
parent | 74783fec56d6ced1a793b36410233472e7daf445 (diff) | |
download | poky-57392afdbb0daf79a42c9a7a6814145715582289.tar.gz |
poky-extract-sdk: allow relative paths for extract-dir
psuedo needs a full path to its pid file, so convert
relative extract-dir paths to full ones.
The symptom of this bug is receiving the following error:
pseudo: Couldn't open relative/path/to/var/pseudo/pseudo.pid: No such file or directory
This fixes [BUGID #670]
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'scripts/poky-extract-sdk')
-rwxr-xr-x | scripts/poky-extract-sdk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/poky-extract-sdk b/scripts/poky-extract-sdk index 977adde1a6..a36d79d31c 100755 --- a/scripts/poky-extract-sdk +++ b/scripts/poky-extract-sdk | |||
@@ -47,6 +47,11 @@ if [ ! -e "$ROOTFS_TARBALL" ]; then | |||
47 | exit 1 | 47 | exit 1 |
48 | fi | 48 | fi |
49 | 49 | ||
50 | # Convert SDK_ROOTFS_DIR to a full pathname | ||
51 | if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then | ||
52 | SDK_ROOTFS_DIR=$(pwd)/$SDK_ROOTFS_DIR | ||
53 | fi | ||
54 | |||
50 | TAR_OPTS="" | 55 | TAR_OPTS="" |
51 | if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then | 56 | if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then |
52 | TAR_OPTS="-xjf" | 57 | TAR_OPTS="-xjf" |