use qboot for the bios in tiny config

This commit is contained in:
Trammell Hudson 2018-10-25 15:00:43 -04:00
parent a6696d991e
commit e6c2ff5fa1
Failed to extract signature
3 changed files with 26 additions and 0 deletions

View File

@ -388,6 +388,7 @@ endef
# Only some modules have binaries that we install
# Shouldn't this be specified in the module file?
bin_modules-$(CONFIG_QBOOT) += qboot
bin_modules-$(CONFIG_KEXEC) += kexec
bin_modules-$(CONFIG_TPMTOTP) += tpmtotp
bin_modules-$(CONFIG_PCIUTILS) += pciutils

View File

@ -6,6 +6,8 @@ export CONFIG_COREBOOT=n
#CONFIG_LINUXBOOT_BOARD=qemu
CONFIG_LINUX_CONFIG=config/linux-tiny.config
CONFIG_QBOOT=y
ifeq "$(CONFIG_UROOT)" "y"
CONFIG_BUSYBOX=n
else
@ -41,6 +43,7 @@ run:
--serial /dev/tty \
--device virtio-net,netdev=net0 \
--netdev user,id=net0,hostfwd=tcp::5555-:22 \
--bios $(build)/qboot-git/bios.bin \
--kernel $(build)/$(BOARD)/bzImage \
--initrd $(build)/$(BOARD)/initrd.cpio.xz
stty sane

22
modules/qboot Normal file
View File

@ -0,0 +1,22 @@
modules-$(CONFIG_QBOOT) += qboot
qboot_depends := $(musl_dep)
qboot_version := git
qboot_repo := https://github.com/bonzini/qboot
#qboot_version := 0.3.0
qboot_dir := qboot-$(qboot_version)
qboot_tar := qboot-$(qboot_version).tar.gz
qboot_url :=
qboot_hash :=
# something is wrong with musl-gcc compiling qboot
# use the system gcc, which isn't great
qboot_target := \
qboot_output := bios.bin
qboot_libraries :=
qboot_configure :=