2009-03-05 16:41:38 +01:00
|
|
|
#
|
2010-12-21 17:33:44 +01:00
|
|
|
# spec file for package coreboot-utils
|
2009-03-05 16:41:38 +01:00
|
|
|
#
|
2018-01-31 16:30:55 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-03-05 16:41:38 +01:00
|
|
|
#
|
|
|
|
# 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
|
2018-12-24 10:33:32 +01:00
|
|
|
Version: 4.9
|
2018-05-17 16:34:50 +02:00
|
|
|
Release: 0
|
2010-12-21 17:33:44 +01:00
|
|
|
Summary: A universal flash programming utility
|
2018-05-17 16:34:50 +02:00
|
|
|
License: GPL-2.0-only
|
2009-03-05 16:41:38 +01:00
|
|
|
Group: Development/Tools/Other
|
2018-12-24 10:33:32 +01:00
|
|
|
URL: https://coreboot.org/
|
2018-01-31 16:30:55 +01:00
|
|
|
Source0: https://www.coreboot.org/releases/coreboot-%{version}.tar.xz
|
|
|
|
Source1: https://www.coreboot.org/releases/coreboot-%{version}.tar.xz.sig
|
2018-12-24 10:33:32 +01:00
|
|
|
#http://keyserver.ubuntu.com:11371/pks/lookup?op=get&search=0x269C04E1#/%%{name}.keyring
|
2018-01-31 16:30:55 +01:00
|
|
|
Source3: %{name}.keyring
|
2017-05-05 18:48:47 +02:00
|
|
|
Patch1: no-pie.patch
|
2011-09-18 20:47:03 +02:00
|
|
|
Patch2: k8resdump.diff
|
2017-06-29 11:17:28 +02:00
|
|
|
Patch3: do-explicit-fallthrough.patch
|
2010-12-21 17:33:44 +01:00
|
|
|
BuildRequires: gcc-c++
|
2013-02-04 18:09:27 +01:00
|
|
|
BuildRequires: pciutils-devel
|
2017-03-06 16:22:07 +01:00
|
|
|
BuildRequires: xz
|
2013-02-04 18:09:27 +01:00
|
|
|
BuildRequires: zlib-devel
|
2009-03-05 16:41:38 +01:00
|
|
|
ExclusiveArch: %ix86 x86_64
|
|
|
|
|
|
|
|
%description
|
2016-01-09 20:39:41 +01:00
|
|
|
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.
|
2009-03-05 16:41:38 +01:00
|
|
|
|
|
|
|
%prep
|
2016-01-09 20:39:41 +01:00
|
|
|
%setup -q -n coreboot-%{version}
|
2017-06-29 11:17:28 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
2017-05-05 18:48:47 +02:00
|
|
|
%patch1 -p1
|
2017-06-29 11:17:28 +02:00
|
|
|
%endif
|
2010-12-21 17:33:44 +01:00
|
|
|
%patch2 -p1
|
2017-06-29 11:17:28 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%patch3 -p1
|
|
|
|
%endif
|
2009-03-05 16:41:38 +01:00
|
|
|
|
|
|
|
%build
|
2016-01-09 20:39:41 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/ectool
|
2018-12-24 10:33:32 +01:00
|
|
|
make %{?_smp_mflags} CC="cc %{optflags}" -C util/superiotool
|
2016-01-09 20:39:41 +01:00
|
|
|
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
|
2018-01-31 16:30:55 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -I../../src/commonlib/include" -C util/ifdtool
|
2016-01-09 20:39:41 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/cbfstool
|
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/k8resdump
|
|
|
|
%ifarch %{ix86} x86_64
|
2017-03-06 16:22:07 +01:00
|
|
|
CXXFLAGS="$CXXFLAGS -fPIC"
|
|
|
|
CFLAGS="$CFLAGS -fPIC"
|
2016-01-09 20:39:41 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/inteltool
|
2018-01-31 16:30:55 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags}" -C util/intelmetool
|
2016-02-07 10:19:57 +01:00
|
|
|
make %{?_smp_mflags} HOSTCC="cc %{optflags}" -C util/amdfwtool
|
2016-01-09 20:39:41 +01:00
|
|
|
make %{?_smp_mflags} CFLAGS="%{optflags} -I." -C util/viatool
|
|
|
|
(cd util/msrtool && %configure && make %{?_smp_mflags})
|
|
|
|
%endif
|
2010-12-21 17:33:44 +01:00
|
|
|
|
2009-03-05 16:41:38 +01:00
|
|
|
%install
|
2016-01-09 20:39:41 +01:00
|
|
|
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
|
2018-01-31 16:30:55 +01:00
|
|
|
make %{?_smp_mflags} DESTDIR=%{buildroot} PREFIX=%{_prefix} -C util/intelmetool install
|
2016-01-09 20:39:41 +01:00
|
|
|
# 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}
|
2016-02-07 10:19:57 +01:00
|
|
|
install util/amdfwtool/amdfwtool %{buildroot}%{_sbindir}
|
2016-01-09 20:39:41 +01:00
|
|
|
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/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
|
2009-03-05 16:41:38 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2018-05-17 16:34:50 +02:00
|
|
|
%license COPYING.superiotool
|
|
|
|
%doc README.superiotool
|
|
|
|
%license COPYING.nvramtool
|
|
|
|
%doc README.nvramtool DISCLAIMER.nvramtool
|
2016-01-09 20:39:41 +01:00
|
|
|
%doc README.amdtools example_input.amdtools
|
|
|
|
%{_bindir}/cbfstool
|
|
|
|
%{_bindir}/cbmem
|
|
|
|
%{_bindir}/ifdtool
|
|
|
|
%{_bindir}/romcc
|
|
|
|
%{_bindir}/viatool
|
2010-12-21 17:33:44 +01:00
|
|
|
%{_sbindir}/ectool
|
2016-01-09 20:39:41 +01:00
|
|
|
%{_sbindir}/inteltool
|
2018-01-31 16:30:55 +01:00
|
|
|
%{_sbindir}/intelmetool
|
2016-02-07 10:19:57 +01:00
|
|
|
%{_sbindir}/amdfwtool
|
2010-12-21 17:33:44 +01:00
|
|
|
%{_sbindir}/k8-compare-pci-space.pl
|
2016-01-09 20:39:41 +01:00
|
|
|
%{_sbindir}/k8-interpret-extended-memory-settings.pl
|
2010-12-21 17:33:44 +01:00
|
|
|
%{_sbindir}/k8-read-mem-settings.sh
|
2016-01-09 20:39:41 +01:00
|
|
|
%{_sbindir}/k8resdump
|
|
|
|
%{_sbindir}/msrtool
|
|
|
|
%{_sbindir}/nvramtool
|
2010-12-21 17:33:44 +01:00
|
|
|
%{_sbindir}/parse-bkdg.pl
|
2016-01-09 20:39:41 +01:00
|
|
|
%{_sbindir}/superiotool
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man8/*
|
2009-03-05 16:41:38 +01:00
|
|
|
|
|
|
|
%changelog
|