very small qemu-only configuration

This commit is contained in:
Trammell Hudson 2018-10-25 14:33:22 -04:00
parent 72c42fa5ea
commit a6696d991e
Failed to extract signature
3 changed files with 1915 additions and 1 deletions

View File

@ -124,7 +124,8 @@ all: $(build)/$(BOARD)/coreboot.rom
else ifeq "$(CONFIG_LINUXBOOT)" "y"
all: $(build)/$(BOARD)/linuxboot.rom
else
$(error "$(BOARD): neither CONFIG_COREBOOT nor CONFIG_LINUXBOOT is set?")
$(warn "$(BOARD): neither CONFIG_COREBOOT nor CONFIG_LINUXBOOT is set?")
all: $(build)/$(BOARD)/bzImage $(build)/$(BOARD)/initrd.cpio.xz
endif
# Disable all built in rules

View File

@ -0,0 +1,46 @@
# Configuration for building a coreboot ROM that works in the.
# the qemu emulator. Note that the TPM does not work, so this
# will just drop into the recovery shell.
export CONFIG_LINUXBOOT=n
export CONFIG_COREBOOT=n
#CONFIG_LINUXBOOT_BOARD=qemu
CONFIG_LINUX_CONFIG=config/linux-tiny.config
ifeq "$(CONFIG_UROOT)" "y"
CONFIG_BUSYBOX=n
else
CONFIG_KEXEC=y
CONFIG_QRENCODE=n
CONFIG_TPMTOTP=n
CONFIG_POPT=y
CONFIG_FLASHTOOLS=n
CONFIG_FLASHROM=n
CONFIG_PCIUTILS=y
CONFIG_UTIL_LINUX=y
CONFIG_CRYPTSETUP=y
CONFIG_GPG2=y
CONFIG_LVM2=y
CONFIG_MBEDTLS=y
CONFIG_DROPBEAR=y
CONFIG_NEWT=n
CONFIG_SLANG=n
endif
CONFIG_LINUX_ATA=n
CONFIG_LINUX_AHCI=n
CONFIG_LINUX_USB=n
CONFIG_LINUX_E1000=n
export CONFIG_BOOTSCRIPT=/bin/generic-init
export CONFIG_TPM=n
#run: coreboot.intermediate
run:
-qemu-system-x86_64 \
--machine q35 \
--serial /dev/tty \
--device virtio-net,netdev=net0 \
--netdev user,id=net0,hostfwd=tcp::5555-:22 \
--kernel $(build)/$(BOARD)/bzImage \
--initrd $(build)/$(BOARD)/initrd.cpio.xz
stty sane

1867
config/linux-tiny.config Normal file

File diff suppressed because it is too large Load Diff