]> code.ossystems Code Review - openembedded-core.git/commitdiff
runqemu-extract-sdk: fix install debugfs on rootfs
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Mon, 6 Apr 2020 14:48:33 +0000 (16:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Apr 2020 15:34:06 +0000 (16:34 +0100)
At least with my current setup and acc. the manual, the images are named
like image-dbg.rootfs.tar.bz2.

The filter has two bugs:
- expects something like -dbg.tar
- tar without compression suffix is not allowed

Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu-extract-sdk

index 8a4ee90a1d68b7f8f5dbddb7ef99de00ada23f9a..9bc0c07fb809271aab7dbd872c882f81e33c13e2 100755 (executable)
@@ -69,7 +69,7 @@ fi
 pseudo_state_dir="$SDK_ROOTFS_DIR/../$(basename "$SDK_ROOTFS_DIR").pseudo_state"
 pseudo_state_dir="$(readlink -f $pseudo_state_dir)"
 
-debug_image="`echo $ROOTFS_TARBALL | grep '\-dbg\.tar\.'`"
+debug_image="`echo $ROOTFS_TARBALL | grep '\-dbg\.rootfs\.tar'`"
 
 if [ -e "$pseudo_state_dir" -a -z "$debug_image" ]; then
        echo "Error: $pseudo_state_dir already exists!"