Paolo Bonzini dcde00
%if 0%{?fedora:1}
Paolo Bonzini dcde00
%define cross 1
Paolo Bonzini dcde00
%endif
Paolo Bonzini dcde00
Justin M. Forbes e9236f
Name:           seabios
Paolo Bonzini 44cf4a
Version:        1.11.0
Fedora Release Engineering 40cab2
Release:        2%{?dist}
Justin M. Forbes e9236f
Summary:        Open-source legacy BIOS implementation
Justin M. Forbes e9236f
Justin M. Forbes e9236f
Group:          Applications/Emulators
Justin M. Forbes e9236f
License:        LGPLv3
Justin M. Forbes e9236f
URL:            http://www.coreboot.org/SeaBIOS
eb168d
f413ff
Source0:        http://code.coreboot.org/p/seabios/downloads/get/%{name}-%{version}.tar.gz
Paolo Bonzini 44cf4a
Patch0004:      0004-Workaround-for-a-win8.1-32-S4-resume-bug.patch
Paolo Bonzini 44cf4a
Patch0005:      0005-reserve-more-memory-on-fseg.patch
Paolo Bonzini 44cf4a
Patch0006:      0006-vgabios-Reorder-video-modes-to-work-around-a-Windows.patch
Justin M. Forbes 41145f
b9ad6c
Source10:       config.vga.cirrus
b9ad6c
Source11:       config.vga.isavga
b9ad6c
Source12:       config.vga.qxl
b9ad6c
Source13:       config.vga.stdvga
b9ad6c
Source14:       config.vga.vmware
3bc311
Source15:       config.csm
3bc311
Source16:       config.coreboot
3bc311
Source17:       config.seabios-128k
3bc311
Source18:       config.seabios-256k
461412
Source19:       config.vga.virtio
b9ad6c
Justin M. Forbes 66f709
BuildRequires: python iasl
Paolo Bonzini dcde00
%if 0%{?cross:1}
Paolo Bonzini 1e77d4
BuildRequires: binutils-x86_64-linux-gnu gcc-x86_64-linux-gnu
Paolo Bonzini dcde00
Buildarch:     noarch
Paolo Bonzini dcde00
%else
Paolo Bonzini dcde00
ExclusiveArch: x86_64
Paolo Bonzini dcde00
%endif
Justin M. Forbes e9236f
Justin M. Forbes d6248a
Requires: %{name}-bin = %{version}-%{release}
b9ad6c
Requires: seavgabios-bin = %{version}-%{release}
Justin M. Forbes d6248a
Justin M. Forbes d6248a
# Seabios is noarch, but required on architectures which cannot build it.
Justin M. Forbes d6248a
# Disable debuginfo because it is of no use to us.
Justin M. Forbes d6248a
%global debug_package %{nil}
Justin M. Forbes d6248a
a1a30f
# Similarly, tell RPM to not complain about x86 roms being shipped noarch
a1a30f
%global _binaries_in_noarch_packages_terminate_build   0
a1a30f
9d9aaf
# You can build a debugging version of the BIOS by setting this to a
9d9aaf
# value > 1.  See src/config.h for possible values, but setting it to
9d9aaf
# a number like 99 will enable all possible debugging.  Note that
4e7a4f
# debugging goes to a special qemu port that you have to enable.  See
9d9aaf
# the SeaBIOS top-level README file for the magic qemu invocation to
9d9aaf
# enable this.
9d9aaf
%global debug_level 1
9d9aaf
90f093
Justin M. Forbes e9236f
%description
Justin M. Forbes e9236f
SeaBIOS is an open-source legacy BIOS implementation which can be used as
Justin M. Forbes e9236f
a coreboot payload. It implements the standard BIOS calling interfaces
Justin M. Forbes e9236f
that a typical x86 proprietary BIOS implements.
Justin M. Forbes e9236f
90f093
Justin M. Forbes d6248a
%package bin
Justin M. Forbes d6248a
Summary: Seabios for x86
Justin M. Forbes d6248a
Buildarch: noarch
Justin M. Forbes d6248a
90f093
Justin M. Forbes d6248a
%description bin
Justin M. Forbes d6248a
SeaBIOS is an open-source legacy BIOS implementation which can be used as
Justin M. Forbes d6248a
a coreboot payload. It implements the standard BIOS calling interfaces
Justin M. Forbes d6248a
that a typical x86 proprietary BIOS implements.
Justin M. Forbes e9236f
90f093
b9ad6c
%package -n seavgabios-bin
b9ad6c
Summary: Seavgabios for x86
b9ad6c
Buildarch: noarch
f413ff
Obsoletes: vgabios
b9ad6c
b9ad6c
%description -n seavgabios-bin
b9ad6c
SeaVGABIOS is an open-source VGABIOS implementation.
b9ad6c
b9ad6c
Justin M. Forbes e9236f
%prep
290df1
%setup -q
Paolo Bonzini 44cf4a
%autopatch -p1
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%build
Justin M. Forbes d6248a
export CFLAGS="$RPM_OPT_FLAGS"
b9ad6c
mkdir binaries
b9ad6c
a1a30f
build_bios() {
3bc311
    make clean distclean
3bc311
    cp $1 .config
3bc311
    echo "CONFIG_DEBUG_LEVEL=%{debug_level}" >> .config
a1a30f
    make oldnoconfig V=1
a1a30f
a1a30f
    make V=1 \
9be9bd
        EXTRAVERSION="-%{release}" \
Paolo Bonzini dcde00
%if 0%{?cross:1}
a1a30f
        HOSTCC=gcc \
a1a30f
        CC=x86_64-linux-gnu-gcc \
a1a30f
        AS=x86_64-linux-gnu-as \
a1a30f
        LD=x86_64-linux-gnu-ld \
a1a30f
        OBJCOPY=x86_64-linux-gnu-objcopy \
a1a30f
        OBJDUMP=x86_64-linux-gnu-objdump \
Paolo Bonzini dcde00
        STRIP=x86_64-linux-gnu-strip \
Paolo Bonzini dcde00
%endif
Paolo Bonzini dcde00
        $4
3bc311
3bc311
    cp out/$2 binaries/$3
a1a30f
}
a1a30f
3bc311
# seabios
461412
build_bios %{_sourcedir}/config.seabios-128k bios.bin bios.bin
461412
build_bios %{_sourcedir}/config.seabios-256k bios.bin bios-256k.bin
Paolo Bonzini dcde00
%if 0%{?fedora:1}
9be9bd
build_bios %{_sourcedir}/config.csm Csm16.bin bios-csm.bin
9be9bd
build_bios %{_sourcedir}/config.coreboot bios.bin.elf bios-coreboot.bin
Paolo Bonzini dcde00
%endif
b9ad6c
b9ad6c
# seavgabios
3e7fdf
%global vgaconfigs cirrus isavga qxl stdvga vmware virtio
3e7fdf
for config in %{vgaconfigs}; do
3e7fdf
    build_bios %{_sourcedir}/config.vga.${config} \
3e7fdf
               vgabios.bin vgabios-${config}.bin out/vgabios.bin
b9ad6c
done
b9ad6c
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%install
Justin M. Forbes e9236f
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
b9ad6c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seavgabios
3bc311
install -m 0644 binaries/bios.bin $RPM_BUILD_ROOT%{_datadir}/seabios/bios.bin
3bc311
install -m 0644 binaries/bios-256k.bin $RPM_BUILD_ROOT%{_datadir}/seabios/bios-256k.bin
Paolo Bonzini dcde00
%if 0%{?fedora:1}
Paolo Bonzini 184d7f
install -m 0644 binaries/bios-csm.bin $RPM_BUILD_ROOT%{_datadir}/seabios/bios-csm.bin
Paolo Bonzini 184d7f
install -m 0644 binaries/bios-coreboot.bin $RPM_BUILD_ROOT%{_datadir}/seabios/bios-coreboot.bin
Paolo Bonzini dcde00
%endif
b9ad6c
install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios
Justin M. Forbes e9236f
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%files
ec7106
%doc COPYING COPYING.LESSER README
Justin M. Forbes e9236f
90f093
Justin M. Forbes d6248a
%files bin
Justin M. Forbes d6248a
%dir %{_datadir}/seabios/
Paolo Bonzini 184d7f
%{_datadir}/seabios/bios*.bin
Justin M. Forbes e9236f
b9ad6c
%files -n seavgabios-bin
b9ad6c
%dir %{_datadir}/seavgabios/
b9ad6c
%{_datadir}/seavgabios/vgabios*.bin
b9ad6c
Justin M. Forbes e9236f
Justin M. Forbes e9236f
%changelog
Fedora Release Engineering 40cab2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.0-2
Fedora Release Engineering 40cab2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Fedora Release Engineering 40cab2
Paolo Bonzini 44cf4a
* Fri Nov 17 2017 Paolo Bonzini <pbonzini@redhat.com> - 1.11.0-1
Paolo Bonzini 44cf4a
- Rebased to version 1.11.0
Paolo Bonzini 44cf4a
- Add three patches from RHEL
Paolo Bonzini 44cf4a
Paolo Bonzini dcde00
* Fri Nov 17 2017 Paolo Bonzini <pbonzini@redhat.com> - 1.10.2-3
Paolo Bonzini dcde00
- Disable cross-compilation on RHEL
Paolo Bonzini dcde00
Fedora Release Engineering 1f45fe
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.2-2
Fedora Release Engineering 1f45fe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
Fedora Release Engineering 1f45fe
4134f1
* Wed Mar 15 2017 Cole Robinson <crobinso@redhat.com> - 1.10.2-1
4134f1
- Rebased to version 1.10.2
4134f1
Fedora Release Engineering 3f55f9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.1-2
Fedora Release Engineering 3f55f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
Fedora Release Engineering 3f55f9
4a5362
* Sun Dec 04 2016 Cole Robinson <crobinso@redhat.com> - 1.10.1-1
4a5362
- Rebased to version 1.10.1
4a5362
c31d40
* Wed Aug 03 2016 Cole Robinson <crobinso@redhat.com> - 1.9.3-1
c31d40
- Rebased to version 1.9.3
c31d40
Paolo Bonzini e54046
* Thu Mar 24 2016 Paolo Bonzini <pbonzini@redhat.com> - 1.9.1-3
Paolo Bonzini b13ac1
- Include MPT Fusion driver, in preparation for QEMU 2.6
Paolo Bonzini e54046
- Include XHCI and SD in 128k ROM, sacrifice bootsplash instead
Paolo Bonzini b13ac1
a48ed8
* Thu Mar 17 2016 Cole Robinson <crobinso@redhat.com> - 1.9.1-1
a48ed8
- Rebased to version 1.9.1
a48ed8
- Fix incorrect UUID format in boot output (bz #1284259)
a48ed8
Fedora Release Engineering d6c3a3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
Fedora Release Engineering d6c3a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Fedora Release Engineering d6c3a3
9be9bd
* Tue Nov 17 2015 Cole Robinson <crobinso@redhat.com> 1.9.0-1
9be9bd
- Rebased to version 1.9.0
9be9bd
461412
* Tue Jul 14 2015 Cole Robinson <crobinso@redhat.com> 1.8.2-1
461412
- Rebased to version 1.8.2
461412
Dennis Gilmore 6ddf5b
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.1-2
Dennis Gilmore 6ddf5b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore 6ddf5b
065d18
* Wed Mar 18 2015 Cole Robinson <crobinso@redhat.com> - 1.8.1-1
065d18
- Rebased to version 1.8.1
065d18
ec7106
* Sat Feb 21 2015 Cole Robinson <crobinso@redhat.com> - 1.8.0-1
ec7106
- Rebased to version 1.8.0
ec7106
- Initial support for USB3 hubs
ec7106
- Initial support for SD cards (on QEMU only)
ec7106
- Initial support for transitioning to 32bit mode using SMIs (on QEMU TCG
ec7106
  only)
ec7106
- SeaVGABIOS improvements
ec7106
023a4d
* Sat Nov 15 2014 Cole Robinson <crobinso@redhat.com> - 1.7.5.1-1
023a4d
- Update to seabios-1.7.5.1
023a4d
d96c2d
* Wed Jul 09 2014 Cole Robinson <crobinso@redhat.com> - 1.7.5-3
d96c2d
- Fix PCI-e hotplug (bz #1115598)
d96c2d
Dennis Gilmore fe3d9b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-2
Dennis Gilmore fe3d9b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore fe3d9b
e43370
* Sat May 31 2014 Cole Robinson <crobinso@redhat.com> - 1.7.5-1
e43370
- Rebased to version 1.7.5
e43370
- Support for obtaining SMBIOS tables directly from QEMU.
e43370
- XHCI USB controller fixes for real hardware
e43370
- seavgabios: New driver for "coreboot native vga" support
e43370
- seavgabios: Improved detection of x86emu versions with incorrect
e43370
  emulation.
e43370
- Several bug fixes and code cleanups
e43370
Matthias Clasen 699be1
* Wed Mar 26 2014 Matthias Clasen <mclasen@redhat.com> 1.7.4-5
Matthias Clasen 699be1
- Fix booting FreeBSD VMs in virt-manager
Matthias Clasen 699be1
3bc311
* Mon Mar 17 2014 Cole Robinson <crobinso@redhat.com> 1.7.4-3
3bc311
- Build 256k bios images for qemu 2.0
3bc311
dbf06d
* Thu Mar 13 2014 Cole Robinson <crobinso@redhat.com> - 1.7.4-2
dbf06d
- Fix kvm migration with empty virtio-scsi controller (bz #1032208)
dbf06d
a1a30f
* Mon Jan 06 2014 Cole Robinson <crobinso@redhat.com> - 1.7.4-1
a1a30f
- Rebased to version 1.7.4
a1a30f
- Support for obtaining ACPI tables directly from QEMU.
a1a30f
- Initial support for XHCI USB controllers (initially for QEMU only).
a1a30f
- Support for booting from "pvscsi" devices on QEMU.
a1a30f
- Enhanced floppy driver - improved support for real hardware.
a1a30f
- coreboot cbmem console support.
a1a30f
a6d481
* Tue Nov 19 2013 Cole Robinson <crobinso@redhat.com> - 1.7.3.2-1
a6d481
- Update to 1.7.3.2 for qemu 1.7
a6d481
Paolo Bonzini 63a61a
* Thu Nov 14 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.3.1-3
Paolo Bonzini 63a61a
- Fix pasto in CONFIG_DEBUG_LEVEL.
Paolo Bonzini 63a61a
Paolo Bonzini 184d7f
* Thu Nov 14 2013 Paolo Bonzini <pbonzini@redhat.com> - 1.7.3.1-2
Paolo Bonzini 184d7f
- Compile as all three of BIOS, CSM and CoreBoot payload.
Paolo Bonzini 184d7f
9a9249
* Wed Aug 14 2013 Cole Robinson <crobinso@redhat.com> - 1.7.3.1-1
9a9249
- Rebased to version 1.7.3.1
9a9249
- Fix USB EHCI detection that was broken in hlist conversion of
9a9249
  PCIDevices.
9a9249
- Fix bug in CBFS file walking with compressed files.
9a9249
- acpi: sync FADT flags from PIIX4 to Q35
9a9249
Dennis Gilmore 43c731
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.3-3
Dennis Gilmore 43c731
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore 43c731
ea00cb
* Tue Jul 09 2013 Cole Robinson <crobinso@redhat.com> - 1.7.3-2
ea00cb
- Install aml files for use by qemu
ea00cb
f413ff
* Mon Jul 08 2013 Cole Robinson <crobinso@redhat.com> - 1.7.3-1
f413ff
- Rebased to version 1.7.3
f413ff
- Initial support for using SeaBIOS as a UEFI CSM
f413ff
- Support for detecting and using ACPI reboot ports.
f413ff
- Non-standard floppy sizes now work again with recent QEMU versions.
f413ff
- Several bug fixes and code cleanups
f413ff
- Again fix vgabios obsoletes (bz #981147)
f413ff
a3a29c
* Mon May 27 2013 Cole Robinson <crobinso@redhat.com> - 1.7.2.2-1
a3a29c
- Update to seabios stable 1.7.2.2
a3a29c
- Obsolete vgabios (bz #967315)
a3a29c
290df1
* Thu Jan 24 2013 Cole Robinson <crobinso@redhat.com> - 1.7.2-1
290df1
- Rebased to version 1.7.2
290df1
- Support for ICH9 host chipset ("q35") on emulators
290df1
- Support for booting from LSI MegaRAID SAS controllers
290df1
- Support for using the ACPI PM timer on emulators
290df1
- Improved Geode VGA BIOS support.
290df1
- Several bug fixes
290df1
Peter Robinson 719a03
* Thu Dec  6 2012 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.1-4
Peter Robinson 719a03
- Root seabios package is noarch too because it only contains docs
Peter Robinson 719a03
b9ad6c
* Fri Oct 19 2012 Cole Robinson <crobinso@redhat.com> - 1.7.1-3
b9ad6c
- Add seavgabios subpackage
b9ad6c
Paolo Bonzini 1e77d4
* Wed Oct 17 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.7.1-2
Paolo Bonzini 1e77d4
- Build with cross compiler.  Resolves: #866664.
Paolo Bonzini 1e77d4
02ea97
* Wed Sep 05 2012 Cole Robinson <crobinso@redhat.com> - 1.7.1-1
02ea97
- Rebased to version 1.7.1
02ea97
- Initial support for booting from USB attached scsi (USB UAS) drives
02ea97
- USB EHCI 64bit controller support
02ea97
- USB MSC multi-LUN device support
02ea97
- Support for booting from LSI SCSI controllers on emulators
02ea97
- Support for booting from AMD PCscsi controllers on emulators
02ea97
90f093
* Mon Aug 13 2012 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-4
90f093
- Modernise and tidy up the RPM.
9d9aaf
- Allow debug versions of SeaBIOS to be built easily.
90f093
209d0d
* Mon Aug 06 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-3
209d0d
- Enable S3/S4 support for guests (it's an F18 feature after all)
209d0d
Dennis Gilmore 5be931
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
Dennis Gilmore 5be931
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 5be931
67b1f3
* Mon May 28 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-1
67b1f3
- Rebased to version 1.7.0
67b1f3
- Support for virtio-scsi
67b1f3
- Improved USB drive support
67b1f3
- Several USB controller bug fixes and improvements
67b1f3
Paolo Bonzini 208263
* Wed Mar 28 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.6.3-2
Paolo Bonzini 208263
- Fix bugs in booting from host (or redirected) USB pen drives
Paolo Bonzini 208263
Justin M. Forbes 696046
* Wed Feb 08 2012 Justin M. Forbes <jforbes@redhat.com> - 1.6.3-1
Justin M. Forbes 696046
- Update to 1.6.3 upstream
Justin M. Forbes 696046
- Add virtio-scsi
Justin M. Forbes 696046
Dennis Gilmore 51ef0b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
Dennis Gilmore 51ef0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore 51ef0b
Justin M. Forbes 66f709
* Wed Oct 05 2011 Justin M. Forbes <jforbes@redhat.com> - 0.6.2-3
Justin M. Forbes 66f709
- Stop advertising S3 and S4 in DSDT (bz#741375)
Justin M. Forbes 66f709
- incdule iasl buildreq
Justin M. Forbes 66f709
Justin M. Forbes f2a4e6
* Wed Jul 13 2011 Justin M. Forbes <jforbes@redhat.com> - 0.6.2-2
Justin M. Forbes f2a4e6
- Fix QXL bug in 0.6.2
Justin M. Forbes f2a4e6
Justin M. Forbes 35f47e
* Wed Jul 13 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.2-1
Justin M. Forbes 35f47e
- Update to 0.6.2 upstream for a number of bugfixes
Justin M. Forbes 35f47e
Justin M. Forbes 9c63fd
* Mon Feb 14 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.1-1
Justin M. Forbes 9c63fd
- Update to 0.6.1 upstream for a number of bugfixes
Justin M. Forbes 9c63fd
Dennis Gilmore 774ffc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
Dennis Gilmore 774ffc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore 774ffc
Justin M. Forbes ee29b9
* Tue Aug 10 2010 Justin M. Forbes <jforbes@redhat.com> 0.6.0-1
Justin M. Forbes ee29b9
- Update seabios to latest stable so we can drop patches.
Justin M. Forbes ee29b9
Justin M. Forbes d6248a
* Tue Apr 20 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-2
Justin M. Forbes d6248a
- Ugly hacks to make package noarch and available for arch that cannot build it.
Justin M. Forbes d6248a
- Disable useless debuginfo
Justin M. Forbes d6248a
Justin M. Forbes 41145f
* Wed Mar 03 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-1
Justin M. Forbes 41145f
- Update to 0.5.1 stable release
Justin M. Forbes 41145f
- Pick up patches required for current qemu
Justin M. Forbes 41145f
Justin M. Forbes e9236f
* Thu Jan 07 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-0.1.20100108git669c991
Justin M. Forbes e9236f
- Created initial package