patch vga bios to support additional widescreen modes (1600x1000, 1600x900). it looks...
authorPaweł Sikora <pawel.sikora@agmk.net>
Sun, 23 Sep 2012 17:42:17 +0000 (19:42 +0200)
committerPaweł Sikora <pawel.sikora@agmk.net>
Sun, 23 Sep 2012 17:42:17 +0000 (19:42 +0200)
qemu.spec
vgabios-widescreens.patch [new file with mode: 0644]

index 7c3e124e95ea645fe69cdd6584ec6d154b93e562..2181bec5e4ee77ca2f3264d3daa30364aabe4868 100644 (file)
--- a/qemu.spec
+++ b/qemu.spec
@@ -22,6 +22,7 @@ Group:                Applications/Emulators
 Source0:       http://wiki.qemu.org/download/%{name}-%{version}.tar.bz2
 # Source0-md5: 78eb1e984f4532aa9f2bdd3c127b5b61
 Patch0:                %{name}-cflags.patch
+Patch1:                vgabios-widescreens.patch
 Patch6:                %{name}-nosdlgui.patch
 # Proof of concept, for reference, do not remove
 Patch8:                %{name}-kde_virtual_workspaces_hack.patch
@@ -273,6 +274,7 @@ This package provides the system emulator for xtensa.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 %{?with_nosdlgui:%patch6 -p1}
 #patch8 -p1
 %patch17 -p0
@@ -294,6 +296,9 @@ ln -s ../error.h qapi/error.h
        --interp-prefix=%{_libdir}/%{name}
 %{__make} V=1
 
+# rebuild patched vesa tables with additional widescreen modes.
+%{__make} -C roms/vgabios stdvga-bios
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -309,6 +314,9 @@ EOF
 # already packaged
 rm -rf $RPM_BUILD_ROOT%{_docdir}/qemu/qemu-{doc,tech}.html
 
+# install patched vesa tables with additional widescreen modes.
+install -m 644 roms/vgabios/VGABIOS-lgpl-latest.stdvga.bin $RPM_BUILD_ROOT%{_datadir}/%{name}/vgabios-stdvga.bin
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
diff --git a/vgabios-widescreens.patch b/vgabios-widescreens.patch
new file mode 100644 (file)
index 0000000..19541a1
--- /dev/null
@@ -0,0 +1,11 @@
+--- qemu-1.1.0/roms/vgabios/vbetables-gen.c.orig       2012-06-05 11:08:17.000000000 +0200
++++ qemu-1.1.0/roms/vgabios/vbetables-gen.c    2012-09-23 17:17:34.709685781 +0200
+@@ -76,6 +76,8 @@
+ { 2560, 1600, 16                     , 0x18a},
+ { 2560, 1600, 24                     , 0x18b},
+ { 2560, 1600, 32                     , 0x18c},
++{ 1600,  900, 24                     , 0x18d},
++{ 1600, 1000, 24                     , 0x18e},
+ { 0, },
+ };
This page took 0.050963 seconds and 4 git commands to generate.