[SeaBIOS] [PATCH 1/7] kvmtool: initial support
Gerd Hoffmann
kraxel at redhat.com
Tue Jul 7 08:38:40 CEST 2015
Add CONFIG_KVMTOOL, some initial preparations so seabios
at least prints some debug messages on the serial line.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
Makefile | 1 +
src/Kconfig | 7 +++++++
src/post.c | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e287530..d7053a6 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/src/Kconfig b/src/Kconfig
index 14c38fb..7620067 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -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
diff --git a/src/post.c b/src/post.c
index 6157b50..65a3c9c 100644
--- a/src/post.c
+++ b/src/post.c
@@ -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();
--
1.8.3.1
More information about the SeaBIOS
mailing list