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>
This commit is contained in:
Scott Garman authored and Joshua Lock committed 2011-01-25 09:31:49 +00:00
1 parent 01bc47f4d4
commit fd7a07b3a2
1 file changed
+5
+5
View File
@@ -47,6 +47,11 @@ if [ ! -e "$ROOTFS_TARBALL" ]; then
exit 1
fi
# Convert SDK_ROOTFS_DIR to a full pathname
if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then
SDK_ROOTFS_DIR=$(pwd)/$SDK_ROOTFS_DIR
fi
TAR_OPTS=""
if [[ "$ROOTFS_TARBALL" =~ tar\.bz2$ ]]; then
TAR_OPTS="-xjf"