summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-extract-sdk
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-05-30 17:03:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-02 11:41:25 +0100
commit20d625c69cc51180c549c1cc94f80ec326e201c5 (patch)
tree99b6d6b8a5df81491cb10424172f40c23d808fd3 /scripts/runqemu-extract-sdk
parent7f47789362579956a412486ce69aaef65b7b0054 (diff)
downloadpoky-20d625c69cc51180c549c1cc94f80ec326e201c5.tar.gz
runqemu-extract-sdk: allow install debugfs on rootfs
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 to allow installing the debugfs on top of the rootfs. (From OE-Core rev: c54147b286d72d7c4f8ca55a5a62f5d27bd5364a) (From OE-Core rev: fdd2fca2257172251ffb0fbc6dcd60bed01ee0f0) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-extract-sdk')
-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 2a0dd50e0e..f4286efb1f 100755
--- a/scripts/runqemu-extract-sdk
+++ b/scripts/runqemu-extract-sdk
@@ -76,7 +76,9 @@ fi
76pseudo_state_dir="$SDK_ROOTFS_DIR/../$(basename "$SDK_ROOTFS_DIR").pseudo_state" 76pseudo_state_dir="$SDK_ROOTFS_DIR/../$(basename "$SDK_ROOTFS_DIR").pseudo_state"
77pseudo_state_dir="$(readlink -f $pseudo_state_dir)" 77pseudo_state_dir="$(readlink -f $pseudo_state_dir)"
78 78
79if [ -e "$pseudo_state_dir" ]; then 79debug_image="`echo $ROOTFS_TARBALL | grep '\-dbg\.tar\.'`"
80
81if [ -e "$pseudo_state_dir" -a -z "$debug_image" ]; then
80 echo "Error: $pseudo_state_dir already exists!" 82 echo "Error: $pseudo_state_dir already exists!"
81 echo "Please delete the rootfs tree and pseudo directory manually" 83 echo "Please delete the rootfs tree and pseudo directory manually"
82 echo "if this is really what you want." 84 echo "if this is really what you want."