mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-16 23:38:58 +00:00
very small qemu-only configuration
This commit is contained in:
parent
72c42fa5ea
commit
a6696d991e
3
Makefile
3
Makefile
@ -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
|
||||
|
46
boards/qemu-tiny/qemu-tiny.config
Normal file
46
boards/qemu-tiny/qemu-tiny.config
Normal 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
1867
config/linux-tiny.config
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user