From 86db48cd17bb2853e2074cc5625e005faf09ce87 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 29 Jan 2007 17:03:29 +0000 Subject: scripts: Add framework for supporting akita images under qemu git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1214 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- scripts/poky-qemu | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'scripts/poky-qemu') diff --git a/scripts/poky-qemu b/scripts/poky-qemu index 6c53b07723..9a5ed7722e 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 -- cgit 1.2.3-korg