From 5c43b76103ee77ca9d25f65e8c2e256ba898fcb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 18 Jul 2020 22:48:14 +0200 Subject: [PATCH] kernel-install.eclass: Run tests with '-cpu max' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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 ab886d28faf01..982cf7b08b4d9 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 \