coreboot/src/mainboard/emulation/Kconfig
Maximilian Brune ee1cb8f463 mb/emulation/qemu-riscv: Change to -bios option
This changes the virt target so that it can be run with the -bios option
and a pflash backend for the flash. QEMU can now be run as follows:

qemu -M virt -m 1G -nographic -bios build/coreboot.rom \
        -drive if=pflash,file=./build/coreboot.rom,format=raw

coreboot will start in DRAM, but still have a flash to put CBFS onto and
to load subsequent stages and payload from.

Tested bootflow:
coreboot -> OpenSBI -> Linux -> u-root

Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I009d97fa3e13068b91c604e987e50a65e525407d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80746
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: ron minnich <rminnich@gmail.com>
Reviewed-by: Philipp Hug <philipp@hug.cx>
2024-03-05 18:57:29 +00:00

22 lines
422 B
Text

## SPDX-License-Identifier: GPL-2.0-only
# ugly to put it in here, but unavoidable
config SEPARATE_ROMSTAGE
default n if BOARD_EMULATION_QEMU_RISCV
if VENDOR_EMULATION
choice
prompt "Mainboard model"
default BOARD_EMULATION_QEMU_X86_I440FX
source "src/mainboard/emulation/*/Kconfig.name"
endchoice
source "src/mainboard/emulation/*/Kconfig"
config MAINBOARD_VENDOR
default "Emulation"
endif # VENDOR_EMULATION