2010-01-12 06:40:24 +00:00
|
|
|
Name: seabios
|
2023-11-28 08:32:08 +00:00
|
|
|
Version: 1.16.3
|
2024-12-10 10:07:48 +00:00
|
|
|
Release: 6%{?dist}.alma.1
|
2010-01-12 06:40:24 +00:00
|
|
|
Summary: Open-source legacy BIOS implementation
|
|
|
|
|
2023-04-26 15:39:48 +00:00
|
|
|
License: LGPL-3.0-only
|
2024-04-04 06:57:25 +00:00
|
|
|
URL: https://www.coreboot.org/SeaBIOS
|
2012-12-17 18:17:03 +00:00
|
|
|
|
2024-04-04 06:57:25 +00:00
|
|
|
Source0: https://code.coreboot.org/p/seabios/downloads/get/seabios-1.16.3.tar.gz
|
2018-03-22 14:08:47 +00:00
|
|
|
|
2010-03-03 21:55:03 +00:00
|
|
|
|
2019-03-27 22:22:00 +00:00
|
|
|
Source10: config.vga-cirrus
|
2024-12-03 12:32:16 +00:00
|
|
|
Source12: config.vga-qxl
|
2019-03-27 22:22:00 +00:00
|
|
|
Source13: config.vga-stdvga
|
2014-03-17 13:02:29 +00:00
|
|
|
Source18: config.seabios-256k
|
2019-03-27 22:22:00 +00:00
|
|
|
Source19: config.vga-virtio
|
|
|
|
Source20: config.vga-ramfb
|
|
|
|
Source21: config.vga-bochs-display
|
2024-04-04 06:57:25 +00:00
|
|
|
|
|
|
|
Patch1: 0001-add-hwerr_printf-function-for-threads.patch
|
|
|
|
Patch2: 0002-display-error-message-for-blocksizes-512.patch
|
2024-11-26 07:06:01 +00:00
|
|
|
# For RHEL-67847 - amdgpu failed to initialize when multiple AMD MI210 GPUs assigned and firmware is seabios [rhel-10]
|
|
|
|
Patch3: seabios-pciinit-don-t-misalign-large-BARs.patch
|
2012-10-19 18:12:29 +00:00
|
|
|
|
2021-01-19 02:41:36 +00:00
|
|
|
BuildRequires: make
|
2018-07-24 19:20:28 +00:00
|
|
|
BuildRequires: gcc
|
2024-04-04 06:57:25 +00:00
|
|
|
BuildRequires: python3 iasl
|
|
|
|
|
2017-11-17 08:01:18 +00:00
|
|
|
ExclusiveArch: x86_64
|
2010-01-12 06:40:24 +00:00
|
|
|
|
2024-09-06 05:49:21 +00:00
|
|
|
%if 0%{?almalinux} > 9
|
|
|
|
ExclusiveArch: x86_64 %{power64}
|
|
|
|
%endif
|
|
|
|
|
2010-04-20 16:58:35 +00:00
|
|
|
Requires: %{name}-bin = %{version}-%{release}
|
2012-10-19 18:12:29 +00:00
|
|
|
Requires: seavgabios-bin = %{version}-%{release}
|
2010-04-20 16:58:35 +00:00
|
|
|
|
|
|
|
# Seabios is noarch, but required on architectures which cannot build it.
|
|
|
|
# Disable debuginfo because it is of no use to us.
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
2014-01-06 15:39:47 +00:00
|
|
|
# Similarly, tell RPM to not complain about x86 roms being shipped noarch
|
|
|
|
%global _binaries_in_noarch_packages_terminate_build 0
|
|
|
|
|
2012-08-13 08:04:11 +00:00
|
|
|
# You can build a debugging version of the BIOS by setting this to a
|
|
|
|
# value > 1. See src/config.h for possible values, but setting it to
|
|
|
|
# a number like 99 will enable all possible debugging. Note that
|
2012-08-13 08:38:18 +00:00
|
|
|
# debugging goes to a special qemu port that you have to enable. See
|
2012-08-13 08:04:11 +00:00
|
|
|
# the SeaBIOS top-level README file for the magic qemu invocation to
|
|
|
|
# enable this.
|
|
|
|
%global debug_level 1
|
|
|
|
|
2012-08-13 07:50:08 +00:00
|
|
|
|
2010-01-12 06:40:24 +00:00
|
|
|
%description
|
|
|
|
SeaBIOS is an open-source legacy BIOS implementation which can be used as
|
|
|
|
a coreboot payload. It implements the standard BIOS calling interfaces
|
|
|
|
that a typical x86 proprietary BIOS implements.
|
|
|
|
|
2012-08-13 07:50:08 +00:00
|
|
|
|
2010-04-20 16:58:35 +00:00
|
|
|
%package bin
|
|
|
|
Summary: Seabios for x86
|
|
|
|
Buildarch: noarch
|
|
|
|
|
2012-08-13 07:50:08 +00:00
|
|
|
|
2010-04-20 16:58:35 +00:00
|
|
|
%description bin
|
|
|
|
SeaBIOS is an open-source legacy BIOS implementation which can be used as
|
|
|
|
a coreboot payload. It implements the standard BIOS calling interfaces
|
|
|
|
that a typical x86 proprietary BIOS implements.
|
2010-01-12 06:40:24 +00:00
|
|
|
|
2012-08-13 07:50:08 +00:00
|
|
|
|
2012-10-19 18:12:29 +00:00
|
|
|
%package -n seavgabios-bin
|
|
|
|
Summary: Seavgabios for x86
|
|
|
|
Buildarch: noarch
|
|
|
|
|
|
|
|
%description -n seavgabios-bin
|
|
|
|
SeaVGABIOS is an open-source VGABIOS implementation.
|
|
|
|
|
|
|
|
|
2010-01-12 06:40:24 +00:00
|
|
|
%prep
|
2013-01-24 23:28:57 +00:00
|
|
|
%setup -q
|
2017-11-17 08:41:16 +00:00
|
|
|
%autopatch -p1
|
2010-01-12 06:40:24 +00:00
|
|
|
|
|
|
|
%build
|
2024-09-06 05:49:21 +00:00
|
|
|
# This ifarch is needed to start the build on ppc64le and finish it with 0 exit code
|
|
|
|
# to synchronize noarch packages between x86_64 and ppc64le
|
|
|
|
%ifarch x86_64
|
2020-11-24 17:45:30 +00:00
|
|
|
%define _lto_cflags %{nil}
|
2010-04-20 16:58:35 +00:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
2012-10-19 18:12:29 +00:00
|
|
|
mkdir binaries
|
|
|
|
|
2014-01-06 15:39:47 +00:00
|
|
|
build_bios() {
|
2024-04-04 06:57:25 +00:00
|
|
|
make PYTHON=%{__python3} clean distclean
|
2014-03-17 13:02:29 +00:00
|
|
|
cp $1 .config
|
2024-04-04 06:57:25 +00:00
|
|
|
echo "CONFIG_TCGBIOS=n" >> .config
|
2014-03-17 13:02:29 +00:00
|
|
|
echo "CONFIG_DEBUG_LEVEL=%{debug_level}" >> .config
|
2024-04-04 06:57:25 +00:00
|
|
|
make PYTHON=%{__python3} oldnoconfig V=1 EXTRAVERSION="-%release"
|
2014-01-06 15:39:47 +00:00
|
|
|
|
|
|
|
make V=1 \
|
2015-11-17 21:52:47 +00:00
|
|
|
EXTRAVERSION="-%{release}" \
|
2024-04-04 06:57:25 +00:00
|
|
|
PYTHON=%{__python3} \
|
2017-11-17 08:01:18 +00:00
|
|
|
%if 0%{?cross:1}
|
2014-01-06 15:39:47 +00:00
|
|
|
HOSTCC=gcc \
|
|
|
|
CC=x86_64-linux-gnu-gcc \
|
|
|
|
AS=x86_64-linux-gnu-as \
|
|
|
|
LD=x86_64-linux-gnu-ld \
|
|
|
|
OBJCOPY=x86_64-linux-gnu-objcopy \
|
|
|
|
OBJDUMP=x86_64-linux-gnu-objdump \
|
2017-11-17 08:01:18 +00:00
|
|
|
STRIP=x86_64-linux-gnu-strip \
|
|
|
|
%endif
|
|
|
|
$4
|
2014-03-17 13:02:29 +00:00
|
|
|
|
|
|
|
cp out/$2 binaries/$3
|
2014-01-06 15:39:47 +00:00
|
|
|
}
|
|
|
|
|
2014-03-17 13:02:29 +00:00
|
|
|
# seabios
|
2015-07-14 19:06:58 +00:00
|
|
|
build_bios %{_sourcedir}/config.seabios-256k bios.bin bios-256k.bin
|
2024-04-04 06:57:25 +00:00
|
|
|
|
2012-10-19 18:12:29 +00:00
|
|
|
|
|
|
|
# seavgabios
|
2024-12-03 12:32:16 +00:00
|
|
|
%global vgaconfigs cirrus qxl stdvga virtio ramfb bochs-display
|
2016-01-22 14:15:26 +00:00
|
|
|
for config in %{vgaconfigs}; do
|
2019-03-27 22:22:00 +00:00
|
|
|
build_bios %{_sourcedir}/config.vga-${config} \
|
2016-01-22 14:15:26 +00:00
|
|
|
vgabios.bin vgabios-${config}.bin out/vgabios.bin
|
2012-10-19 18:12:29 +00:00
|
|
|
done
|
|
|
|
|
2010-01-12 06:40:24 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
|
2012-10-19 18:12:29 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seavgabios
|
2014-03-17 13:02:29 +00:00
|
|
|
install -m 0644 binaries/bios-256k.bin $RPM_BUILD_ROOT%{_datadir}/seabios/bios-256k.bin
|
2012-10-19 18:12:29 +00:00
|
|
|
install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios
|
2010-01-12 06:40:24 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2015-02-21 20:07:22 +00:00
|
|
|
%doc COPYING COPYING.LESSER README
|
2010-01-12 06:40:24 +00:00
|
|
|
|
2012-08-13 07:50:08 +00:00
|
|
|
|
2010-04-20 16:58:35 +00:00
|
|
|
%files bin
|
|
|
|
%dir %{_datadir}/seabios/
|
2013-11-14 22:34:57 +00:00
|
|
|
%{_datadir}/seabios/bios*.bin
|
2010-01-12 06:40:24 +00:00
|
|
|
|
2012-10-19 18:12:29 +00:00
|
|
|
%files -n seavgabios-bin
|
|
|
|
%dir %{_datadir}/seavgabios/
|
|
|
|
%{_datadir}/seavgabios/vgabios*.bin
|
|
|
|
|
2024-09-06 05:49:21 +00:00
|
|
|
# endif for %ifarch x86_64
|
|
|
|
%endif
|
|
|
|
|
2010-01-12 06:40:24 +00:00
|
|
|
%changelog
|
2024-12-10 10:07:48 +00:00
|
|
|
* Tue Dec 10 2024 Eduard Abdullin <eabdullin@almalinux.org> - 1.16.3-6.alma.1
|
|
|
|
- Ship vgabios-qxl.bin
|
2024-09-06 05:49:21 +00:00
|
|
|
- Allow the build to start on ppc64le
|
|
|
|
|
2024-11-26 07:06:01 +00:00
|
|
|
* Tue Nov 26 2024 Miroslav Rezanina <mrezanin@redhat.com> - 1.16.3-6
|
|
|
|
- seabios-pciinit-don-t-misalign-large-BARs.patch [RHEL-67847]
|
|
|
|
- Resolves: RHEL-67847
|
|
|
|
(amdgpu failed to initialize when multiple AMD MI210 GPUs assigned and firmware is seabios [rhel-10])
|
|
|
|
|
2024-10-29 16:13:40 +00:00
|
|
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.16.3-5
|
|
|
|
- Bump release for October 2024 mass rebuild:
|
|
|
|
Resolves: RHEL-64018
|
|
|
|
|
2024-06-24 16:24:03 +00:00
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.16.3-4
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
2024-04-04 06:57:25 +00:00
|
|
|
* Thu Apr 04 2024 Miroslav Rezanina <mrezanin@redhat.com> - 1.16.3-3
|
|
|
|
- Import package from RHEL 9
|
|
|
|
- Resolves: RHEL-31220
|
|
|
|
(Update seabios to RHEL structure)
|