[poky] [PATCH 1/1] poky-extract-sdk: allow relative paths for extract-dir

Scott Garman scott.a.garman at intel.com
Fri Jan 21 16:27:45 PST 2011


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 at intel.com>
---
 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 977adde..a36d79d 100755
--- a/scripts/poky-extract-sdk
+++ b/scripts/poky-extract-sdk
@@ -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"
-- 
1.7.1




More information about the poky mailing list