summaryrefslogtreecommitdiffstats
path: root/scripts/poky-qemu
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-01-16 13:49:34 +0000
committerRichard Purdie <richard@openedhand.com>2007-01-16 13:49:34 +0000
commit990788b29580f8689933b5af21dc9cb62c726b0e (patch)
tree58b7cb274830e8f615b78dbd7ab7452276a1ae9a /scripts/poky-qemu
parent6531611d9a02ebee72229ee475601a5717222e56 (diff)
downloadpoky-990788b29580f8689933b5af21dc9cb62c726b0e.tar.gz
scripts: Rename scripts, update README
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1146 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'scripts/poky-qemu')
-rwxr-xr-xscripts/poky-qemu45
1 files changed, 45 insertions, 0 deletions
diff --git a/scripts/poky-qemu b/scripts/poky-qemu
new file mode 100755
index 0000000000..8710e05dd6
--- /dev/null
+++ b/scripts/poky-qemu
@@ -0,0 +1,45 @@
1#!/bin/sh
2#
3# Handle running Poky images standalone
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License version 2 as
7# published by the Free Software Foundation.
8#
9# This program is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License along
15# with this program; if not, write to the Free Software Foundation, Inc.,
16# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17#
18
19if [ "x$1" = "x" ]; then
20 MYNAME=`basename $0`
21 echo -e "\nRun as MACHINE=xyz $MYNAME ZIMAGE IMAGEFILE"
22 echo "where:"
23 echo " ZIMAGE - the kernel image file to use"
24 echo " IMAGEFILE - the image file/location to use"
25 echo " (NFS booting assumed if IMAGEFILE not specified)"
26 echo " MACHINE=xyz - the machine name (optional, autodetected from ZIMAGE if unspecified)"
27 exit 1
28else
29 ZIMAGE=$1
30fi
31
32if [ "x$2" = "x" ]; then
33 TYPE="nfs"
34else
35 TYPE="ext2"
36 HDIMAGE=$2
37fi
38
39if [ "x$MACHINE" = "x" ]; then
40 MACHINE=`basename $ZIMAGE | sed -e 's#.*-\([a-z]*\)-*[0-9]*..*#\1#'`
41fi
42
43INTERNAL_SCRIPT=`which poky-qemu-internal`
44source $INTERNAL_SCRIPT
45