aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Lopez <slp@redhat.com>2019-09-30 17:36:58 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-10-22 09:39:54 +0200
commit0d5fae3e52e8a6b1068e53ebb87e96702246529e (patch)
tree55aa00ed25c1627145c887cbb727b0e3b64d77e1
parent78cafff81088492fe70e12b3bded219096031f7c (diff)
downloadqemu-0d5fae3e52e8a6b1068e53ebb87e96702246529e.zip
qemu-0d5fae3e52e8a6b1068e53ebb87e96702246529e.tar.gz
qemu-0d5fae3e52e8a6b1068e53ebb87e96702246529e.tar.bz2
roms: add microvm-bios (qboot) as binary and git submodule
qboot is a minimalist x86 firmware for booting Linux kernels. It does the mininum amount of work required for the task, and it's able to boot both PVH images and bzImages without relying on option roms. This characteristics make it an ideal companion for the microvm machine type. Signed-off-by: Sergio Lopez <slp@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
-rw-r--r--.gitmodules3
-rw-r--r--pc-bios/bios-microvm.binbin0 -> 65536 bytes
-rw-r--r--roms/Makefile6
m---------roms/qboot0
4 files changed, 9 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index c5c4741..19792c9 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -58,3 +58,6 @@
[submodule "roms/opensbi"]
path = roms/opensbi
url = https://git.qemu.org/git/opensbi.git
+[submodule "roms/qboot"]
+ path = roms/qboot
+ url = https://github.com/bonzini/qboot
diff --git a/pc-bios/bios-microvm.bin b/pc-bios/bios-microvm.bin
new file mode 100644
index 0000000..45eabc5
--- /dev/null
+++ b/pc-bios/bios-microvm.bin
Binary files differ
diff --git a/roms/Makefile b/roms/Makefile
index da4efa4..c150170 100644
--- a/roms/Makefile
+++ b/roms/Makefile
@@ -67,6 +67,7 @@ default help:
@echo " opensbi32-virt -- update OpenSBI for 32-bit virt machine"
@echo " opensbi64-virt -- update OpenSBI for 64-bit virt machine"
@echo " opensbi64-sifive_u -- update OpenSBI for 64-bit sifive_u machine"
+ @echo " bios-microvm -- update bios-microvm.bin (qboot)"
@echo " clean -- delete the files generated by the previous" \
"build targets"
@@ -186,6 +187,10 @@ opensbi64-sifive_u:
PLATFORM="sifive/fu540"
cp opensbi/build/platform/sifive/fu540/firmware/fw_jump.bin ../pc-bios/opensbi-riscv64-sifive_u-fw_jump.bin
+bios-microvm:
+ $(MAKE) -C qboot
+ cp qboot/bios.bin ../pc-bios/bios-microvm.bin
+
clean:
rm -rf seabios/.config seabios/out seabios/builds
$(MAKE) -C sgabios clean
@@ -198,3 +203,4 @@ clean:
$(MAKE) -C skiboot clean
$(MAKE) -f Makefile.edk2 clean
$(MAKE) -C opensbi clean
+ $(MAKE) -C qboot clean
diff --git a/roms/qboot b/roms/qboot
new file mode 160000
+Subproject cb1c49e0cfac99b9961d136ac0194da62c28cf6