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@gentoo.org>
This commit is contained in:
Michał Górny
2020-07-18 22:48:14 +02:00
parent 936a664569
commit 5c43b76103

View File

@@ -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 \