Hi folks,
I'm currently looking into making payload builds and testing more convenient. That involves, among other things, QEMU make targets with default options that should ease coreboot development, incre- mental builds of payloads, support for local changes in payload dirs.
So far I've finished the QEMU hook-up for x86 targets [1]. The idea is to have a Make target `qemu` that is automatically added if a com- patible coreboot target is selected. With some luck, adding more coreboot targets should be as easy as specifying the QEMU binary to use, e.g.
QEMU-$(CONFIG_BOARD_EMULATION_...) ?= qemu-system-...
What I only learned recently: QEMU supports configuration files that ease adding specific devices to emulate (compared to ever growing command lines). I wrote one for the Intel Q35 emulation target [2] with most of the (PCI) devices one would expect with that chipset. This should help to test in an environment that comes closer to real boards.
Comments and review welcome!
Cheers, Nico
[1] https://review.coreboot.org/c/coreboot/+/46767 [2] https://review.coreboot.org/c/coreboot/+/46768