]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-extract-sdk: allow relative paths for extract-dir
authorScott Garman <scott.a.garman@intel.com>
Fri, 21 Jan 2011 22:15:05 +0000 (14:15 -0800)
committerSaul Wold <sgw@linux.intel.com>
Mon, 24 Jan 2011 22:09:11 +0000 (14:09 -0800)
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>
scripts/poky-extract-sdk

index 977adde1a6e7b7d5bb6a4fd5a09cbac97ee86027..a36d79d31c887a5db8daa603d5f18f6d589ecf60 100755 (executable)
@@ -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"