summaryrefslogtreecommitdiff
path: root/scripts/poky-extract-sdk
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/poky-extract-sdk')
-rwxr-xr-xscripts/poky-extract-sdk5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/poky-extract-sdk b/scripts/poky-extract-sdk
index 977adde1a..a36d79d31 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"