aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-09-22 03:37:19 +0000
committerRobert Yang <liezhi.yang@windriver.com>2015-09-21 22:38:56 -0700
commitc1171ed2ab54a6e39fcaf5ad7806ca6cf74a4e56 (patch)
treedeedc2f5dd2e1207f1af16c3f9ac6442b3a9019a
parent72682d72b52355c3fed947167ca3c6064340ead1 (diff)
downloadopenembedded-core-contrib-rbt/extract.tar.gz
runqemu-extract-sdk: allow install debugfs on rootfsrbt/extract
Usually, the debugfs' (-dbg.tar.*) work follow is: 1) Install regular rootfs to dir_foo 2) Install debugfs (-dbg.tar.*) to the same dir_foo So we need allow install debugfs on rootfs. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
-rwxr-xr-xscripts/runqemu-extract-sdk4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/runqemu-extract-sdk b/scripts/runqemu-extract-sdk
index 32ddd485b6..90a7cbf91e 100755
--- a/scripts/runqemu-extract-sdk
+++ b/scripts/runqemu-extract-sdk
@@ -76,7 +76,9 @@ 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
+debug_image="`echo $ROOTFS_TARBALL | grep '\-dbg\.tar\.'`"
+
+if [ -e "$pseudo_state_dir" -a -z "$debug_image" ]; then
echo "Error: $pseudo_state_dir already exists!"
echo "Please delete the rootfs tree and pseudo directory manually"
echo "if this is really what you want."