mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-02 09:38:42 +08:00
Default to using kvm when arch is i686 and host is x86_64
This commit is contained in:
parent
4eb06c8e36
commit
dac858b84e
@ -8,6 +8,11 @@ ifeq ($(ARCH),i686)
|
|||||||
QEMU_MACHINE?=pc
|
QEMU_MACHINE?=pc
|
||||||
QEMU_CPU?=pentium2
|
QEMU_CPU?=pentium2
|
||||||
QEMUFLAGS+=-smp 1 -m 1024
|
QEMUFLAGS+=-smp 1 -m 1024
|
||||||
|
|
||||||
|
# Default to using kvm when arch is i686 and host is x86_64
|
||||||
|
ifeq ($(HOST_ARCH),x86_64)
|
||||||
|
kvm?=yes
|
||||||
|
endif
|
||||||
else ifeq ($(ARCH),x86_64)
|
else ifeq ($(ARCH),x86_64)
|
||||||
QEMU_ARCH=x86_64
|
QEMU_ARCH=x86_64
|
||||||
QEMU_MACHINE?=q35
|
QEMU_MACHINE?=q35
|
||||||
@ -36,6 +41,8 @@ else
|
|||||||
$(error Unsupported ARCH for QEMU "$(ARCH)"))
|
$(error Unsupported ARCH for QEMU "$(ARCH)"))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If host and target arch do not match, disable kvm
|
||||||
|
# (unless overridden above or by environment)
|
||||||
ifneq ($(ARCH),$(HOST_ARCH))
|
ifneq ($(ARCH),$(HOST_ARCH))
|
||||||
kvm?=no
|
kvm?=no
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user