diff options
author | Avi Kivity <avi@qumranet.com> | 2006-11-14 12:03:15 +0000 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2006-11-14 12:03:15 +0000 |
commit | 3c3b242902e1075dee3e2ce9ff2570c168ca0782 (patch) | |
tree | d517645d51031660c3894f14b28dcce615defbd2 /configure | |
parent | df993e2f2ba2cf86587088416e6b0eeb9cccdc64 (diff) |
kvm: merge fixes from release branch (revs 3615, 3632, 3643, 3648, 3721-2)
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -53,8 +53,16 @@ if (( want_module )); then libkvm_kerneldir=$(readlink -f kernel) fi +target_cpu() { + if [[ $(uname -m) = i?86 ]]; then + echo i386 + else + uname -m + fi +} + (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir") -(cd qemu; ./configure --target-list=$(uname -i)-softmmu --cc="$qemu_cc" \ +(cd qemu; ./configure --target-list=$(target_cpu)-softmmu --cc="$qemu_cc" \ --disable-kqemu --extra-cflags="-I $PWD/../user" \ --extra-ldflags="-L $PWD/../user" \ --enable-kvm --kernel-path="$libkvm_kerneldir" \ |