[SeaBIOS] [PATCH 1/3] Kconfig: add explicit QEMU 128/QEMU 256 targets

Michael S. Tsirkin mst at redhat.com
Wed Sep 25 11:36:15 CEST 2013


Older QEMU versions need a small bios <128K, and don't
need lots of modern features (no hardware for them).
Add an option you can use for that, so that
QEMU developers don't need to go hunting:
what's required and what's not.

Signed-off-by: Michael S. Tsirkin <mst at redhat.com>
---
 src/Kconfig | 24 +++++++++++++++++++++---
 1 file changed, 21 insertions(+), 3 deletions(-)

diff --git a/src/Kconfig b/src/Kconfig
index 5780885..d6b6608 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -6,18 +6,32 @@ menu "General Features"
 
 choice
     prompt "Build Target"
-    default QEMU
+    default QEMU_256K
 
     config COREBOOT
         bool "Build for coreboot"
         help
             Configure as a coreboot payload.
 
-    config QEMU
-        bool "Build for QEMU/Xen/KVM/Bochs"
+    config QEMU_128K
+        bool "Build 128K binary for legacy QEMU/Xen/KVM/Bochs"
+        select QEMU
+        select QEMU_HARDWARE
+        help
+            Configure for an emulated machine (QEMU, Xen, KVM, or Bochs).
+            Select this option to generate smaller BIOS, disabling
+            some features to fit within 128Kbyte memory buffer used
+            by QEMU 1.6 and earlier.
+
+    config QEMU_256K
+        bool "Build 256K binary for QEMU/Xen/KVM/Bochs"
+        select QEMU
         select QEMU_HARDWARE
         help
             Configure for an emulated machine (QEMU, Xen, KVM, or Bochs).
+            Select this option to generate a bigger (up to 256Kbyte), more
+            full-featured BIOS, enabling more features useful for QEMU 1.7 and
+            newer.
 
     config CSM
        bool "Build as Compatibilty Support Module for EFI BIOS"
@@ -27,6 +41,10 @@ choice
 
 endchoice
 
+    config QEMU
+        bool
+        default n
+
     config QEMU_HARDWARE
         bool "Support hardware found on emulators (QEMU/Xen/KVM/Bochs)" if !QEMU
         default n
-- 
MST




More information about the SeaBIOS mailing list