diff options
| author | Cristian Iorga <cristian.iorga@intel.com> | 2014-02-13 17:26:51 +0200 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-13 17:48:47 +0000 | 
| commit | 0e5cfef90ff762b33da6dc301dfc9cb3947c8a02 (patch) | |
| tree | c5f548155555d5ae7663f5621e68c5a10840ef00 /scripts/runqemu | |
| parent | c3dd44b751e351be52512e2aff885bf571c95fe5 (diff) | |
| download | openembedded-core-0e5cfef90ff762b33da6dc301dfc9cb3947c8a02.tar.gz openembedded-core-0e5cfef90ff762b33da6dc301dfc9cb3947c8a02.tar.bz2 openembedded-core-0e5cfef90ff762b33da6dc301dfc9cb3947c8a02.zip | |
runqemu: enforce right CPU type for qemux86/x86-64
Set in accordance with qemu machines configs.
Fixes [YOCTO #5817].
Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
| -rwxr-xr-x | scripts/runqemu | 9 | 
1 files changed, 3 insertions, 6 deletions
| diff --git a/scripts/runqemu b/scripts/runqemu index 9272b6f2d5..0db7ad63ca 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -68,6 +68,8 @@ SCRIPT_QEMU_OPT=""  SCRIPT_QEMU_EXTRA_OPT=""  SCRIPT_KERNEL_OPT=""  SERIALSTDIO="" +KVM_ENABLED="no" +KVM_ACTIVE="no"  # Determine whether the file is a kernel or QEMU image, and set the  # appropriate variables @@ -103,7 +105,6 @@ process_filename() {  # Parse command line args without requiring specific ordering. It's a  # bit more complex, but offers a great user experience. -KVM_ENABLED="no"  while true; do      arg=${1}      case "$arg" in @@ -266,11 +267,7 @@ if [ "x$KVM_ENABLED" = "xyes" ]; then          exit 1;      fi      if [ -w /dev/kvm -a -r /dev/kvm ]; then -        if [ "x$MACHINE" = "xqemux86" ]; then -            SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu kvm32" -        elif [ "x$MACHINE" = "xqemux86-64" ]; then -            SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu kvm64" -        fi +        SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm"          KVM_ACTIVE="yes"      else          echo "You have no rights on /dev/kvm." | 
