aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-07-02 22:14:23 -0400
committerChen Qi <Qi.Chen@windriver.com>2014-07-03 10:23:02 +0800
commitcc5e2177af01c043b74197e39b61bb569686a5de (patch)
tree0e47f2814ef57289be6908caf7d610a91e50fe8a
parentc36d459f0d40bdbd3ba809835e0475e8992bc778 (diff)
downloadopenembedded-core-contrib-ChenQi/runqemu-extract-sdk-paths.tar.gz
runqemu-extract-sdk: normalize paths to improve outputChenQi/runqemu-extract-sdk-paths
Previously, we would have output like below from runqemu-extract-sdk. Creating directory /home/chenqi/poky/build-systemd/./nfs-root Normalize paths for runqemu-extract-sdk so that we have output like below. Creating directory /home/chenqi/poky/build-systemd/nfs-root Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
-rwxr-xr-xscripts/runqemu-extract-sdk3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/runqemu-extract-sdk b/scripts/runqemu-extract-sdk
index 4ce906aef0..32ddd485b6 100755
--- a/scripts/runqemu-extract-sdk
+++ b/scripts/runqemu-extract-sdk
@@ -49,7 +49,7 @@ fi
# Convert SDK_ROOTFS_DIR to a full pathname
if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then
- SDK_ROOTFS_DIR=$(pwd)/$SDK_ROOTFS_DIR
+ SDK_ROOTFS_DIR=$(readlink -f $(pwd)/$SDK_ROOTFS_DIR)
fi
TAR_OPTS=""
@@ -74,6 +74,7 @@ if [ ! -d "$SDK_ROOTFS_DIR" ]; then
fi
pseudo_state_dir="$SDK_ROOTFS_DIR/../$(basename "$SDK_ROOTFS_DIR").pseudo_state"
+pseudo_state_dir="$(readlink -f $pseudo_state_dir)"
if [ -e "$pseudo_state_dir" ]; then
echo "Error: $pseudo_state_dir already exists!"