rom build scripting, switch vgabios implementation
cover rom build scripting, switch vgabios implementation
Hi folks,
There is a vgabios sitting implementation in the seabios repository for a while. Recently it got a huge overhaul and should be on-par with the lgpl vgabios implementation. I'd like to see qemu switch to that implementation, for very simliar reasons which made us switch from bochs bios to seabios. The vgabios is written almost completely in C, thus it is easier to modify and maintain. We have a very responsitive upstream.
This patch series adds some build magic to roms/, for two reasons: It simplifies updates and documents the build process. Covers seabios and vgabios for now. Anyone who is familier with the build process for other roms (ipxe, openbios, slof, ...) is welcome to add more bits there.
seabios submodule is updated to latest master (mirroring @ qemu.org seems to be broken btw, had to pull from seabios.org directly), vgabios and seabios binaries are updated.
Tests, comments etc, are welcome.
cheers,
Gerd
The following changes since commit cf4dc461a4cfc3e056ee24edb26154f4d34a6278:
Restore consistent formatting (2012-02-07 22:11:04 +0400)
are available in the git repository at:
git://git.kraxel.org/qemu bios.1
Gerd Hoffmann (5):
update seabios to latest master [feb 9th]
Add vgabios build scripts to roms/
Update vgabios binaries
Add seabios build scripts to roms/
Update seabios binary
pc-bios/bios.bin | Bin 131072 -> 131072 bytes pc-bios/vgabios-cirrus.bin | Bin 35840 -> 37376 bytes pc-bios/vgabios-qxl.bin | Bin 40448 -> 37376 bytes pc-bios/vgabios-stdvga.bin | Bin 40448 -> 37376 bytes pc-bios/vgabios-vmware.bin | Bin 40448 -> 37376 bytes roms/Makefile | 23 +++++++++++++++++++++++ roms/config.seabios | 1 + roms/config.vga.cirrus | 3 +++ roms/config.vga.isavga | 3 +++ roms/config.vga.qxl | 6 ++++++ roms/config.vga.stdvga | 3 +++ roms/config.vga.vmware | 6 ++++++ roms/configure-seabios.sh | 5 +++++ roms/seabios | 2 +- 14 files changed, 51 insertions(+), 1 deletions(-) create mode 100644 roms/Makefile create mode 100644 roms/config.seabios create mode 100644 roms/config.vga.cirrus create mode 100644 roms/config.vga.isavga create mode 100644 roms/config.vga.qxl create mode 100644 roms/config.vga.stdvga create mode 100644 roms/config.vga.vmware create mode 100755 roms/configure-seabios.sh
PATCH 1/5 update seabios to latest master [feb 9th]
--- pc-bios/vgabios-cirrus.bin | Bin 35840 -> 35328 bytes roms/seabios | 2 +- 2 files changed, 1 insertions(+), 1 deletions(-)
pc-bios/vgabios-cirrus.bin binary +0 -0
roms/seabios +1 -1
@@ -1 +1 @@ -Subproject commit 80d11e8577bf03e98f2eb1b0cb3a281ab2879c9e +Subproject commit 091dd17e8dc2ca242ae6839a6699dbc0ed52a3ed
Signature · 1 line
1.7.1
PATCH 2/5 Add vgabios build scripts to roms/
In reply to Gerd Hoffmann--- roms/Makefile | 17 +++++++++++++++++ roms/config.vga.cirrus | 3 +++ roms/config.vga.isavga | 3 +++ roms/config.vga.qxl | 6 ++++++ roms/config.vga.stdvga | 3 +++ roms/config.vga.vmware | 6 ++++++ roms/configure-seabios.sh | 5 +++++ 7 files changed, 43 insertions(+), 0 deletions(-) create mode 100644 roms/Makefile create mode 100644 roms/config.vga.cirrus create mode 100644 roms/config.vga.isavga create mode 100644 roms/config.vga.qxl create mode 100644 roms/config.vga.stdvga create mode 100644 roms/config.vga.vmware create mode 100755 roms/configure-seabios.sh
roms/Makefile new file +17 -0
@@ -0,0 +1,17 @@ + +targets_vgabios := vgabios-cirrus vgabios-stdvga +targets_vgabios += vgabios-vmware vgabios-qxl +#targets_vgabios += vgabios-isavga + +default: + @echo "nothing is build by default" + @echo "available build targets:" + @echo " vgabios-<name> -- update vgabios-<name>.bin" + @echo " vgabios -- update all vgabios binaries" + +vgabios: $(targets_vgabios) + +vgabios-%: config.vga.% + sh configure-seabios.sh $< + make -C seabios out/vgabios.bin + cp seabios/out/vgabios.bin ../pc-bios/vgabios-$*.bin
roms/config.vga.cirrus new file +3 -0
@@ -0,0 +1,3 @@ +CONFIG_BUILD_VGABIOS=y +CONFIG_VGA_CIRRUS=y +CONFIG_VGA_PCI=y
roms/config.vga.isavga new file +3 -0
@@ -0,0 +1,3 @@ +CONFIG_BUILD_VGABIOS=y +CONFIG_VGA_BOCHS=y +CONFIG_VGA_PCI=n
roms/config.vga.qxl new file +6 -0
@@ -0,0 +1,6 @@ +CONFIG_BUILD_VGABIOS=y +CONFIG_VGA_BOCHS=y +CONFIG_VGA_PCI=y +CONFIG_OVERRIDE_PCI_ID=y +CONFIG_VGA_VID=0x1b36 +CONFIG_VGA_DID=0x0100
roms/config.vga.stdvga new file +3 -0
@@ -0,0 +1,3 @@ +CONFIG_BUILD_VGABIOS=y +CONFIG_VGA_BOCHS=y +CONFIG_VGA_PCI=y
roms/config.vga.vmware new file +6 -0
@@ -0,0 +1,6 @@ +CONFIG_BUILD_VGABIOS=y +CONFIG_VGA_BOCHS=y +CONFIG_VGA_PCI=y +CONFIG_OVERRIDE_PCI_ID=y +CONFIG_VGA_VID=0x15ad +CONFIG_VGA_DID=0x0405
roms/configure-seabios.sh new file +5 -0
@@ -0,0 +1,5 @@ +#!/bin/sh +config="$1" +make -C seabios clean distclean +cp "$config" seabios/.config +make -C seabios oldnoconfig
Signature · 1 line
1.7.1
PATCH 3/5 Update vgabios binaries
In reply to Gerd Hoffmann--- pc-bios/vgabios-cirrus.bin | Bin 35328 -> 37376 bytes pc-bios/vgabios-qxl.bin | Bin 40448 -> 37376 bytes pc-bios/vgabios-stdvga.bin | Bin 40448 -> 37376 bytes pc-bios/vgabios-vmware.bin | Bin 40448 -> 37376 bytes 4 files changed, 0 insertions(+), 0 deletions(-)
pc-bios/vgabios-cirrus.bin binary +0 -0
pc-bios/vgabios-qxl.bin binary +0 -0
pc-bios/vgabios-stdvga.bin binary +0 -0
pc-bios/vgabios-vmware.bin binary +0 -0
Signature · 1 line
1.7.1
PATCH 4/5 Add seabios build scripts to roms/
In reply to Gerd Hoffmann--- roms/Makefile | 6 ++++++ roms/config.seabios | 1 + 2 files changed, 7 insertions(+), 0 deletions(-) create mode 100644 roms/config.seabios
roms/Makefile +6 -0
@@ -8,6 +8,7 @@ default: @echo "available build targets:" @echo " vgabios-<name> -- update vgabios-<name>.bin" @echo " vgabios -- update all vgabios binaries" + @echo " bios -- update bios.bin (seabios)" vgabios: $(targets_vgabios)
@@ -15,3 +16,8 @@ vgabios-%: config.vga.% sh configure-seabios.sh $< make -C seabios out/vgabios.bin cp seabios/out/vgabios.bin ../pc-bios/vgabios-$*.bin + +bios: config.seabios + sh configure-seabios.sh $< + make -C seabios out/bios.bin + cp seabios/out/bios.bin ../pc-bios/bios.bin
roms/config.seabios new file +1 -0
@@ -0,0 +1 @@ +# empty, default config works for us
Signature · 1 line
1.7.1
PATCH 5/5 Update seabios binary
In reply to Gerd Hoffmann--- pc-bios/bios.bin | Bin 131072 -> 131072 bytes 1 files changed, 0 insertions(+), 0 deletions(-)
pc-bios/bios.bin binary +0 -0
Signature · 1 line
1.7.1