]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
runqemu-extract-sdk: allow install debugfs on rootfs rbt/extract
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 22 Sep 2015 03:37:19 +0000 (03:37 +0000)
committerRobert Yang <liezhi.yang@windriver.com>
Tue, 22 Sep 2015 05:38:56 +0000 (22:38 -0700)
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>
scripts/runqemu-extract-sdk

index 32ddd485b6ef3e64c60b566c5f1acaa6cc8a76f2..90a7cbf91efe5d1478c4a7741eec42673eca18af 100755 (executable)
@@ -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."