summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-01-29 17:03:29 +0000
committerRichard Purdie <richard@openedhand.com>2007-01-29 17:03:29 +0000
commit86db48cd17bb2853e2074cc5625e005faf09ce87 (patch)
treef90650f61251d9c315ae0dc72b52c13f67ede295 /scripts/poky-qemu
parente41b8ef74998222758622b7ba4fdd94da4be57c3 (diff)
downloadopenembedded-core-contrib-86db48cd17bb2853e2074cc5625e005faf09ce87.tar.gz
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
Diffstat (limited to 'scripts/poky-qemu')
-rwxr-xr-xscripts/poky-qemu11
1 files changed, 7 insertions, 4 deletions
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