Skip to contentSkip to conversation

rom build scripting, switch vgabios implementation

PATCH New Gerd Hoffmann 1 participant 6 messages Feb 9, 2012

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 424dd0c70c4a52e1a98d8a64ebf4aa382b85d5cf..487f64be23013589487194fa82d694325fbad4cc 100644
GIT binary patch
roms/seabios +1 -1
index 80d11e8..091dd17 160000
@@ -1 +1 @@
-Subproject commit 80d11e8577bf03e98f2eb1b0cb3a281ab2879c9e
+Subproject commit 091dd17e8dc2ca242ae6839a6699dbc0ed52a3ed
Signature · 1 line
1.7.1
#2 lore raw

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
new file mode 100644
index 0000000..5c3d5f4
@@ -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
new file mode 100644
index 0000000..c8fe582
@@ -0,0 +1,3 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_CIRRUS=y
+CONFIG_VGA_PCI=y
roms/config.vga.isavga new file +3 -0
new file mode 100644
index 0000000..e55e294
@@ -0,0 +1,3 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_BOCHS=y
+CONFIG_VGA_PCI=n
roms/config.vga.qxl new file +6 -0
new file mode 100644
index 0000000..d393f0c
@@ -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
new file mode 100644
index 0000000..7d063b7
@@ -0,0 +1,3 @@
+CONFIG_BUILD_VGABIOS=y
+CONFIG_VGA_BOCHS=y
+CONFIG_VGA_PCI=y
roms/config.vga.vmware new file +6 -0
new file mode 100644
index 0000000..eb10427
@@ -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
new file mode 100755
index 0000000..98f59a2
@@ -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
#3 lore raw

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
index 487f64be23013589487194fa82d694325fbad4cc..3363a87cd660f521d1e87084c2ac9753fa25b0b2 100644
GIT binary patch
pc-bios/vgabios-qxl.bin binary +0 -0
index 3156c6e3f1a18f011014cd983bf57fe7c5a03e96..d7c54ae5188fcebbd2f7ff390f3e52413dff259b 100644
GIT binary patch
pc-bios/vgabios-stdvga.bin binary +0 -0
index 5123c5fd070c14c1d11b432e5c522ec2d1026253..9de3d615df2d99518d3eba37634961c390301f79 100644
GIT binary patch
pc-bios/vgabios-vmware.bin binary +0 -0
index 5e8c06b2286de62f27aa72c79defab686cdb07b5..d0b48d39a26584d77ad5dbdad72115eb1178cb40 100644
GIT binary patch
Signature · 1 line
1.7.1
#4 lore raw

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
index 5c3d5f4..b24c728 100644
@@ -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
new file mode 100644
index 0000000..c373b87
@@ -0,0 +1 @@
+# empty, default config works for us
Signature · 1 line
1.7.1
#5 lore raw

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
index 41e2b38ea24e009baa58739ead6eaecb8dbe6611..010d85626ac19e11922f53e408e630588a013bb1 100644
GIT binary patch
Signature · 1 line
1.7.1