From: Scott Garman <scott.a.garman@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] runqemu: Move the KVM check after the MACHINE/KERNEL Checks
Date: Thu, 23 Aug 2012 18:58:51 -0700 [thread overview]
Message-ID: <5036DFDB.6050302@intel.com> (raw)
In-Reply-To: <1345754787-23198-1-git-send-email-sgw@linux.intel.com>
On 08/23/2012 01:46 PM, Saul Wold wrote:
> The MACHINE/KERNEL Checks setup MACHINE is it's unset, the KVM checks valid
> MACHINE is qemux86 or qemux86-64 and fail if it's unset!
>
> [YOCTO #2970]
>
> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Thanks for this.
Acked-by: Scott Garman <scott.a.garman@intel.com>
> ---
> scripts/runqemu | 31 ++++++++++++++++---------------
> 1 files changed, 16 insertions(+), 15 deletions(-)
>
> diff --git a/scripts/runqemu b/scripts/runqemu
> index 290f9cc..a3c3509 100755
> --- a/scripts/runqemu
> +++ b/scripts/runqemu
> @@ -191,6 +191,22 @@ elif [ ! -w /dev/net/tun ] ; then
> exit 1
> fi
>
> +# Report errors for missing combinations of options
> +if [ -z "$MACHINE" -a -z "$KERNEL" ]; then
> + error "you must specify at least a MACHINE or KERNEL argument"
> +fi
> +if [ "$FSTYPE" = "nfs" -a -z "$ROOTFS" ]; then
> + error "NFS booting without an explicit ROOTFS path is not yet supported"
> +fi
> +
> +if [ -z "$MACHINE" ]; then
> + MACHINE=`basename $KERNEL | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`
> + if [ -z "$MACHINE" ]; then
> + error "Unable to set MACHINE from kernel filename [$KERNEL]"
> + fi
> + echo "Set MACHINE to [$MACHINE] based on kernel [$KERNEL]"
> +fi
> +
> YOCTO_KVM_WIKI="https://wiki.yoctoproject.org/wiki/How_to_enable_KVM_for_Poky_qemu"
> # Detect KVM configuration
> if [ "x$KVM_ENABLED" = "xyes" ]; then
> @@ -220,21 +236,6 @@ if [ "x$KVM_ENABLED" = "xyes" ]; then
> fi
> fi
>
> -# Report errors for missing combinations of options
> -if [ -z "$MACHINE" -a -z "$KERNEL" ]; then
> - error "you must specify at least a MACHINE or KERNEL argument"
> -fi
> -if [ "$FSTYPE" = "nfs" -a -z "$ROOTFS" ]; then
> - error "NFS booting without an explicit ROOTFS path is not yet supported"
> -fi
> -
> -if [ -z "$MACHINE" ]; then
> - MACHINE=`basename $KERNEL | sed 's/.*\(qemux86-64\|qemux86\|qemuarm\|qemumips64\|qemumips\|qemuppc\|qemush4\).*/\1/'`
> - if [ -z "$MACHINE" ]; then
> - error "Unable to set MACHINE from kernel filename [$KERNEL]"
> - fi
> - echo "Set MACHINE to [$MACHINE] based on kernel [$KERNEL]"
> -fi
> machine2=`echo $MACHINE | tr 'a-z' 'A-Z' | sed 's/-/_/'`
> # MACHINE is now set for all cases
>
>
--
Scott Garman
Embedded Linux Engineer - Yocto Project
Intel Open Source Technology Center
prev parent reply other threads:[~2012-08-24 2:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 20:46 [PATCH] runqemu: Move the KVM check after the MACHINE/KERNEL Checks Saul Wold
2012-08-24 1:58 ` Scott Garman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5036DFDB.6050302@intel.com \
--to=scott.a.garman@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox