From 9f38e7e5f5b66ffff60ad1c6d93856e83c3f7f75 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Tue, 15 May 2018 21:39:12 -0700 Subject: [PATCH] Switch to building VBox images on-demand from QEMU image --- wscript | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wscript b/wscript index 77ba3ba..6085846 100644 --- a/wscript +++ b/wscript @@ -291,8 +291,9 @@ def vbox(ctx): from shutil import copy from subprocess import call - dest = os.getenv("VBOX_DEST") - copy("{}/src/kernel/popcorn.elf".format(out), dest) + ext = 'qed' + dest = os.path.join(os.getenv("VBOX_DEST"), "popcorn.{}".format(ext)) + call("qemu-img convert -f raw -O {} build/popcorn.img {}".format(ext, dest), shell=True) call("nc -l -p 5555", shell=True)