On 17.04.2012 14:11, Gerd Hoffmann wrote:
> This patch adds some glue to roms/Makefile to build vgabios binaries for
> qemu from the seabios sources.

FWIW, this is a similar change for seabios debian package
I'm preparing currently.

Thanks,

/mjt

diff --git a/debian/rules b/debian/rules
index 634aab0..07be0dd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,9 @@
 DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

-BUILD_TARGETS = bios.bin build-optionrom-stamp
+VGABIOSES = cirrus stdvga vmware qxl
+VGABIOS_TARGETS = $(addprefix vgabios-, $(addsuffix .bin, $(VGABIOSES)))
+BUILD_TARGETS = bios.bin $(VGABIOS_TARGETS) build-optionrom-stamp

 build build-arch build-indep: $(BUILD_TARGETS)

@@ -25,6 +27,24 @@ build-optionrom-stamp:
        chmod -x optionrom/*.bin
        touch $@

+define build-vgabios
+rm -rf out/
+rm -f .config
+for x in BUILD_VGABIOS=y $1; do echo CONFIG_$$x; done > .config
+make oldnoconfig
+make out/vgabios.bin
+mv out/vgabios.bin $@
+endef
+
+vgabios-cirrus.bin:
+       $(call build-vgabios,VGA_CIRRUS=y VGA_PCI=y)
+vgabios-stdvga.bin:
+       $(call build-vgabios,VGA_BOCHS=y VGA_PCI=y)
+vgabios-vmware.bin:
+       $(call build-vgabios,VGA_BOCHS=y VGA_PCI=y OVERRIDE_PCI_ID=y 
VGA_VID=0x15ad VGA_DID=0x0405)
+vgabios-qxl.bin:
+       $(call build-vgabios,VGA_BOCHS=y VGA_PCI=y OVERRIDE_PCI_ID=y 
VGA_VID=0x1b36 VGA_DID=0x0100)
+
 clean:
        dh_testdir
        rm -f $(BUILD_TARGETS)


Reply via email to