diff options
author | Richard Purdie <richard@openedhand.com> | 2007-01-30 12:23:57 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-01-30 12:23:57 +0000 |
commit | 3cce9ba903a35dce67c08a8344acd52a3eae3e41 (patch) | |
tree | e9f97d39fa62fe55ccb267381507dbd0fd8ece47 /scripts/poky-qemu-internal | |
parent | 9604533009f19b8deadb827da9bd957cf75d67ab (diff) | |
download | openembedded-core-3cce9ba903a35dce67c08a8344acd52a3eae3e41.tar.gz openembedded-core-3cce9ba903a35dce67c08a8344acd52a3eae3e41.tar.bz2 openembedded-core-3cce9ba903a35dce67c08a8344acd52a3eae3e41.tar.xz openembedded-core-3cce9ba903a35dce67c08a8344acd52a3eae3e41.zip |
scripts: Add support to scripts for spitz images
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1216 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-qemu-internal')
-rwxr-xr-x | scripts/poky-qemu-internal | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index ab4ee5e61..4149e9e8a 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal @@ -50,7 +50,7 @@ if [ ! -f "$ZIMAGE" ]; then exit 1 fi -if [ "$MACHINE" != "qemuarm" -a "$MACHINE" != "qemux86" -a "$MACHINE" != "akita" ]; then +if [ "$MACHINE" != "qemuarm" -a "$MACHINE" != "qemux86" -a "$MACHINE" != "akita" -a "$MACHINE" != "spitz" ]; then echo "Error, unsupported machine type $MACHINE" exit 1 fi @@ -91,23 +91,22 @@ fi if [ "$MACHINE" = "spitz" ]; then QEMU=`which qemu-system-arm` -# QEMU=/usr/local/bin/qemu-system-arm -# if [ "$TYPE" = "ext2" ]; then -# if [ "x$HDIMAGE" = "x" ]; then -# HDIMAGE=`readlink -f $BUILDDIR/tmp/deploy/images/oh-image-sdk-spitz.ext2` -# if [ ! -e $HDIMAGE.mbr ]; then -# cp $OEROOT/mbr.bin $HDIMAGE.mbr -# cat $HDIMAGE >> $HDIMAGE.mbr -# fi -# HDIMAGE=$BUILDDIR/tmp/deploy/images/hdaimage.bin -# fi -# QEMUOPTIONS="-append \"root=/dev/sda mem=$QEMU_MEMORY\" $QEMU_NETWORK_CMD -M spitz -hda $HDIMAGE" -# fi + if [ "$TYPE" = "ext3" ]; then + echo $HDIMAGE + HDIMAGE=`readlink -f $HDIMAGE` + echo $HDIMAGE + if [ ! -e "$HDIMAGE.qemudisk" ]; then + echo "Adding a partition table to the ext3 image for use by QEMU, please wait..." + poky-addptable2image $HDIMAGE $HDIMAGE.qemudisk + fi + QEMUOPTIONS="$QEMU_NETWORK_CMD -M spitz -hda $HDIMAGE.qemudisk -vertical" + fi fi if [ "$MACHINE" = "akita" ]; then QEMU=`which qemu-system-arm` if [ "$TYPE" = "jffs2" ]; then + HDIMAGE=`readlink -f $HDIMAGE` if [ ! -e "$HDIMAGE.qemuflash" ]; then echo "Converting raw image into flash image format for use by QEMU, please wait..." raw2flash.akita < $HDIMAGE > $HDIMAGE.qemuflash |