From: Uri Lublin <[email protected]>

Signed-off-by: Uri Lublin <[email protected]>

diff --git a/client/tests/kvm_runtest_2/kvm_install.py 
b/client/tests/kvm_runtest_2/kvm_install.py
index 75cbd9b..45f47ac 100755
--- a/client/tests/kvm_runtest_2/kvm_install.py
+++ b/client/tests/kvm_runtest_2/kvm_install.py
@@ -255,6 +255,18 @@ def __install_kvm(test, srcdir):
     run("make clean", "make clean", 30)
     run("make", "make", 1200)
 
+    # make bios binaries if missing
+    if not os.path.exists('qemu/pc-bios/bios.bin'):
+        run("make -C bios", "make bios", 60)
+        run("make -C vgabios", "make vgabios", 60)
+        run("make -C extboot", "make extboot", 60)
+        cp1 = "cp -f bios/BIOS-bochs-latest qemu/pc-bios/bios.bin"
+        cp2 = "cp -f vgabios/VGABIOS-lgpl-latest.bin qemu/pc-bios/vgabios.bin"
+        cp3 = "cp -f vgabios/VGABIOS-lgpl-latest.cirrus.bin 
qemu/pc-bios/vgabios-cirrus.bin"
+        cp4 = "cp -f extboot/extboot.bin qemu/pc-bios/extboot.bin"
+        cmd = "&& ".join([cp1, cp2, cp3, cp4])
+        run(cmd, "copy bios binaries", 30)
+
     # install from qemu directory
     run("make -C qemu install", "(make install) ", 120)
 
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to