diff options
Diffstat (limited to 'scripts/poky-qemu')
-rwxr-xr-x | scripts/poky-qemu | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu index 6c53b0772..9a5ed7722 100755 --- a/scripts/poky-qemu +++ b/scripts/poky-qemu @@ -29,16 +29,19 @@ else ZIMAGE=$1 fi +if [ "x$MACHINE" = "x" ]; then + MACHINE=`basename $ZIMAGE | sed -r -e 's#.*-([a-z]+[0-9]*)-?[0-9]*..*#\1#'` +fi + if [ "x$2" = "x" ]; then TYPE="nfs" else TYPE="ext2" + if [ "$MACHINE" = "akita" ]; then + TYPE="jffs2" + fi HDIMAGE=$2 fi -if [ "x$MACHINE" = "x" ]; then - MACHINE=`basename $ZIMAGE | sed -r -e 's#.*-([a-z]+[0-9]*)-?[0-9]*..*#\1#'` -fi - INTERNAL_SCRIPT=`which poky-qemu-internal` . $INTERNAL_SCRIPT |