eb168d7
%global gitcommit a810e4e7
eb168d7
e9236f4
Name:           seabios
eb168d7
Version:        1.7.2
290df1c
Release:        1%{?dist}
e9236f4
Summary:        Open-source legacy BIOS implementation
e9236f4
e9236f4
Group:          Applications/Emulators
e9236f4
License:        LGPLv3
e9236f4
URL:            http://www.coreboot.org/SeaBIOS
eb168d7
290df1c
Source0:        http://code.coreboot.org/p/seabios/downloads/get/%{name}-%{version}.tar.gz
41145fb
b9ad6c5
Source10:       config.vga.cirrus
b9ad6c5
Source11:       config.vga.isavga
b9ad6c5
Source12:       config.vga.qxl
b9ad6c5
Source13:       config.vga.stdvga
b9ad6c5
Source14:       config.vga.vmware
b9ad6c5
66f7090
BuildRequires: python iasl
1e77d40
BuildRequires: binutils-x86_64-linux-gnu gcc-x86_64-linux-gnu
e9236f4
d6248aa
Requires: %{name}-bin = %{version}-%{release}
b9ad6c5
Requires: seavgabios-bin = %{version}-%{release}
719a031
Buildarch: noarch
d6248aa
d6248aa
# Seabios is noarch, but required on architectures which cannot build it.
d6248aa
# Disable debuginfo because it is of no use to us.
d6248aa
%global debug_package %{nil}
d6248aa
9d9aaf1
# You can build a debugging version of the BIOS by setting this to a
9d9aaf1
# value > 1.  See src/config.h for possible values, but setting it to
9d9aaf1
# a number like 99 will enable all possible debugging.  Note that
4e7a4fd
# debugging goes to a special qemu port that you have to enable.  See
9d9aaf1
# the SeaBIOS top-level README file for the magic qemu invocation to
9d9aaf1
# enable this.
9d9aaf1
%global debug_level 1
9d9aaf1
90f093c
e9236f4
%description
e9236f4
SeaBIOS is an open-source legacy BIOS implementation which can be used as
e9236f4
a coreboot payload. It implements the standard BIOS calling interfaces
e9236f4
that a typical x86 proprietary BIOS implements.
e9236f4
90f093c
d6248aa
%package bin
d6248aa
Summary: Seabios for x86
d6248aa
Buildarch: noarch
d6248aa
90f093c
d6248aa
%description bin
d6248aa
SeaBIOS is an open-source legacy BIOS implementation which can be used as
d6248aa
a coreboot payload. It implements the standard BIOS calling interfaces
d6248aa
that a typical x86 proprietary BIOS implements.
e9236f4
90f093c
b9ad6c5
%package -n seavgabios-bin
b9ad6c5
Summary: Seavgabios for x86
b9ad6c5
Buildarch: noarch
b9ad6c5
b9ad6c5
b9ad6c5
%description -n seavgabios-bin
b9ad6c5
SeaVGABIOS is an open-source VGABIOS implementation.
b9ad6c5
b9ad6c5
e9236f4
%prep
290df1c
%setup -q
41145fb
41145fb
# Makefile changes version to include date and buildhost
41145fb
sed -i 's,VERSION=%{version}.*,VERSION=%{version},g' Makefile
e9236f4
e9236f4
e9236f4
%build
1e77d40
make .config V=1
9d9aaf1
sed -i 's,CONFIG_DEBUG_LEVEL=.*,CONFIG_DEBUG_LEVEL=%{debug_level},g' .config
9d9aaf1
d6248aa
export CFLAGS="$RPM_OPT_FLAGS"
b9ad6c5
mkdir binaries
b9ad6c5
b9ad6c5
# seabios
1e77d40
make V=1 \
1e77d40
	HOSTCC=gcc \
1e77d40
	CC=x86_64-linux-gnu-gcc \
1e77d40
	AS=x86_64-linux-gnu-as \
1e77d40
	LD=x86_64-linux-gnu-ld \
1e77d40
	OBJCOPY=x86_64-linux-gnu-objcopy \
1e77d40
	OBJDUMP=x86_64-linux-gnu-objdump \
1e77d40
	STRIP=x86_64-linux-gnu-strip
b9ad6c5
cp out/bios.bin binaries
b9ad6c5
b9ad6c5
# seavgabios
b9ad6c5
for config in %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14}; do
b9ad6c5
	name=${config#*config.vga.}
b9ad6c5
	make clean distclean
b9ad6c5
	cp ${config} .config
b9ad6c5
	echo "CONFIG_DEBUG_LEVEL=%{debug_level}" >> .config
b9ad6c5
	make oldnoconfig
b9ad6c5
	make V=1 \
b9ad6c5
		HOSTCC=gcc \
b9ad6c5
		CC=x86_64-linux-gnu-gcc \
b9ad6c5
		AS=x86_64-linux-gnu-as \
b9ad6c5
		LD=x86_64-linux-gnu-ld \
b9ad6c5
		OBJCOPY=x86_64-linux-gnu-objcopy \
b9ad6c5
		OBJDUMP=x86_64-linux-gnu-objdump \
b9ad6c5
		STRIP=x86_64-linux-gnu-strip \
b9ad6c5
		out/vgabios.bin
b9ad6c5
	cp out/vgabios.bin binaries/vgabios-${name}.bin
b9ad6c5
done
b9ad6c5
e9236f4
e9236f4
%install
e9236f4
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
b9ad6c5
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seavgabios
b9ad6c5
install -m 0644 binaries/bios.bin $RPM_BUILD_ROOT%{_datadir}/seabios
b9ad6c5
install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios
e9236f4
e9236f4
e9236f4
%files
e9236f4
%doc COPYING COPYING.LESSER README TODO
e9236f4
90f093c
d6248aa
%files bin
d6248aa
%dir %{_datadir}/seabios/
d6248aa
%{_datadir}/seabios/bios.bin
e9236f4
b9ad6c5
%files -n seavgabios-bin
b9ad6c5
%dir %{_datadir}/seavgabios/
b9ad6c5
%{_datadir}/seavgabios/vgabios*.bin
b9ad6c5
e9236f4
e9236f4
%changelog
290df1c
* Thu Jan 24 2013 Cole Robinson <crobinso@redhat.com> - 1.7.2-1
290df1c
- Rebased to version 1.7.2
290df1c
- Support for ICH9 host chipset ("q35") on emulators
290df1c
- Support for booting from LSI MegaRAID SAS controllers
290df1c
- Support for using the ACPI PM timer on emulators
290df1c
- Improved Geode VGA BIOS support.
290df1c
- Several bug fixes
290df1c
719a031
* Thu Dec  6 2012 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.1-4
719a031
- Root seabios package is noarch too because it only contains docs
719a031
b9ad6c5
* Fri Oct 19 2012 Cole Robinson <crobinso@redhat.com> - 1.7.1-3
b9ad6c5
- Add seavgabios subpackage
b9ad6c5
1e77d40
* Wed Oct 17 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.7.1-2
1e77d40
- Build with cross compiler.  Resolves: #866664.
1e77d40
02ea97c
* Wed Sep 05 2012 Cole Robinson <crobinso@redhat.com> - 1.7.1-1
02ea97c
- Rebased to version 1.7.1
02ea97c
- Initial support for booting from USB attached scsi (USB UAS) drives
02ea97c
- USB EHCI 64bit controller support
02ea97c
- USB MSC multi-LUN device support
02ea97c
- Support for booting from LSI SCSI controllers on emulators
02ea97c
- Support for booting from AMD PCscsi controllers on emulators
02ea97c
90f093c
* Mon Aug 13 2012 Richard W.M. Jones <rjones@redhat.com> - 1.7.0-4
90f093c
- Modernise and tidy up the RPM.
9d9aaf1
- Allow debug versions of SeaBIOS to be built easily.
90f093c
209d0d8
* Mon Aug 06 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-3
209d0d8
- Enable S3/S4 support for guests (it's an F18 feature after all)
209d0d8
5be9310
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
5be9310
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5be9310
67b1f39
* Mon May 28 2012 Cole Robinson <crobinso@redhat.com> - 1.7.0-1
67b1f39
- Rebased to version 1.7.0
67b1f39
- Support for virtio-scsi
67b1f39
- Improved USB drive support
67b1f39
- Several USB controller bug fixes and improvements
67b1f39
2082636
* Wed Mar 28 2012 Paolo Bonzini <pbonzini@redhat.com> - 1.6.3-2
2082636
- Fix bugs in booting from host (or redirected) USB pen drives
2082636
6960463
* Wed Feb 08 2012 Justin M. Forbes <jforbes@redhat.com> - 1.6.3-1
6960463
- Update to 1.6.3 upstream
6960463
- Add virtio-scsi
6960463
51ef0b6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.2-4
51ef0b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
51ef0b6
66f7090
* Wed Oct 05 2011 Justin M. Forbes <jforbes@redhat.com> - 0.6.2-3
66f7090
- Stop advertising S3 and S4 in DSDT (bz#741375)
66f7090
- incdule iasl buildreq
66f7090
f2a4e67
* Wed Jul 13 2011 Justin M. Forbes <jforbes@redhat.com> - 0.6.2-2
f2a4e67
- Fix QXL bug in 0.6.2
f2a4e67
35f47e6
* Wed Jul 13 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.2-1
35f47e6
- Update to 0.6.2 upstream for a number of bugfixes
35f47e6
9c63fd6
* Mon Feb 14 2011 Justin M. forbes <jforbes@redhat.com> - 0.6.1-1
9c63fd6
- Update to 0.6.1 upstream for a number of bugfixes
9c63fd6
774ffcc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-2
774ffcc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
774ffcc
ee29b99
* Tue Aug 10 2010 Justin M. Forbes <jforbes@redhat.com> 0.6.0-1
ee29b99
- Update seabios to latest stable so we can drop patches.
ee29b99
d6248aa
* Tue Apr 20 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-2
d6248aa
- Ugly hacks to make package noarch and available for arch that cannot build it.
d6248aa
- Disable useless debuginfo
d6248aa
41145fb
* Wed Mar 03 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-1
41145fb
- Update to 0.5.1 stable release
41145fb
- Pick up patches required for current qemu
41145fb
e9236f4
* Thu Jan 07 2010 Justin M. Forbes <jforbes@redhat.com> 0.5.1-0.1.20100108git669c991
e9236f4
- Created initial package