[oe-commits] Chen Qi : runqemu-extract-sdk: normalize paths to improve output
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 3 16:47:08 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: c85f5ec502fecb1ff63f8e795a0da5fc92eca0c1
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c85f5ec502fecb1ff63f8e795a0da5fc92eca0c1
Author: Chen Qi <Qi.Chen at windriver.com>
Date: Thu Jul 3 11:02:21 2014 +0800
runqemu-extract-sdk: normalize paths to improve output
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 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/runqemu-extract-sdk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/runqemu-extract-sdk b/scripts/runqemu-extract-sdk
index 4ce906a..32ddd48 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!"
More information about the Openembedded-commits
mailing list