2018-02-28 10:42:19 +00:00
|
|
|
%global project skiboot
|
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
Name: opal-prd
|
2018-03-02 08:58:04 +00:00
|
|
|
Version: 5.10.1
|
2018-02-28 10:42:19 +00:00
|
|
|
Release: 1%{?dist}
|
2016-02-26 03:28:16 +00:00
|
|
|
Summary: OPAL Processor Recovery Diagnostics Daemon
|
|
|
|
|
|
|
|
Group: System Environment/Daemons
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://github.com/open-power/skiboot
|
2016-02-26 06:29:48 +00:00
|
|
|
|
|
|
|
# Presently opal-prd is supported on ppc64le architecture only.
|
|
|
|
ExclusiveArch: ppc64le
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
BuildRequires: systemd
|
2018-02-28 10:42:19 +00:00
|
|
|
BuildRequires: gcc
|
2018-02-26 13:15:37 +00:00
|
|
|
%if 0%{?fedora}
|
2017-04-19 06:08:09 +00:00
|
|
|
BuildRequires: gcc-powerpc64-linux-gnu
|
2018-02-26 13:15:37 +00:00
|
|
|
%endif
|
2017-04-19 06:08:09 +00:00
|
|
|
BuildRequires: openssl-devel
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
2018-02-28 10:42:19 +00:00
|
|
|
Source0: https://github.com/open-power/%{project}/archive/v%{version}/%{project}-%{version}.tar.gz
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides a daemon to load and run the OpenPower firmware's
|
|
|
|
Processor Recovery Diagnostics binary. This is responsible for run time
|
|
|
|
maintenance of OpenPower Systems hardware.
|
|
|
|
|
|
|
|
|
|
|
|
%package -n opal-utils
|
|
|
|
Summary: OPAL firmware utilities
|
|
|
|
Group: Applications/System
|
|
|
|
|
|
|
|
%description -n opal-utils
|
|
|
|
This package contains utility programs.
|
|
|
|
|
|
|
|
The 'gard' utility, can read, parse and clear hardware gard partitions
|
|
|
|
on OpenPower platforms. The 'getscom' and 'putscom' utilities provide
|
|
|
|
an interface to query or modify the registers of the different chipsets
|
|
|
|
of an OpenPower system. 'pflash' is a tool to access the flash modules
|
|
|
|
on such systems and update the OpenPower firmware.
|
|
|
|
|
|
|
|
%package -n opal-firmware
|
|
|
|
Summary: OPAL firmware
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n opal-firmware
|
|
|
|
OPAL firmware, aka skiboot, loads the bootloader and provides runtime
|
|
|
|
services to the OS (Linux) on IBM Power and OpenPower systems.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2018-02-28 10:42:19 +00:00
|
|
|
%setup -q -n %{project}-%{version}
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
OPAL_PRD_VERSION=%{version} make V=1 CFLAGS="%{optflags}" -C external/opal-prd
|
|
|
|
GARD_VERSION=%{version} make V=1 CFLAGS="%{optflags}" -C external/gard
|
|
|
|
PFLASH_VERSION=%{version} make V=1 CFLAGS="%{optflags}" -C external/pflash
|
2017-04-19 06:08:09 +00:00
|
|
|
XSCOM_VERSION=%{version} make V=1 CFLAGS="%{optflags}" -C external/xscom-utils
|
2018-02-26 13:15:37 +00:00
|
|
|
|
|
|
|
# build skiboot with a cross-compiler on Fedora and with system compiler otherwise
|
|
|
|
# and always use upstream compiler flags for the firmware (no CFLAGS override)
|
|
|
|
%if 0%{?fedora}
|
|
|
|
SKIBOOT_VERSION=%{version} make V=1 CROSS="powerpc64-linux-gnu-"
|
|
|
|
%else
|
|
|
|
SKIBOOT_VERSION=%{version} make V=1 CROSS=
|
|
|
|
%endif
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
|
|
|
|
make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
|
|
|
|
cp external/pflash/pflash %{buildroot}%{_sbindir}
|
|
|
|
cp external/xscom-utils/{get,put}scom %{buildroot}%{_sbindir}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_unitdir}
|
2017-04-18 17:16:27 +00:00
|
|
|
install -m 644 -p external/opal-prd/opal-prd.service %{buildroot}%{_unitdir}/opal-prd.service
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/qemu
|
|
|
|
install -m 644 -p skiboot.lid %{buildroot}%{_datadir}/qemu/skiboot.lid
|
2017-04-19 06:08:09 +00:00
|
|
|
install -m 644 -p skiboot.lid.xz %{buildroot}%{_datadir}/qemu/skiboot.lid.xz
|
2016-02-26 03:28:16 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%systemd_post opal-prd.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun opal-prd.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart opal-prd.service
|
|
|
|
|
|
|
|
%files
|
2017-04-19 06:08:09 +00:00
|
|
|
%doc README.md
|
2016-02-26 03:28:16 +00:00
|
|
|
%license LICENCE
|
|
|
|
%{_sbindir}/opal-prd
|
|
|
|
%{_unitdir}/opal-prd.service
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
%files -n opal-utils
|
2017-04-19 06:08:09 +00:00
|
|
|
%doc README.md
|
2016-02-26 03:28:16 +00:00
|
|
|
%license LICENCE
|
|
|
|
%{_sbindir}/opal-gard
|
|
|
|
%{_sbindir}/getscom
|
|
|
|
%{_sbindir}/putscom
|
|
|
|
%{_sbindir}/pflash
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%files -n opal-firmware
|
2017-04-19 06:08:09 +00:00
|
|
|
%doc README.md
|
2016-02-26 03:28:16 +00:00
|
|
|
%license LICENCE
|
|
|
|
%{_datadir}/qemu/
|
|
|
|
|
|
|
|
%changelog
|
2018-03-02 08:58:04 +00:00
|
|
|
* Fri Mar 02 2018 Dan Horák <dan[at]danny.cz> - 5.10.1-1
|
|
|
|
- Update to latest upstream 5.10.1
|
|
|
|
|
2018-02-28 10:42:19 +00:00
|
|
|
* Wed Feb 28 2018 Dan Horák <dan[at]danny.cz> - 5.10-1
|
|
|
|
- Update to latest upstream 5.10
|
|
|
|
|
2018-02-26 13:15:37 +00:00
|
|
|
* Mon Feb 26 2018 Dan Horák <dan[at]danny.cz> - 5.9.8-3
|
|
|
|
- fix firmware build (#1545784)
|
|
|
|
|
2018-02-08 09:19:21 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-25 16:09:08 +00:00
|
|
|
* Thu Jan 25 2018 Dan Horák <dan[at]danny.cz> - 5.9.8-1
|
|
|
|
- Update to latest upstream 5.9.8
|
|
|
|
|
2017-08-04 09:03:15 +00:00
|
|
|
* Fri Aug 4 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.7.0-1
|
|
|
|
- Update to latest upstream 5.7.0
|
|
|
|
|
2017-08-03 04:28:13 +00:00
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-27 01:42:40 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.5.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-08-04 09:03:15 +00:00
|
|
|
* Wed Apr 19 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.5.0-2
|
2017-04-19 06:08:09 +00:00
|
|
|
- Fix build warning
|
|
|
|
- Include skiboot.lid.xz file
|
|
|
|
|
2017-08-04 09:03:15 +00:00
|
|
|
* Tue Apr 18 2017 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.5.0-1
|
2017-04-18 17:16:27 +00:00
|
|
|
- Update to latest upstream 5.5.0
|
|
|
|
|
2017-02-11 00:46:39 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-03-21 14:31:50 +00:00
|
|
|
* Mon Mar 21 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.2.0
|
|
|
|
- Update to latest upstream 5.2.0
|
|
|
|
|
2016-02-26 06:27:42 +00:00
|
|
|
* Fri Feb 26 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-4
|
|
|
|
- Fix stack frame compilation issue on gcc6
|
2016-02-26 06:29:48 +00:00
|
|
|
- Remove ppc64 from ExclusiveArch list
|
2016-02-26 06:27:42 +00:00
|
|
|
|
2016-02-26 03:28:16 +00:00
|
|
|
* Mon Feb 22 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-3
|
|
|
|
- Fix opal-prd recompilation issse during install
|
|
|
|
|
|
|
|
* Mon Feb 22 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13-2
|
|
|
|
- Added "Requires(post|preun|postun) tags"
|
|
|
|
|
|
|
|
* Tue Feb 09 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13
|
|
|
|
- Update to latest upstream 5.1.13
|
|
|
|
- Fixed specfile based on Dan's review comment (#1284527)
|
|
|
|
|
|
|
|
* Wed Nov 25 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-4
|
|
|
|
- Fixed specfile based on Dan's review comment (#1284527)
|
|
|
|
|
|
|
|
* Tue Nov 24 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-3
|
|
|
|
- Consistent use of build macros
|
|
|
|
- Removed defattr from files section
|
|
|
|
|
|
|
|
* Tue Nov 24 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11-2
|
|
|
|
- Minor update to spec file
|
|
|
|
|
|
|
|
* Mon Nov 23 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.11
|
|
|
|
- Initial Fedora packaging
|