summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-08-01 13:01:34 +0200
committerMichał Górny <mgorny@gentoo.org>2020-08-01 15:17:15 +0200
commit5d473cb2929e2b32a3d37becdd4293e483959eb2 (patch)
tree4e9e92a4241428b56bc3c32c12b03830853cb41e
parentapp-i18n/yaskkserv: drop old (diff)
downloadgentoo-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>
-rw-r--r--eclass/kernel-install.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index 982cf7b08b4..20ad3555d23 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 \