Skip to content

Commit

Permalink
roms: build two seabios binaries
Browse files Browse the repository at this point in the history
Adding xhci support to seabios made it jump over the 128k line.
Changing the bios size breaks migration, so we have to keep a
128k seabios binary for old machine types.  New machine types can
use a large 256k bios which should be big enougth for a while.

This patch updates the seabios build process to build seabios twice,
once full featured and once with xen and xhci turned off so the
resulting binary is small enougth to fit into 128k.

Signed-off-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
kraxel committed Dec 6, 2013
1 parent 11938d7 commit 94e68ca
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 4 additions & 3 deletions roms/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ default:
@echo " the EfiRom utility from edk2 / tianocore)"
@echo " slof -- update slof.bin"

bios: build-seabios-config-seabios
cp seabios/builds/seabios/bios.bin ../pc-bios/bios.bin
cp seabios/builds/seabios/*dsdt.aml ../pc-bios/
bios: build-seabios-config-seabios-128k build-seabios-config-seabios-256k
cp seabios/builds/seabios-128k/bios.bin ../pc-bios/bios.bin
cp seabios/builds/seabios-256k/bios.bin ../pc-bios/bios-256k.bin
cp seabios/builds/seabios-256k/src/fw/*dsdt.aml ../pc-bios/

seavgabios: $(patsubst %,seavgabios-%,$(vgabios_variants))

Expand Down
1 change: 0 additions & 1 deletion roms/config.seabios

This file was deleted.

6 changes: 6 additions & 0 deletions roms/config.seabios-128k
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# for qemu machine types 1.7 + older
# need to turn off features (xhci) to make it fit into 128k
CONFIG_QEMU=y
CONFIG_ROM_SIZE=128
CONFIG_XEN=n
CONFIG_USB_XHCI=n
3 changes: 3 additions & 0 deletions roms/config.seabios-256k
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# for qemu machine types 2.0 + newer
CONFIG_QEMU=y
CONFIG_ROM_SIZE=256

0 comments on commit 94e68ca

Please sign in to comment.