forked from pool/coreboot-utils
d75e116445
- Update to 4.5: Areas with significant updates: Toolchain (29 commits) Updated mpfr version from 3.1.3 to 3.1.4 Updated gcc version from 5.2.0 to 5.3.0 Updated binutils version from 2.25 to 2.26.1 & Fix aarch64 build problem Updated gdb version from 7.9.1 to 7.11 Updated iasl version from 20160318 to 20160831 Updated python version from 3.4.3 to 3.5.1 Updated expat version from 2.1.0 to 2.1.1 Updated llvm / clang version from 3.7.1 to 3.8.0 Updated make version from 4.1 to 4.2.1 Build system (32 commits) Updates for cbfstool / fmap changes Order per-region files to optimize placement success Add support for the ADA language and toolchain. Utilities (103 commits) Lint – Update checkpatch.pl, add tools to find non-ascii & unprintable chars and to verify a single newline at the end of files cbfstool – Update for Linux payloads, Honor FSP modules addresses, fix elf parsing Sconfig – Add 10 bit addressing mode for i2c devices, add generic device type, support strings, pass in devicetree filename General code cleanup (197 commits) Cleaning up code formatting and whitespace Fix spelling & capitalization Removing commented out code Transition away from device_t TPM (55 commits) Add support for Trusted Platform Module 2.0 SPI & refactored I2C TPM driver Drivers (54 commits) Add ACPI support in several drivers OBS-URL: https://build.opensuse.org/request/show/460457 OBS-URL: https://build.opensuse.org/package/show/hardware/coreboot-utils?expand=0&rev=22
129 lines
4.9 KiB
RPMSpec
129 lines
4.9 KiB
RPMSpec
#
|
|
# spec file for package coreboot-utils
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: coreboot-utils
|
|
Url: http://coreboot.org/
|
|
Summary: A universal flash programming utility
|
|
License: GPL-2.0
|
|
Group: Development/Tools/Other
|
|
Version: 4.5
|
|
Release: 0
|
|
Source0: http://www.coreboot.org/releases/coreboot-%{version}.tar.xz
|
|
Patch2: k8resdump.diff
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: pciutils-devel
|
|
BuildRequires: xz
|
|
BuildRequires: zlib-devel
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
%description
|
|
coreboot is a Free Software project aimed at replacing the proprietary BIOS
|
|
(firmware) found in most computers. This package contains various utilities
|
|
used to develop and configure systems with coreboot.
|
|
|
|
%prep
|
|
%setup -q -n coreboot-%{version}
|
|
%patch2 -p1
|
|
|
|
%build
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/ectool
|
|
make %{?_smp_mflags} CC="%{__cc} %{optflags}" -C util/superiotool
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -DCMOS_HAL=1 -I." -C util/nvramtool
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/romcc romcc
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/cbmem
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/ifdfake
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/ifdtool
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/cbfstool
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/k8resdump
|
|
%ifarch %{ix86} x86_64
|
|
CXXFLAGS="$CXXFLAGS -fPIC"
|
|
CFLAGS="$CFLAGS -fPIC"
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/inteltool
|
|
make %{?_smp_mflags} HOSTCC="cc %{optflags}" -C util/amdfwtool
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -I." -C util/viatool
|
|
(cd util/msrtool && %configure && make %{?_smp_mflags})
|
|
%endif
|
|
|
|
%install
|
|
install -d %{buildroot}%{_sbindir}
|
|
install -d %{buildroot}%{_bindir}
|
|
install -d %{buildroot}%{_datadir}
|
|
install -d %{buildroot}%{_mandir}/man1
|
|
|
|
make %{?_smp_mflags} PREFIX=%{buildroot}/%{_prefix} -C util/ectool install
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} PREFIX=%{_prefix} -C util/superiotool install
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} PREFIX=%{_prefix} -C util/nvramtool install
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} PREFIX=%{_prefix} -C util/ifdfake install
|
|
# ifdtool & viatool install targets try to install a nonexistent manpage...
|
|
install util/ifdtool/ifdtool %{buildroot}%{_bindir}
|
|
install util/cbfstool/cbfstool %{buildroot}%{_bindir}
|
|
install util/cbmem/cbmem %{buildroot}%{_bindir}
|
|
install util/romcc/romcc %{buildroot}%{_bindir}
|
|
install -pm644 util/romcc/romcc.1 %{buildroot}%{_mandir}/man1/
|
|
install util/k8resdump/k8resdump %{buildroot}%{_sbindir}
|
|
install util/amdtools/*.pl %{buildroot}%{_sbindir}
|
|
install util/amdtools/k8-read-mem-settings.sh %{buildroot}%{_sbindir}
|
|
%ifarch %{ix86} x86_64
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} PREFIX=%{_prefix} -C util/inteltool install
|
|
install util/viatool/viatool %{buildroot}%{_bindir}
|
|
install util/amdfwtool/amdfwtool %{buildroot}%{_sbindir}
|
|
make -C util/msrtool DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
|
%endif
|
|
|
|
install -pm644 util/superiotool/README README.superiotool
|
|
install -pm644 util/superiotool/COPYING COPYING.superiotool
|
|
install -pm644 util/nvramtool/README README.nvramtool
|
|
install -pm644 util/nvramtool/COPYING COPYING.nvramtool
|
|
install -pm644 util/nvramtool/DISCLAIMER DISCLAIMER.nvramtool
|
|
install -pm644 util/romcc/COPYING COPYING.romcc
|
|
install -pm644 util/optionlist/README README.optionlist
|
|
install -pm644 util/amdtools/README README.amdtools
|
|
cp -a util/amdtools/example_input example_input.amdtools
|
|
%ifarch %{ix86} x86_64
|
|
install -pm644 util/viatool/README README.viatool
|
|
install -pm644 util/msrtool/COPYING COPYING.msrtool
|
|
%endif
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.superiotool COPYING.superiotool
|
|
%doc README.nvramtool COPYING.nvramtool DISCLAIMER.nvramtool
|
|
%doc README.amdtools example_input.amdtools
|
|
%{_bindir}/cbfstool
|
|
%{_bindir}/cbmem
|
|
%{_bindir}/ifdfake
|
|
%{_bindir}/ifdtool
|
|
%{_bindir}/romcc
|
|
%{_bindir}/viatool
|
|
%{_sbindir}/ectool
|
|
%{_sbindir}/inteltool
|
|
%{_sbindir}/amdfwtool
|
|
%{_sbindir}/k8-compare-pci-space.pl
|
|
%{_sbindir}/k8-interpret-extended-memory-settings.pl
|
|
%{_sbindir}/k8-read-mem-settings.sh
|
|
%{_sbindir}/k8resdump
|
|
%{_sbindir}/msrtool
|
|
%{_sbindir}/nvramtool
|
|
%{_sbindir}/parse-bkdg.pl
|
|
%{_sbindir}/superiotool
|
|
%{_mandir}/man1/*
|
|
%{_mandir}/man8/*
|
|
|
|
%changelog
|