diff options
author | Richard Purdie <richard@openedhand.com> | 2007-01-29 17:03:29 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-01-29 17:03:29 +0000 |
commit | 86db48cd17bb2853e2074cc5625e005faf09ce87 (patch) | |
tree | f90650f61251d9c315ae0dc72b52c13f67ede295 /scripts/poky-qemu | |
parent | e41b8ef74998222758622b7ba4fdd94da4be57c3 (diff) | |
download | poky-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-x | scripts/poky-qemu | 11 |
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 | |||
29 | ZIMAGE=$1 | 29 | ZIMAGE=$1 |
30 | fi | 30 | fi |
31 | 31 | ||
32 | if [ "x$MACHINE" = "x" ]; then | ||
33 | MACHINE=`basename $ZIMAGE | sed -r -e 's#.*-([a-z]+[0-9]*)-?[0-9]*..*#\1#'` | ||
34 | fi | ||
35 | |||
32 | if [ "x$2" = "x" ]; then | 36 | if [ "x$2" = "x" ]; then |
33 | TYPE="nfs" | 37 | TYPE="nfs" |
34 | else | 38 | else |
35 | TYPE="ext2" | 39 | TYPE="ext2" |
40 | if [ "$MACHINE" = "akita" ]; then | ||
41 | TYPE="jffs2" | ||
42 | fi | ||
36 | HDIMAGE=$2 | 43 | HDIMAGE=$2 |
37 | fi | 44 | fi |
38 | 45 | ||
39 | if [ "x$MACHINE" = "x" ]; then | ||
40 | MACHINE=`basename $ZIMAGE | sed -r -e 's#.*-([a-z]+[0-9]*)-?[0-9]*..*#\1#'` | ||
41 | fi | ||
42 | |||
43 | INTERNAL_SCRIPT=`which poky-qemu-internal` | 46 | INTERNAL_SCRIPT=`which poky-qemu-internal` |
44 | . $INTERNAL_SCRIPT | 47 | . $INTERNAL_SCRIPT |