Last change
on this file since 1517 was 1474, checked in by Bruno Cornec, 17 years ago |
Ubuntu support added for build process
|
-
Property svn:executable
set to
*
|
File size:
703 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 | #
|
---|
3 | # $Id$
|
---|
4 | #
|
---|
5 | # Call virtual machine with qemu
|
---|
6 | #
|
---|
7 | (
|
---|
8 | dname=`dirname $0`
|
---|
9 | prem=`echo $dname |cut -c1`
|
---|
10 | if [ _${prem} = _"/" ]; then
|
---|
11 | export TOOLHOME=$dname
|
---|
12 | else
|
---|
13 | export TOOLHOME=${PWD}/$dname
|
---|
14 | fi
|
---|
15 |
|
---|
16 | . $TOOLHOME/common-env
|
---|
17 | . $TOOLHOME/distro-env
|
---|
18 |
|
---|
19 | if [ _"$1" = _"" ]; then
|
---|
20 | echo "Syntax: qemu vm"
|
---|
21 | exit -1
|
---|
22 | else
|
---|
23 | m=$1
|
---|
24 | fi
|
---|
25 | . $TOOLHOME/qemu-env
|
---|
26 |
|
---|
27 | if [ _"$QEMUAPP" != _"" ]; then
|
---|
28 | $qemucmd -m 256 $QEMUOPT -append "$QEMUAPP" -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
|
---|
29 | exit 0
|
---|
30 | fi
|
---|
31 |
|
---|
32 | echo $m | grep -q '_64$'
|
---|
33 | if [ $? -ne 0 ]; then
|
---|
34 | qemucmd=$qemucmd32
|
---|
35 | else
|
---|
36 | qemucmd="$qemucmd64 -no-kqemu"
|
---|
37 | fi
|
---|
38 | $qemucmd -m 256 $QEMUOPT -redir tcp:${sp}:${ipvm}:22 /users/qemu/$m.qemu
|
---|
39 | ) 2>&1 | tee /tmp/mkqemu.log
|
---|
Note:
See
TracBrowser
for help on using the repository browser.