8073c5
Name:           seabios
686d41
Version:        1.16.0
7fc37f
Release:        1%{?dist}
8073c5
Summary:        Open-source legacy BIOS implementation
8073c5
8073c5
Group:          Applications/Emulators
8073c5
License:        LGPLv3
8073c5
URL:            https://www.coreboot.org/SeaBIOS
8073c5
686d41
Source0:        https://code.coreboot.org/p/seabios/downloads/get/seabios-1.16.0.tar.gz
8073c5
8073c5
Source10:       config.vga.cirrus
8073c5
Source11:       config.vga.qxl
8073c5
Source12:       config.vga.stdvga
8073c5
Source13:       config.vga.virtio
8073c5
Source14:       config.vga.ramfb
8073c5
Source15:       config.vga.bochs-display
8073c5
8073c5
Source20:       config.seabios-128k
8073c5
Source21:       config.seabios-256k
8073c5
8073c5
Patch0002: 0002-allow-1TB-of-RAM.patch
8073c5
Patch0003: 0003-smbios-set-bios-vendor-version-fields-to-Seabios-0.5.patch
8073c5
Patch0004: 0004-Workaround-for-a-win8.1-32-S4-resume-bug.patch
8073c5
8073c5
BuildRequires: python3 iasl
8073c5
ExclusiveArch: x86_64 %{power64}
8073c5
8073c5
Requires: %{name}-bin = %{version}-%{release}
8073c5
Requires: seavgabios-bin = %{version}-%{release}
8073c5
8073c5
# Seabios is noarch, but required on architectures which cannot build it.
8073c5
# Disable debuginfo because it is of no use to us.
8073c5
%global debug_package %{nil}
8073c5
8073c5
# Similarly, tell RPM to not complain about x86 roms being shipped noarch
8073c5
%global _binaries_in_noarch_packages_terminate_build   0
8073c5
8073c5
# You can build a debugging version of the BIOS by setting this to a
8073c5
# value > 1.  See src/config.h for possible values, but setting it to
8073c5
# a number like 99 will enable all possible debugging.  Note that
8073c5
# debugging goes to a special qemu port that you have to enable.  See
8073c5
# the SeaBIOS top-level README file for the magic qemu invocation to
8073c5
# enable this.
8073c5
%global debug_level 1
8073c5
8073c5
8073c5
%description
8073c5
SeaBIOS is an open-source legacy BIOS implementation which can be used as
8073c5
a coreboot payload. It implements the standard BIOS calling interfaces
8073c5
that a typical x86 proprietary BIOS implements.
8073c5
8073c5
8073c5
%package bin
8073c5
Summary: Seabios for x86
8073c5
Buildarch: noarch
8073c5
8073c5
8073c5
%description bin
8073c5
SeaBIOS is an open-source legacy BIOS implementation which can be used as
8073c5
a coreboot payload. It implements the standard BIOS calling interfaces
8073c5
that a typical x86 proprietary BIOS implements.
8073c5
8073c5
8073c5
%package -n seavgabios-bin
8073c5
Summary: Seavgabios for x86
8073c5
Buildarch: noarch
8073c5
Obsoletes: vgabios < 0.6c-10
8073c5
8073c5
%description -n seavgabios-bin
8073c5
SeaVGABIOS is an open-source VGABIOS implementation.
8073c5
8073c5
8073c5
%prep
8073c5
%setup -q
8073c5
%patch0002 -p1
8073c5
%patch0003 -p1
8073c5
%patch0004 -p1
8073c5
8073c5
%build
8073c5
%ifarch x86_64
8073c5
export CFLAGS="$RPM_OPT_FLAGS"
8073c5
mkdir binaries
8073c5
8073c5
build_bios() {
8073c5
    make PYTHON=%{__python3} clean distclean
8073c5
    cp $1 .config
8073c5
    echo "CONFIG_DEBUG_LEVEL=%{debug_level}" >> .config
8073c5
    make PYTHON=%{__python3} oldnoconfig V=1 EXTRAVERSION="-%release"
8073c5
8073c5
    make PYTHON=%{__python3} \
8073c5
        V=1 \
8073c5
        $4 \
8073c5
        EXTRAVERSION="-%{release}" \
8073c5
8073c5
    cp out/$2 binaries/$3
8073c5
}
8073c5
8073c5
# seabios
8073c5
build_bios %{_sourcedir}/config.seabios-128k bios.bin bios.bin
8073c5
build_bios %{_sourcedir}/config.seabios-256k bios.bin bios-256k.bin
8073c5
8073c5
8073c5
# seavgabios
8073c5
%global vgaconfigs cirrus qxl stdvga virtio ramfb bochs-display
8073c5
for config in %{vgaconfigs}; do
8073c5
    build_bios %{_sourcedir}/config.vga.${config} \
8073c5
               vgabios.bin vgabios-${config}.bin out/vgabios.bin
8073c5
done
8073c5
8073c5
8073c5
%install
8073c5
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
8073c5
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seavgabios
8073c5
install -m 0644 binaries/bios.bin $RPM_BUILD_ROOT%{_datadir}/seabios/bios.bin
8073c5
install -m 0644 binaries/bios-256k.bin $RPM_BUILD_ROOT%{_datadir}/seabios/bios-256k.bin
8073c5
install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios
8073c5
8073c5
8073c5
%files
8073c5
%doc COPYING COPYING.LESSER README
8073c5
8073c5
8073c5
%files bin
8073c5
%dir %{_datadir}/seabios/
8073c5
%{_datadir}/seabios/bios*.bin
8073c5
8073c5
%files -n seavgabios-bin
8073c5
%dir %{_datadir}/seavgabios/
8073c5
%{_datadir}/seavgabios/vgabios*.bin
8073c5
8073c5
# endif for %ifarch x86_64 {power64}
8073c5
%endif
8073c5
8073c5
8073c5
%changelog
686d41
* Tue Apr 26 2022 Paweł Poławski <ppolawsk@redhat.com> - 1.16.0-1
686d41
- Rebase to upstream 1.16 tag [bz#2066828]
686d41
- Resolves: bz#2066828
686d41
  (rebase seabios to 1.16 release)
686d41
e6974a
* Thu Dec 16 2021 Jon Maloy <jmaloy@redhat.com> - 1.15.0-1.el8
e6974a
- Rebase to 1.15 (bz#2018392)
e6974a
- Resolves: bz#2018392
e6974a
e6974a
* Thu Dec 16 2021 Jon Maloy <jmaloy@redhat.com> - 1.15.0-1.el8
e6974a
- pci-reserve-resources-for-pcie-pci-bridge-to-fix-reg.patch [bz#2001921]
e6974a
- pci: let firmware reserve IO for pcie-pci-bridge.patch [bz#2001921]
e6974a
- Resolves: bz#2001921
e6974a
e6974a
* Tue Aug 11 2020 Miroslav Rezanina <mrezanin@redhat.com> - 1.14.0-1.el8
e6974a
- Rebase to 1.14 (bz#1809772)
e6974a
- Resolves: bz#1809772
e6974a
  (rebase seabios for RHEL AV-8.3.0)
e6974a
e6974a
* Tue Jan 21 2020 Miroslav Rezanina <mrezanin@redhat.com> - 1.13.0-1.el8
e6974a
- Rebase to 1.13 (bz#1793377)
e6974a
- Resolves: bz#1793377
e6974a
  (rebase seabios to 1.13)
e6974a
e6974a
* Tue Aug 20 2019 Danilo Cesar Lemes de Paula <ddepaula@redhat.com> - 1.12.0-5.el8
e6974a
- seabios-add-get_keystroke_full-helper.patch [bz#1693031]
e6974a
- seabios-bootmenu-add-support-for-more-than-9-entries.patch [bz#1693031]
e6974a
- Resolves: bz#1693031
e6974a
  (On systems with more than 10 available boot devices, keys are uninintuitive)
e6974a
e6974a
* Fri Aug 02 2019 Danilo Cesar Lemes de Paula <ddepaula@redhat.com> - 1.12.0-4.el8
e6974a
- seabios-tpm-Check-for-TPM-related-ACPI-tables-before-attempt.patch [bz#1705212]
e6974a
- seabios-usb-ehci-Clear-pipe-token-on-pipe-reallocate.patch [bz#1705212]
e6974a
- Resolves: bz#1705212
e6974a
  (Backport 1.12.1 patches to RHEL-AV 8.1.0)
e6974a
e6974a
* Tue Jul 09 2019 Miroslav Rezanina <mrezanin@redhat.com> - 1.12.0-3.el8
e6974a
- seabios-rh-add-configs-for-ramfb-and-bochs-display.patch [bz#1724098]
e6974a
- Resolves: bz#1724098
e6974a
  (enable device: bochs-display (seabios))
e6974a
e6974a
* Mon Jan 21 2019 Miroslav Rezanina <mrezanin@redhat.com> - 1.12.0-1.el8
e6974a
- Rebase to 1.12.0 [bz#1666134]
e6974a
- Resolves: bz#1666134
e6974a
  (Rebase seabios for RHEL-AV release in virt:8.0.0 stream)
8073c5
8073c5
* Fri Dec 07 2018 Danilo C. L. de Paula <ddepaula@redhat.com> - 1.11.1-3.el8
8073c5
- Resolves: bz#1613465
8073c5
  (Fix seabios package)
8073c5
8073c5
* Fri Aug 24 2018 Danilo C. L. de Paula <ddepaula@redhat.com> - 1.11.1-2.el8
8073c5
- Resolves: bz#1607349
8073c5
  (Serial Graphics Adapter show error seabios version)
8073c5
8073c5
* Thu Jul 12 2018 Danilo C. L. de Paula <ddepaula@redhat.com> - 1.11.1-1.el8
8073c5
- Rebasing seabios 1.11.1
8073c5
8073c5
* Mon May 21 2018 Danilo C. L. de Paula <ddepaula@redhat.com> - 1.11.0-2.el8
8073c5
- Syncronizing exploded tree with dist-git
8073c5
8073c5
* Mon Nov 20 2017 Danilo C. L. de Paula <ddepaula@redhat.com> - 1.11.0-1.el8
8073c5
- Creating RHEL-8.0 initial branch based on 1.11.0
8073c5
- Resolves: bz#1515300
8073c5
- (Prepare seabios for RHEL-8.0)
8073c5
8073c5
* Fri Nov 17 2017 Paolo Bonzini <pbonzini@redhat.com> - 1.11.0-1
8073c5
- Rebased to version 1.11.0
8073c5
- Add three patches from RHEL
8073c5
8073c5
* Fri Nov 17 2017 Paolo Bonzini <pbonzini@redhat.com> - 1.10.2-3
8073c5
- Disable cross-compilation on RHEL
8073c5
8073c5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2-2
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
8073c5
8073c5
* Wed Mar 15 2017 Cole Robinson <crobinso@redhat.com> - 1.10.2-1
8073c5
- Rebased to version 1.10.2
8073c5
8073c5
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-2
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8073c5
8073c5
* Sun Dec 04 2016 Cole Robinson <crobinso@redhat.com> - 1.10.1-1
8073c5
- Rebased to version 1.10.1
8073c5
8073c5
* Wed Aug 03 2016 Cole Robinson <crobinso@redhat.com> - 1.9.3-1
8073c5
- Rebased to version 1.9.3
8073c5
8073c5
* Thu Mar 24 2016 Paolo Bonzini <pbonzini@redhat.com> - 1.9.1-3
8073c5
- Include MPT Fusion driver, in preparation for QEMU 2.6
8073c5
- Include XHCI and SD in 128k ROM, sacrifice bootsplash instead
8073c5
8073c5
* Thu Mar 17 2016 Cole Robinson <crobinso@redhat.com> - 1.9.1-1
8073c5
- Rebased to version 1.9.1
8073c5
- Fix incorrect UUID format in boot output (bz #1284259)
8073c5
8073c5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8073c5
8073c5
* Tue Nov 17 2015 Cole Robinson <crobinso@redhat.com> 1.9.0-1
8073c5
- Rebased to version 1.9.0
8073c5
8073c5
* Tue Jul 14 2015 Cole Robinson <crobinso@redhat.com> 1.8.2-1
8073c5
- Rebased to version 1.8.2
8073c5
8073c5
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8073c5
8073c5
* Wed Mar 18 2015 Cole Robinson <crobinso@redhat.com> - 1.8.1-1
8073c5
- Rebased to version 1.8.1
8073c5
8073c5
* Sat Feb 21 2015 Cole Robinson <crobinso@redhat.com> - 1.8.0-1
8073c5
- Rebased to version 1.8.0
8073c5
- Initial support for USB3 hubs
8073c5
- Initial support for SD cards (on QEMU only)
8073c5
- Initial support for transitioning to 32bit mode using SMIs (on QEMU TCG
8073c5
  only)
8073c5
- SeaVGABIOS improvements
8073c5
8073c5
* Sat Nov 15 2014 Cole Robinson <crobinso@redhat.com> - 1.7.5.1-1
8073c5
- Update to seabios-1.7.5.1
8073c5
8073c5
* Wed Jul 09 2014 Cole Robinson <crobinso@redhat.com> - 1.7.5-3
8073c5
- Fix PCI-e hotplug (bz #1115598)
8073c5
8073c5
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-2
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8073c5
8073c5
* Sat May 31 2014 Cole Robinson <crobinso@redhat.com> - 1.7.5-1
8073c5
- Rebased to version 1.7.5
8073c5
- Support for obtaining SMBIOS tables directly from QEMU.
8073c5
- XHCI USB controller fixes for real hardware
8073c5
- seavgabios: New driver for "coreboot native vga" support
8073c5
- seavgabios: Improved detection of x86emu versions with incorrect
8073c5
  emulation.
8073c5
- Several bug fixes and code cleanups
8073c5
8073c5
* Wed Mar 26 2014 Matthias Clasen <mclasen@redhat.com> 1.7.4-5
8073c5
- Fix booting FreeBSD VMs in virt-manager
8073c5
8073c5
* Mon Mar 17 2014 Cole Robinson <crobinso@redhat.com> 1.7.4-3
8073c5
- Build 256k bios images for qemu 2.0
8073c5
8073c5
* Thu Mar 13 2014 Cole Robinson <crobinso@redhat.com> - 1.7.4-2
8073c5
- Fix kvm migration with empty virtio-scsi controller (bz #1032208)
8073c5
8073c5
* Mon Jan 06 2014 Cole Robinson <crobinso@redhat.com> - 1.7.4-1
8073c5
- Rebased to version 1.7.4
8073c5
- Support for obtaining ACPI tables directly from QEMU.
8073c5
- Initial support for XHCI USB controllers (initially for QEMU only).
8073c5
- Support for booting from "pvscsi" devices on QEMU.
8073c5
- Enhanced floppy driver - improved support for real hardware.
8073c5
- coreboot cbmem console support.
8073c5
8073c5
* Tue Nov 19 2013 Cole Robinson <crobinso@redhat.com> - 1.7.3.2-1
8073c5
- Update to 1.7.3.2 for qemu 1.7
8073c5
8073c5
* Thu Nov 14 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.3.1-3
8073c5
- Fix pasto in CONFIG_DEBUG_LEVEL.
8073c5
8073c5
* Thu Nov 14 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.3.1-2
8073c5
- Compile as all three of BIOS, CSM and CoreBoot payload.
8073c5
8073c5
* Wed Aug 14 2013 Cole Robinson <crobinso@redhat.com> - 1.7.3.1-1
8073c5
- Rebased to version 1.7.3.1
8073c5
- Fix USB EHCI detection that was broken in hlist conversion of
8073c5
  PCIDevices.
8073c5
- Fix bug in CBFS file walking with compressed files.
8073c5
- acpi: sync FADT flags from PIIX4 to Q35
8073c5
8073c5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-3
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8073c5
8073c5
* Tue Jul 09 2013 Cole Robinson <crobinso@redhat.com> - 1.7.3-2
8073c5
- Install aml files for use by qemu
8073c5
8073c5
* Mon Jul 08 2013 Cole Robinson <crobinso@redhat.com> - 1.7.3-1
8073c5
- Rebased to version 1.7.3
8073c5
- Initial support for using SeaBIOS as a UEFI CSM
8073c5
- Support for detecting and using ACPI reboot ports.
8073c5
- Non-standard floppy sizes now work again with recent QEMU versions.
8073c5
- Several bug fixes and code cleanups
8073c5
- Again fix vgabios obsoletes (bz #981147)
8073c5
8073c5
* Mon May 27 2013 Cole Robinson <crobinso@redhat.com> - 1.7.2.2-1
8073c5
- Update to seabios stable 1.7.2.2
8073c5
- Obsolete vgabios (bz #967315)
8073c5
8073c5
* Thu Jan 24 2013 Cole Robinson <crobinso@redhat.com> - 1.7.2-1
8073c5
- Rebased to version 1.7.2
8073c5
- Support for ICH9 host chipset ("q35") on emulators
8073c5
- Support for booting from LSI MegaRAID SAS controllers
8073c5
- Support for using the ACPI PM timer on emulators
8073c5
- Improved Geode VGA BIOS support.
8073c5
- Several bug fixes
8073c5
8073c5
* Thu Dec  6 2012 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.1-4
8073c5
- Root seabios package is noarch too because it only contains docs
8073c5
8073c5
* Fri Oct 19 2012 Cole Robinson <crobinso@redhat.com> - 1.7.1-3
8073c5
- Add seavgabios subpackage
8073c5
8073c5
* Wed Oct 17 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.7.1-2
8073c5
- Build with cross compiler.  Resolves: #866664.
8073c5
8073c5
* Wed Sep 05 2012 Cole Robinson <crobinso@redhat.com> - 1.7.1-1
8073c5
- Rebased to version 1.7.1
8073c5
- Initial support for booting from USB attached scsi (USB UAS) drives
8073c5
- USB EHCI 64bit controller support
8073c5
- USB MSC multi-LUN device support
8073c5
- Support for booting from LSI SCSI controllers on emulators
8073c5
- Support for booting from AMD PCscsi controllers on emulators
8073c5
8073c5
* Mon Aug 13 2012 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-4
8073c5
- Modernise and tidy up the RPM.
8073c5
- Allow debug versions of SeaBIOS to be built easily.
8073c5
8073c5
* Mon Aug 06 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-3
8073c5
- Enable S3/S4 support for guests (it's an F18 feature after all)
8073c5
8073c5
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8073c5
8073c5
* Mon May 28 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-1
8073c5
- Rebased to version 1.7.0
8073c5
- Support for virtio-scsi
8073c5
- Improved USB drive support
8073c5
- Several USB controller bug fixes and improvements
8073c5
8073c5
* Wed Mar 28 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.6.3-2
8073c5
- Fix bugs in booting from host (or redirected) USB pen drives
8073c5
8073c5
* Wed Feb 08 2012 Justin M. Forbes <jforbes@redhat.com> - 1.6.3-1
8073c5
- Update to 1.6.3 upstream
8073c5
- Add virtio-scsi
8073c5
8073c5
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
8073c5
8073c5
* Wed Oct 05 2011 Justin M. Forbes <jforbes@redhat.com> - 0.6.2-3
8073c5
- Stop advertising S3 and S4 in DSDT (bz#741375)
8073c5
- incdule iasl buildreq
8073c5
8073c5
* Wed Jul 13 2011 Justin M. Forbes <jforbes@redhat.com> - 0.6.2-2
8073c5
- Fix QXL bug in 0.6.2
8073c5
8073c5
* Wed Jul 13 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.2-1
8073c5
- Update to 0.6.2 upstream for a number of bugfixes
8073c5
8073c5
* Mon Feb 14 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.1-1
8073c5
- Update to 0.6.1 upstream for a number of bugfixes
8073c5
8073c5
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
8073c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8073c5
8073c5
* Tue Aug 10 2010 Justin M. Forbes <jforbes@redhat.com> 0.6.0-1
8073c5
- Update seabios to latest stable so we can drop patches.
8073c5
8073c5
* Tue Apr 20 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-2
8073c5
- Ugly hacks to make package noarch and available for arch that cannot build it.
8073c5
- Disable useless debuginfo
8073c5
8073c5
* Wed Mar 03 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-1
8073c5
- Update to 0.5.1 stable release
8073c5
- Pick up patches required for current qemu
8073c5
8073c5
* Thu Jan 07 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-0.1.20100108git669c991
8073c5
- Created initial package