867c1e
Name:           seabios
867c1e
Version:        1.7.2.2
6a2d3c
Release:        12%{?dist}
867c1e
Summary:        Open-source legacy BIOS implementation
867c1e
867c1e
Group:          Applications/Emulators
867c1e
License:        LGPLv3
867c1e
URL:            http://www.coreboot.org/SeaBIOS
867c1e
867c1e
867c1e
# No source releases of seabios stable. To generate:
867c1e
# git clone git://git.seabios.org/seabios.git && cd seabios
867c1e
# git archive --output seabios-1.7.2.2.tar.gz --prefix seabios-1.7.2.2/ rel-1.7.2.2
867c1e
#Source0:        http://code.coreboot.org/p/seabios/downloads/get/%{name}-%{version}.tar.gz
867c1e
Source0: seabios-%{version}.tar.gz
867c1e
867c1e
Source10:       config.vga.cirrus
867c1e
Source11:       config.vga.isavga
867c1e
Source12:       config.vga.qxl
867c1e
Source13:       config.vga.stdvga
867c1e
Source14:       config.vga.vmware
867c1e
Source15:       config.base
6a2d3c
Source16:       config.base-256k
867c1e
867c1e
# Add pvpanic device driver (rhbz 967777)
867c1e
Patch1: Add-pvpanic-device-driver.patch
867c1e
# For bz#920140 - qemu-kvm emulation of 2.88M floppy fails
867c1e
Patch2: seabios-floppy-Introduce-struct-floppy_pio_s-for-floppy-PIO-.patch
867c1e
# For bz#920140 - qemu-kvm emulation of 2.88M floppy fails
867c1e
Patch3: seabios-floppy-Cleanup-floppy-irq-wait-handling.patch
867c1e
# For bz#920140 - qemu-kvm emulation of 2.88M floppy fails
867c1e
Patch4: seabios-floppy-Implement-media-format-sensing.patch
867c1e
# For bz#894979 - place rpm version info into version banner
867c1e
Patch5: seabios-Place-rpm-version-info-into-version-banner.patch
867c1e
# For bz#1005747 - fail to boot rhel7 guest with >126(21 ahci controller) ahci disks
867c1e
Patch6: seabios-ahci-add-missing-check-for-allocation-failure.patch
867c1e
# For bz#947051 - [RFE] implement xhci support in seabios
867c1e
Patch7: seabios-Introduce-and-convert-pmm-code-to-use-standard-list-.patch
867c1e
# For bz#947051 - [RFE] implement xhci support in seabios
867c1e
Patch8: seabios-Fix-error-in-hlist_for_each_entry_safe-macro.patch
867c1e
# For bz#947051 - [RFE] implement xhci support in seabios
867c1e
Patch9: seabios-Another-fix-for-hlist_for_each_entry_safe.patch
867c1e
# For bz#947051 - [RFE] implement xhci support in seabios
867c1e
Patch10: seabios-uas-add-temporary-superspeed-stopgap.patch
867c1e
# For bz#947051 - [RFE] implement xhci support in seabios
867c1e
Patch11: seabios-usb-add-usb_update_pipe.patch
867c1e
# For bz#947051 - [RFE] implement xhci support in seabios
867c1e
Patch12: seabios-usb-add-xhci-support.patch
867c1e
# For bz#947051 - [RFE] implement xhci support in seabios
867c1e
Patch13: seabios-xhci-adaptions-for-old-rhel7-seabios-codebase.patch
867c1e
# For bz#1016974 - [HP 7.0 FEAT]: Increase KVM guest supported memory to 4TiB
867c1e
Patch14: seabios-allow-1TB-of-RAM.patch
6a2d3c
# For bz#1038604 - make seabios 256k for rhel7 machine types
6a2d3c
Patch15: seabios-build-explicitly-set-ROM-size.patch
6a2d3c
# For bz#1034877 - export acpi tables to guests (seabios)
6a2d3c
Patch16: seabios-biostables-support-looking-up-RSDP.patch
6a2d3c
# For bz#1034877 - export acpi tables to guests (seabios)
6a2d3c
Patch17: seabios-romfile_loader-utility-to-patch-in-memory-ROM-files.patch
6a2d3c
# For bz#1034877 - export acpi tables to guests (seabios)
6a2d3c
Patch18: seabios-acpi-load-and-link-tables-through-romfile-loader.patch
6a2d3c
# For bz#979898 - [qemu-kvm]The win2k3-32 guest display is abnormal when using -vga cirrus
6a2d3c
Patch19: seabios-vgabios-Fix-cirrus-memory-clear-on-mode-switch.patch
6a2d3c
# For bz#1013418 - qemu-kvm with a virtio-scsi controler without devices attached quits after stop/cont in HMP/QMP
6a2d3c
Patch20: seabios-init_virtio_scsi-reset-the-HBA-before-freeing-its-vi.patch
6a2d3c
# For bz#1052837 - The wrong DMI structures could not be decoded while booting vm with -smbios params
6a2d3c
Patch21: seabios-smbios-catch-zero-length-strings.patch
6a2d3c
# For bz#1049860 - Guest agent command hang there after restore the guest from the save file
6a2d3c
Patch22: seabios-resume-restore-piix-pm-config-registers-after-resume.patch
6a2d3c
# For bz#1055832 - can not see seabios GUI when boot with 155 virtio-blk-pci disks via pci-bridge
6a2d3c
Patch23: seabios-pci-align-64bit-pci-regions-to-1G.patch
6a2d3c
# For bz#1055832 - can not see seabios GUI when boot with 155 virtio-blk-pci disks via pci-bridge
6a2d3c
Patch24: seabios-pci-log-pci-windows.patch
6a2d3c
# For bz#1055832 - can not see seabios GUI when boot with 155 virtio-blk-pci disks via pci-bridge
6a2d3c
Patch25: seabios-pci-improve-io-address-space-allocation.patch
6a2d3c
# For bz#1050775 - [whql]KVM internal error. Suberror: 1 when win8.1-32 guest run HCK jobs
6a2d3c
Patch26: seabios-Workaround-for-a-win8.1-32-S4-resume-bug.patch
867c1e
867c1e
BuildRequires: python iasl
867c1e
ExclusiveArch: x86_64
867c1e
867c1e
Requires: %{name}-bin = %{version}-%{release}
867c1e
Requires: seavgabios-bin = %{version}-%{release}
867c1e
867c1e
# Seabios is noarch, but required on architectures which cannot build it.
867c1e
# Disable debuginfo because it is of no use to us.
867c1e
%global debug_package %{nil}
867c1e
867c1e
# You can build a debugging version of the BIOS by setting this to a
867c1e
# value > 1.  See src/config.h for possible values, but setting it to
867c1e
# a number like 99 will enable all possible debugging.  Note that
867c1e
# debugging goes to a special qemu port that you have to enable.  See
867c1e
# the SeaBIOS top-level README file for the magic qemu invocation to
867c1e
# enable this.
867c1e
%global debug_level 1
867c1e
867c1e
867c1e
%description
867c1e
SeaBIOS is an open-source legacy BIOS implementation which can be used as
867c1e
a coreboot payload. It implements the standard BIOS calling interfaces
867c1e
that a typical x86 proprietary BIOS implements.
867c1e
867c1e
867c1e
%package bin
867c1e
Summary: Seabios for x86
867c1e
867c1e
%description bin
867c1e
SeaBIOS is an open-source legacy BIOS implementation which can be used as
867c1e
a coreboot payload. It implements the standard BIOS calling interfaces
867c1e
that a typical x86 proprietary BIOS implements.
867c1e
867c1e
867c1e
%package -n seavgabios-bin
867c1e
Summary: Seavgabios for x86
6a2d3c
Obsoletes: vgabios < 0.6c-10
6a2d3c
Provides: vgabios = 0.6c-10
867c1e
867c1e
867c1e
%description -n seavgabios-bin
867c1e
SeaVGABIOS is an open-source VGABIOS implementation.
867c1e
867c1e
867c1e
%prep
867c1e
%setup -q
867c1e
%patch1 -p1
867c1e
%patch2 -p1
867c1e
%patch3 -p1
867c1e
%patch4 -p1
867c1e
%patch5 -p1
867c1e
%patch6 -p1
867c1e
%patch7 -p1
867c1e
%patch8 -p1
867c1e
%patch9 -p1
867c1e
%patch10 -p1
867c1e
%patch11 -p1
867c1e
%patch12 -p1
867c1e
%patch13 -p1
867c1e
%patch14 -p1
6a2d3c
%patch15 -p1
6a2d3c
%patch16 -p1
6a2d3c
%patch17 -p1
6a2d3c
%patch18 -p1
6a2d3c
%patch19 -p1
6a2d3c
%patch20 -p1
6a2d3c
%patch21 -p1
6a2d3c
%patch22 -p1
6a2d3c
%patch23 -p1
6a2d3c
%patch24 -p1
6a2d3c
%patch25 -p1
6a2d3c
%patch26 -p1
867c1e
867c1e
# Store version to be used
867c1e
echo "%{name}-%{version}-%release" > .version
867c1e
867c1e
%build
867c1e
export CFLAGS="$RPM_OPT_FLAGS"
867c1e
mkdir binaries
867c1e
6a2d3c
# seabios 128k
6a2d3c
cp %{SOURCE15} .config
6a2d3c
make oldnoconfig V=1
6a2d3c
sed -i 's,CONFIG_DEBUG_LEVEL=.*,CONFIG_DEBUG_LEVEL=%{debug_level},g' .config
867c1e
make
867c1e
cp out/bios.bin binaries
867c1e
6a2d3c
# seabios 256k
6a2d3c
cp %{SOURCE16} .config
6a2d3c
make oldnoconfig V=1
6a2d3c
sed -i 's,CONFIG_DEBUG_LEVEL=.*,CONFIG_DEBUG_LEVEL=%{debug_level},g' .config
6a2d3c
make
6a2d3c
cp out/bios.bin binaries/bios-256k.bin
6a2d3c
867c1e
# seavgabios
867c1e
for config in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14}; do
867c1e
	name=${config#*config.vga.}
867c1e
	make clean distclean
867c1e
	cp ${config} .config
867c1e
	echo "CONFIG_DEBUG_LEVEL=%{debug_level}" >> .config
867c1e
	make oldnoconfig
867c1e
	make
867c1e
	cp out/vgabios.bin binaries/vgabios-${name}.bin
867c1e
done
867c1e
867c1e
867c1e
%install
867c1e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
867c1e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seavgabios
6a2d3c
install -m 0644 binaries/bios*.bin $RPM_BUILD_ROOT%{_datadir}/seabios
867c1e
install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios
867c1e
867c1e
867c1e
%files
867c1e
%doc COPYING COPYING.LESSER README TODO
867c1e
867c1e
867c1e
%files bin
867c1e
%dir %{_datadir}/seabios/
6a2d3c
%{_datadir}/seabios/bios*.bin
867c1e
867c1e
%files -n seavgabios-bin
867c1e
%dir %{_datadir}/seavgabios/
867c1e
%{_datadir}/seavgabios/vgabios*.bin
867c1e
867c1e
867c1e
%changelog
6a2d3c
* Tue Mar 11 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.2.2-12.el7
6a2d3c
- seabios-Workaround-for-a-win8.1-32-S4-resume-bug.patch [bz#1050775]
6a2d3c
- Resolves: bz#1050775
6a2d3c
  ([whql]KVM internal error. Suberror: 1 when win8.1-32 guest run HCK jobs)
6a2d3c
6a2d3c
* Wed Feb 05 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.2.2-11.el7
6a2d3c
- seabios-init_virtio_scsi-reset-the-HBA-before-freeing-its-vi.patch [bz#1013418]
6a2d3c
- seabios-smbios-catch-zero-length-strings.patch [bz#1052837]
6a2d3c
- seabios-resume-restore-piix-pm-config-registers-after-resume.patch [bz#1049860]
6a2d3c
- seabios-pci-align-64bit-pci-regions-to-1G.patch [bz#1055832]
6a2d3c
- seabios-pci-log-pci-windows.patch [bz#1055832]
6a2d3c
- seabios-pci-improve-io-address-space-allocation.patch [bz#1055832]
6a2d3c
- Resolves: bz#1013418
6a2d3c
  (qemu-kvm with a virtio-scsi controler without devices attached quits after stop/cont in HMP/QMP)
6a2d3c
- Resolves: bz#1049860
6a2d3c
  (Guest agent command hang there after restore the guest from the save file)
6a2d3c
- Resolves: bz#1052837
6a2d3c
  (The wrong DMI structures could not be decoded while booting vm with -smbios params)
6a2d3c
- Resolves: bz#1055832
6a2d3c
  (can not see seabios GUI when boot with 155 virtio-blk-pci disks via pci-bridge)
6a2d3c
6a2d3c
* Mon Jan 13 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.2.2-10.el7
6a2d3c
- Fixed seavgabios-bin obsoletes/provides [bz#1035452]
6a2d3c
- Resolves: bz#1035452
6a2d3c
  ( seavgabios-bin has bad obsoletes/provides for "vgabios")
6a2d3c
6a2d3c
* Mon Jan 13 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.2.2-8.el7
6a2d3c
- seabios-vgabios-Fix-cirrus-memory-clear-on-mode-switch.patch [bz#979898]
6a2d3c
- Resolves: bz#979898
6a2d3c
  ([qemu-kvm]The win2k3-32 guest display is abnormal when using -vga cirrus)
6a2d3c
6a2d3c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.7.2.2-7
6a2d3c
- Mass rebuild 2013-12-27
6a2d3c
6a2d3c
* Tue Dec 17 2013 Michal Novotny <minovotn@redhat.com> - seabios-1.7.2.2-6.el7
6a2d3c
- seabios-biostables-support-looking-up-RSDP.patch [bz#1034877]
6a2d3c
- seabios-romfile_loader-utility-to-patch-in-memory-ROM-files.patch [bz#1034877]
6a2d3c
- seabios-acpi-load-and-link-tables-through-romfile-loader.patch [bz#1034877]
6a2d3c
- Resolves: bz#1034877
6a2d3c
  (export acpi tables to guests (seabios))
6a2d3c
6a2d3c
* Tue Dec 10 2013 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.2.2-5.el7
6a2d3c
- seabios-build-explicitly-set-ROM-size.patch [bz#1038604]
6a2d3c
- Resolves: bz#1038604
6a2d3c
  (make seabios 256k for rhel7 machine types)
6a2d3c
867c1e
* Tue Nov 05 2013 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.2.2-4.el7
867c1e
- seabios-Introduce-and-convert-pmm-code-to-use-standard-list-.patch [bz#947051]
867c1e
- seabios-Fix-error-in-hlist_for_each_entry_safe-macro.patch [bz#947051]
867c1e
- seabios-Another-fix-for-hlist_for_each_entry_safe.patch [bz#947051]
867c1e
- seabios-uas-add-temporary-superspeed-stopgap.patch [bz#947051]
867c1e
- seabios-usb-add-usb_update_pipe.patch [bz#947051]
867c1e
- seabios-usb-add-xhci-support.patch [bz#947051]
867c1e
- seabios-xhci-adaptions-for-old-rhel7-seabios-codebase.patch [bz#947051]
867c1e
- seabios-allow-1TB-of-RAM.patch [bz#1016974]
867c1e
- Resolves: bz#1016974
867c1e
  ([HP 7.0 FEAT]: Increase KVM guest supported memory to 4TiB)
867c1e
- Resolves: bz#947051
867c1e
  ([RFE] implement xhci support in seabios)
867c1e
867c1e
* Tue Sep 24 2013 Miroslav Rezanina <mrezanin@redhat.com> - seabios-1.7.2.2-3.el7
867c1e
- seabios-floppy-Introduce-struct-floppy_pio_s-for-floppy-PIO-.patch [bz#920140]
867c1e
- seabios-floppy-Cleanup-floppy-irq-wait-handling.patch [bz#920140]
867c1e
- seabios-floppy-Implement-media-format-sensing.patch [bz#920140]
867c1e
- seabios-Place-rpm-version-info-into-version-banner.patch [bz#894979]
867c1e
- seabios-ahci-add-missing-check-for-allocation-failure.patch [bz#1005747]
867c1e
- Resolves: bz#1005747
867c1e
  (fail to boot rhel7 guest with >126(21 ahci controller) ahci disks)
867c1e
- Resolves: bz#894979
867c1e
  (place rpm version info into version banner)
867c1e
- Resolves: bz#920140
867c1e
  (qemu-kvm emulation of 2.88M floppy fails)
867c1e
867c1e
* Wed Jun 26 2013 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.2.2-2
867c1e
- Disable options not used / not supported by RHEL-7 (rhbz 927582)
867c1e
- Add pvpanic device driver (rhbz 967777)
867c1e
- Obsolete vgabios (rhbz 976340)
867c1e
867c1e
* Tue Jun 04 2013 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.2.2-1
867c1e
- Rebase to 1.7.2.2
867c1e
867c1e
* Tue Dec 18 2012 Michal Novotny <minovotn@redhat.com> - 1.7.1-5
867c1e
- Remove the cross compilation code as we compile it on x86_64 always
867c1e
867c1e
* Thu Dec  6 2012 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.1-4
867c1e
- Root seabios package is noarch too because it only contains docs
867c1e
867c1e
* Fri Oct 19 2012 Cole Robinson <crobinso@redhat.com> - 1.7.1-3
867c1e
- Add seavgabios subpackage
867c1e
867c1e
* Wed Oct 17 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.7.1-2
867c1e
- Build with cross compiler.  Resolves: #866664.
867c1e
867c1e
* Wed Sep 05 2012 Cole Robinson <crobinso@redhat.com> - 1.7.1-1
867c1e
- Rebased to version 1.7.1
867c1e
- Initial support for booting from USB attached scsi (USB UAS) drives
867c1e
- USB EHCI 64bit controller support
867c1e
- USB MSC multi-LUN device support
867c1e
- Support for booting from LSI SCSI controllers on emulators
867c1e
- Support for booting from AMD PCscsi controllers on emulators
867c1e
867c1e
* Mon Aug 13 2012 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-4
867c1e
- Modernise and tidy up the RPM.
867c1e
- Allow debug versions of SeaBIOS to be built easily.
867c1e
867c1e
* Mon Aug 06 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-3
867c1e
- Enable S3/S4 support for guests (it's an F18 feature after all)
867c1e
867c1e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
867c1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
867c1e
867c1e
* Mon May 28 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-1
867c1e
- Rebased to version 1.7.0
867c1e
- Support for virtio-scsi
867c1e
- Improved USB drive support
867c1e
- Several USB controller bug fixes and improvements
867c1e
867c1e
* Wed Mar 28 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.6.3-2
867c1e
- Fix bugs in booting from host (or redirected) USB pen drives
867c1e
867c1e
* Wed Feb 08 2012 Justin M. Forbes <jforbes@redhat.com> - 1.6.3-1
867c1e
- Update to 1.6.3 upstream
867c1e
- Add virtio-scsi
867c1e
867c1e
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
867c1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
867c1e
867c1e
* Wed Oct 05 2011 Justin M. Forbes <jforbes@redhat.com> - 0.6.2-3
867c1e
- Stop advertising S3 and S4 in DSDT (bz#741375)
867c1e
- incdule iasl buildreq
867c1e
867c1e
* Wed Jul 13 2011 Justin M. Forbes <jforbes@redhat.com> - 0.6.2-2
867c1e
- Fix QXL bug in 0.6.2
867c1e
867c1e
* Wed Jul 13 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.2-1
867c1e
- Update to 0.6.2 upstream for a number of bugfixes
867c1e
867c1e
* Mon Feb 14 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.1-1
867c1e
- Update to 0.6.1 upstream for a number of bugfixes
867c1e
867c1e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
867c1e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
867c1e
867c1e
* Tue Aug 10 2010 Justin M. Forbes <jforbes@redhat.com> 0.6.0-1
867c1e
- Update seabios to latest stable so we can drop patches.
867c1e
867c1e
* Tue Apr 20 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-2
867c1e
- Ugly hacks to make package noarch and available for arch that cannot build it.
867c1e
- Disable useless debuginfo
867c1e
867c1e
* Wed Mar 03 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-1
867c1e
- Update to 0.5.1 stable release
867c1e
- Pick up patches required for current qemu
867c1e
867c1e
* Thu Jan 07 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-0.1.20100108git669c991
867c1e
- Created initial package