diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-07-03 11:02:21 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-03 17:41:16 +0100 |
commit | 3bc357f703a9880dba51cbc7de622f52b712cba7 (patch) | |
tree | 00b3dc0dbc9d39bbf0f357ca92f6964c81ffa355 /scripts/runqemu-extract-sdk | |
parent | fbe129100bbc4ac542fcc304f07a73196bf83628 (diff) | |
download | poky-3bc357f703a9880dba51cbc7de622f52b712cba7.tar.gz |
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
(From OE-Core rev: c85f5ec502fecb1ff63f8e795a0da5fc92eca0c1)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-extract-sdk')
-rwxr-xr-x | scripts/runqemu-extract-sdk | 3 |
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 | |||
49 | 49 | ||
50 | # Convert SDK_ROOTFS_DIR to a full pathname | 50 | # Convert SDK_ROOTFS_DIR to a full pathname |
51 | if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then | 51 | if [[ ${SDK_ROOTFS_DIR:0:1} != "/" ]]; then |
52 | SDK_ROOTFS_DIR=$(pwd)/$SDK_ROOTFS_DIR | 52 | SDK_ROOTFS_DIR=$(readlink -f $(pwd)/$SDK_ROOTFS_DIR) |
53 | fi | 53 | fi |
54 | 54 | ||
55 | TAR_OPTS="" | 55 | TAR_OPTS="" |
@@ -74,6 +74,7 @@ if [ ! -d "$SDK_ROOTFS_DIR" ]; then | |||
74 | fi | 74 | fi |
75 | 75 | ||
76 | pseudo_state_dir="$SDK_ROOTFS_DIR/../$(basename "$SDK_ROOTFS_DIR").pseudo_state" | 76 | pseudo_state_dir="$SDK_ROOTFS_DIR/../$(basename "$SDK_ROOTFS_DIR").pseudo_state" |
77 | pseudo_state_dir="$(readlink -f $pseudo_state_dir)" | ||
77 | 78 | ||
78 | if [ -e "$pseudo_state_dir" ]; then | 79 | if [ -e "$pseudo_state_dir" ]; then |
79 | echo "Error: $pseudo_state_dir already exists!" | 80 | echo "Error: $pseudo_state_dir already exists!" |