867c1e
Name:           seabios
60a3a4
Version:        1.9.1
60a3a4
Release:        5%{?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
60a3a4
Source0:        http://code.coreboot.org/p/seabios/downloads/get/%{name}-%{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
60a3a4
Source17:       config.vga.virtio
60a3a4
60a3a4
60a3a4
Patch0002: 0002-allow-1TB-of-RAM.patch
60a3a4
Patch0003: 0003-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch
60a3a4
Patch0004: 0004-Workaround-for-a-win8.1-32-S4-resume-bug.patch
60a3a4
# For bz#1185721 - win7 guest (boot with q35) show dark screen after do S3
60a3a4
Patch5: seabios-fw-pci-add-Q35-S3-support.patch
60a3a4
# For bz#1327060 - [Seabios]Limited boot number supported for SCSI/SATA
60a3a4
Patch6: seabios-redhat-reserve-more-memory-on-fseg.patch
60a3a4
# For bz#1373154 - Guest fails boot up with ivshmem-plain and virtio-pci device
60a3a4
Patch7: seabios-pci-don-t-map-virtio-1.0-storage-devices-above-4G.patch
867c1e
BuildRequires: python iasl
51d367
ExclusiveArch: x86_64 %{power64}
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
51d367
BuildArch: noarch
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
51d367
BuildArch: noarch
51d367
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
51d367
51d367
%patch0002 -p1
51d367
%patch0003 -p1
60a3a4
%patch0004 -p1
867c1e
%patch5 -p1
867c1e
%patch6 -p1
e752ca
%patch7 -p1
867c1e
867c1e
# Store version to be used
867c1e
867c1e
%build
51d367
%ifarch x86_64
867c1e
export CFLAGS="$RPM_OPT_FLAGS"
867c1e
mkdir binaries
867c1e
51d367
build_bios() {
51d367
    make clean distclean
51d367
    cp $1 .config
51d367
    echo "CONFIG_DEBUG_LEVEL=%{debug_level}" >> .config
60a3a4
    make oldnoconfig V=1 EXTRAVERSION="-%release"
51d367
60a3a4
    make V=1 $4 EXTRAVERSION="-%release"
51d367
51d367
    cp out/$2 binaries/$3
51d367
}
51d367
60a3a4
6a2d3c
# seabios 128k
51d367
build_bios %{SOURCE15} bios.bin bios.bin
867c1e
6a2d3c
# seabios 256k
51d367
build_bios %{SOURCE16} bios.bin bios-256k.bin
6a2d3c
867c1e
# seavgabios
60a3a4
for config in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE17}; do
867c1e
	name=${config#*config.vga.}
51d367
    build_bios ${config} vgabios.bin vgabios-${name}.bin out/vgabios.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
60a3a4
%doc COPYING COPYING.LESSER README
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
51d367
%endif
867c1e
867c1e
%changelog
60a3a4
* Thu Sep 15 2016 Miroslav Rezanina <mrezanin@redhat.com> - 1.9.1-5.el7
60a3a4
- seabios-pci-don-t-map-virtio-1.0-storage-devices-above-4G.patch [bz#1373154]
60a3a4
- Resolves: bz#1373154
60a3a4
  (Guest fails boot up with ivshmem-plain and virtio-pci device)
60a3a4
60a3a4
* Wed May 11 2016 Miroslav Rezanina <mrezanin@redhat.com> - 1.9.1-4.el7
60a3a4
- seabios-Build-vgabios-virtio.bin.patch [bz#1327001]
60a3a4
- Resolves: bz#1327001
60a3a4
  (vgabios-virtio.bin should be included  in seavgabios-bin package)
60a3a4
60a3a4
* Tue Apr 26 2016 Miroslav Rezanina <mrezanin@redhat.com> - 1.9.1-3.el7
60a3a4
- seabios-redhat-reserve-more-memory-on-fseg.patch [bz#1327060]
60a3a4
- seabios-redhat-turn-off-some-config-options.patch [bz#1327060]
60a3a4
- Resolves: bz#1327060
60a3a4
  ([Seabios]Limited boot number supported for SCSI/SATA)
60a3a4
60a3a4
* Wed Apr 06 2016 Miroslav Rezanina <mrezanin@redhat.com> - 1.9.1-2.el7
60a3a4
- seabios-fw-pci-add-Q35-S3-support.patch [bz#1185721]
60a3a4
- Resolves: bz#1185721
60a3a4
  (win7 guest (boot with q35) show dark screen after do S3)
60a3a4
60a3a4
* Tue Feb 16 2016 Miroslav Rezanina <mrezanin@redhat.com> - 1.9.1-1.el7
60a3a4
- Rebase to 1.9.1 [bz#1257052]
60a3a4
- Resolves: bz#1257052
60a3a4
  (rebase seabios to 1.9)
60a3a4
e752ca
* Wed Jul 15 2015 Yash Mankad <ymankad@redhat.com> - 1.7.5-11.el7
e752ca
- seabios-bootorder-Update-extra-pci-root-buses-bootorder-form.patch [bz#1242968]
e752ca
- Resolves: bz#1242968
e752ca
  (pci: support booting of devices behind PXB)
e752ca
e752ca
* Tue Jul 07 2015 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.5-10.el7
e752ca
- seabios-fw-pci-scan-all-buses-if-extraroots-romfile-is-prese.patch [bz#1235381]
e752ca
- seabios-fw-pci-map-memory-and-IO-regions-for-multiple-pci-ro.patch [bz#1235381]
e752ca
- Resolves: bz#1235381
e752ca
  (RFE: configure guest NUMA node locality for guest PCI devices)
e752ca
e752ca
* Thu Apr 23 2015 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.5-9.el7_1
e752ca
- seabios-boot.c-delay-exiting-boot-if-menu-key-is-ESC.patch [bz#841638]
e752ca
- seabios-boot-switch-default-menu-key-to-ESC.patch [bz#841638]
e752ca
- Resolves: bz#841638
e752ca
  (Provide a platform agnostic approach to invoking the BIOS, boot menu, or other BIOS functions)
e752ca
51d367
* Tue Jan 20 2015 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.5-8.el7
51d367
- seabios-turn-off-stack-switching-for-vgabios.patch [bz#1182634]
51d367
- Resolves: bz#1182634
51d367
  (Remove CONFIG_VGA_ALLOCATE_EXTRA_STACK)
51d367
51d367
* Thu Nov 20 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.5-6.el7
51d367
- seabios-Extend-ExclusiveArch-to-power64-architectures.patch [bz#1163924]
51d367
- Resolves: bz#1163924
51d367
  (seabios is needed for ppc64 and ppc64le but marked ExclusiveArch aarch64)
51d367
51d367
* Tue Aug 26 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.5-5.el7
6a2d3c
- seabios-Workaround-for-a-win8.1-32-S4-resume-bug.patch [bz#1050775]
51d367
- seabios-boot-Fix-boot-order-for-SCSI-target-lun-9.patch [bz#1096560]
51d367
- Resolves: bz#1096560
51d367
  (fail to assign correct order for the boot device in seabios as we specified the bootindex in qemu-kvm cli(under the same virtio-scsi-pci))
51d367
60a3a4
* Wed Aug 13 2014  Miroslav Rezanina <mrezanin@redhat.com> - 1.7.5-4.el7
51d367
- seabios-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch [bz#1123299]
51d367
- Resolves: bz#1123299
51d367
  (smbios table 0 vendor string should be Seabios (for rhel6 compatibility) [7.1+7.0.z])
51d367
51d367
* Sat Aug 02 2014 Miroslav Rezanina <mrezanin@redhat.com> - 1.7.5-2.el7
51d367
- seabios-Build-seabios-as-noarch.patch [bz#1118380]
51d367
- Resolves: bz#1118380
51d367
  (Seabios build required for ppc64)
51d367
51d367
* Wed May 28 2014 Gerd Hoffmann <kraxel@redhat.com> - 1.7.5-1.el7
51d367
- rebase to seabios 1.7.5
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