qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/3] Add seavgabios build rules to roms/Makefile


From: Michael Tokarev
Subject: Re: [Qemu-devel] [PATCH 1/3] Add seavgabios build rules to roms/Makefile
Date: Tue, 17 Apr 2012 15:38:25 +0400
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:10.0.3) Gecko/20120329 Icedove/10.0.3

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

[Prev in Thread] Current Thread [Next in Thread]