代码拉取完成,页面将自动刷新
%global debug_package %{nil}
%global _binaries_in_noarch_packages_terminate_build 0
%global debug_level 1
Name: seabios
Version: 1.11.2
Release: 1
Summary: Open-source legacy BIOS implementation
License: LGPLv3
URL: http://www.coreboot.org/SeaBIOS
Source0: https://git.seabios.org/cgit/seabios.git/snapshot/seabios-rel-1.11.2.tar.gz
Source1: config.seabios-128k
Source2: config.seabios-256k
Source3: config.csm
Source4: config.coreboot
Source5: config.vga.cirrus
Source6: config.vga.isavga
Source7: config.vga.qxl
Source8: config.vga.stdvga
Source9: config.vga.vmware
Patch0001: 0001-Workaround-for-a-win8.1-32-S4-resume-bug.patch
Patch0002: 0002-reserve-more-memory-on-fseg.patch
Patch0003: 0003-vgabios-Reorder-video-modes-to-work-around-a-Windows.patch
BuildRequires: gcc python3 iasl
BuildRequires: binutils-x86_64-linux-gnu gcc-x86_64-linux-gnu
Buildarch: noarch
Obsoletes: seabios-bin
Obsoletes: seavgabios-bin
Provides: seabios-bin
Provides: seavgabios-bin
%description
SeaBIOS is an open source implementation of a 16bit X86 BIOS. SeaBIOS can
run in an emulator or it can run natively on X86 hardware with the use of
coreboot.
%prep
%setup -q -n seabios-rel-1.11.2
%autopatch -p1
%build
export CFLAGS="$RPM_OPT_FLAGS"
mkdir binaries
build_bios() {
make clean distclean
cp $1 .config
echo "CONFIG_DEBUG_LEVEL=%{debug_level}" >> .config
make oldnoconfig V=1
make V=1 \
EXTRAVERSION="-%{release}" \
PYTHON=python3 \
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 \
STRIP=x86_64-linux-gnu-strip \
cp out/$2 binaries/$3
}
build_bios %{_sourcedir}/config.seabios-128k bios.bin bios.bin
build_bios %{_sourcedir}/config.seabios-256k bios.bin bios-256k.bin
build_bios %{_sourcedir}/config.csm Csm16.bin bios-csm.bin
build_bios %{_sourcedir}/config.coreboot bios.bin.elf bios-coreboot.bin
build_bios %{_sourcedir}/config.vga.cirrus vgabios.bin vgabios-cirrus.bin
build_bios %{_sourcedir}/config.vga.isavga vgabios.bin vgabios-isavga.bin
build_bios %{_sourcedir}/config.vga.qxl vgabios.bin vgabios-qxl.bin
build_bios %{_sourcedir}/config.vga.stdvga vgabios.bin vgabios-stdvga.bin
build_bios %{_sourcedir}/config.vga.vmware vgabios.bin vgabios-vmware.bin
%install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seabios
install -m 0644 binaries/bios*.bin $RPM_BUILD_ROOT%{_datadir}/seabios
mkdir -p $RPM_BUILD_ROOT%{_datadir}/seavgabios
install -m 0644 binaries/vgabios*.bin $RPM_BUILD_ROOT%{_datadir}/seavgabios
%files
%doc COPYING COPYING.LESSER README
%dir %{_datadir}/seabios/
%{_datadir}/seabios/bios*.bin
%dir %{_datadir}/seavgabios/
%{_datadir}/seavgabios/vgabios*.bin
%changelog
* Wed Sep 11 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.11.2-1
- Package init
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。