commit:     5c43b76103ee77ca9d25f65e8c2e256ba898fcb4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 18 20:48:14 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jul 18 20:49:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c43b761

kernel-install.eclass: Run tests with '-cpu max'

Since dracut is using host system executables, qemu needs to be able
to execute these executables independently of the CFLAGS used
by the user.  For this reason make sure to enable all supported
instruction sets rather than the default.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

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

diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index ab886d28faf..982cf7b08b4 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -49,7 +49,7 @@ SRC_URI+="
                        
https://dev.gentoo.org/~mgorny/dist/tinycorelinux-${TCL_VER}-amd64.qcow2
                )
                x86? (
-                               
https://dev.gentoo.org/~mgorny/dist/tinycorelinux-${TCL_VER}-x86.qcow2
+                       
https://dev.gentoo.org/~mgorny/dist/tinycorelinux-${TCL_VER}-x86.qcow2
                )
        )"
 
@@ -231,6 +231,7 @@ kernel-install_test() {
        cat > run.sh <<-EOF || die
                #!/bin/sh
                exec qemu-system-${qemu_arch} \
+                       -cpu max \
                        -m 256M \
                        -display none \
                        -no-reboot \

Reply via email to