@@ -87,6 +87,7 @@ endif
target-y :=
target-$(CONFIG_QEMU) += $(OUT)bios.bin
+target-$(CONFIG_KVMTOOL) += $(OUT)bios.bin
target-$(CONFIG_CSM) += $(OUT)Csm16.bin
target-$(CONFIG_COREBOOT) += $(OUT)bios.bin.elf
target-$(CONFIG_BUILD_VGABIOS) += $(OUT)vgabios.bin
@@ -25,6 +25,12 @@ choice
Configure to be used by EFI firmware as Compatibility Support
module (CSM) to provide legacy BIOS services.
+ config KVMTOOL
+ bool "Build for kvmtool"
+ select DEBUG_SERIAL
+ help
+ Configure for an emulated machine (kvmtool).
+
endchoice
config QEMU_HARDWARE
@@ -130,6 +136,7 @@ endchoice
config ROM_SIZE
int "ROM size (in KB)"
+ default 128 if KVMTOOL
default 0
help
Set the ROM size. Say '0' here to make seabios figure the
@@ -327,7 +327,7 @@ dopost(void)
void VISIBLE32FLAT
handle_post(void)
{
- if (!CONFIG_QEMU && !CONFIG_COREBOOT)
+ if (!CONFIG_QEMU && !CONFIG_COREBOOT && !CONFIG_KVMTOOL)
return;
serial_debug_preinit();
Add CONFIG_KVMTOOL, some initial preparations so seabios at least prints some debug messages on the serial line. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> --- Makefile | 1 + src/Kconfig | 7 +++++++ src/post.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-)