commit:     5d473cb2929e2b32a3d37becdd4293e483959eb2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug  1 11:01:34 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug  1 13:17:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d473cb2

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 <AT> gentoo.org>

 eclass/kernel-install.eclass | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 \

Reply via email to