diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-08-01 13:01:34 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-08-01 15:17:15 +0200 |
commit | 5d473cb2929e2b32a3d37becdd4293e483959eb2 (patch) | |
tree | 4e9e92a4241428b56bc3c32c12b03830853cb41e /eclass | |
parent | app-i18n/yaskkserv: drop old (diff) | |
download | gentoo-5d473cb2929e2b32a3d37becdd4293e483959eb2.tar.gz gentoo-5d473cb2929e2b32a3d37becdd4293e483959eb2.tar.bz2 gentoo-5d473cb2929e2b32a3d37becdd4293e483959eb2.zip |
kernel-install.eclass: Pass '-cpu max' on amd64 only
It seems to break testing on 32-bit x86.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/kernel-install.eclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass index 982cf7b08b4d..20ad3555d239 100644 --- a/eclass/kernel-install.eclass +++ b/eclass/kernel-install.eclass @@ -228,10 +228,12 @@ kernel-install_test() { "${T}/fs.qcow2" || die cd "${T}" || die + local qemu_extra_args= + [[ ${qemu_arch} == x86_64 ]] && qemu_extra_args='-cpu max' cat > run.sh <<-EOF || die #!/bin/sh exec qemu-system-${qemu_arch} \ - -cpu max \ + ${qemu_extra_args} \ -m 256M \ -display none \ -no-reboot \ |