|
|
c2a21e |
%global project skiboot
|
|
|
c2a21e |
|
|
|
c2a21e |
Name: opal-prd
|
|
|
c2a21e |
Version: 6.2
|
|
|
c2a21e |
Release: 3%{?dist}
|
|
|
c2a21e |
Summary: OPAL Processor Recovery Diagnostics Daemon
|
|
|
c2a21e |
|
|
|
c2a21e |
Group: System Environment/Daemons
|
|
|
c2a21e |
License: ASL 2.0
|
|
|
c2a21e |
URL: http://github.com/open-power/skiboot
|
|
|
c2a21e |
|
|
|
c2a21e |
# Presently opal-prd is supported on ppc64le architecture only.
|
|
|
c2a21e |
ExclusiveArch: ppc64le
|
|
|
c2a21e |
|
|
|
c2a21e |
BuildRequires: systemd
|
|
|
c2a21e |
BuildRequires: gcc
|
|
|
c2a21e |
%if 0%{?fedora}
|
|
|
c2a21e |
BuildRequires: gcc-powerpc64-linux-gnu
|
|
|
c2a21e |
%endif
|
|
|
c2a21e |
BuildRequires: openssl-devel
|
|
|
c2a21e |
|
|
|
c2a21e |
Requires(post): systemd
|
|
|
c2a21e |
Requires(preun): systemd
|
|
|
c2a21e |
Requires(postun): systemd
|
|
|
c2a21e |
|
|
|
c2a21e |
Source0: https://github.com/open-power/%{project}/archive/v%{version}/%{project}-%{version}.tar.gz
|
|
|
c2a21e |
Source1: opal-prd-rsyslog
|
|
|
c2a21e |
Source2: opal-prd-logrotate
|
|
|
c2a21e |
|
|
|
c2a21e |
%description
|
|
|
c2a21e |
This package provides a daemon to load and run the OpenPower firmware's
|
|
|
c2a21e |
Processor Recovery Diagnostics binary. This is responsible for run time
|
|
|
c2a21e |
maintenance of OpenPower Systems hardware.
|
|
|
c2a21e |
|
|
|
c2a21e |
|
|
|
c2a21e |
%package -n opal-utils
|
|
|
c2a21e |
Summary: OPAL firmware utilities
|
|
|
c2a21e |
Group: Applications/System
|
|
|
c2a21e |
|
|
|
c2a21e |
%description -n opal-utils
|
|
|
c2a21e |
This package contains utility programs.
|
|
|
c2a21e |
|
|
|
c2a21e |
The 'gard' utility, can read, parse and clear hardware gard partitions
|
|
|
c2a21e |
on OpenPower platforms. The 'getscom' and 'putscom' utilities provide
|
|
|
c2a21e |
an interface to query or modify the registers of the different chipsets
|
|
|
c2a21e |
of an OpenPower system. 'pflash' is a tool to access the flash modules
|
|
|
c2a21e |
on such systems and update the OpenPower firmware.
|
|
|
c2a21e |
|
|
|
c2a21e |
%package -n opal-firmware
|
|
|
c2a21e |
Summary: OPAL firmware
|
|
|
c2a21e |
BuildArch: noarch
|
|
|
c2a21e |
|
|
|
c2a21e |
%description -n opal-firmware
|
|
|
c2a21e |
OPAL firmware, aka skiboot, loads the bootloader and provides runtime
|
|
|
c2a21e |
services to the OS (Linux) on IBM Power and OpenPower systems.
|
|
|
c2a21e |
|
|
|
c2a21e |
%prep
|
|
|
c2a21e |
|
|
|
c2a21e |
%setup -q -n %{project}-%{version}
|
|
|
c2a21e |
|
|
|
c2a21e |
%build
|
|
|
c2a21e |
OPAL_PRD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" -C external/opal-prd
|
|
|
c2a21e |
GARD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" -C external/gard
|
|
|
c2a21e |
PFLASH_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" -C external/pflash
|
|
|
c2a21e |
XSCOM_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{optflags}" LDFLAGS="%{__global_ldflags}" -C external/xscom-utils
|
|
|
c2a21e |
|
|
|
c2a21e |
# build skiboot with a cross-compiler on Fedora and with system compiler otherwise
|
|
|
c2a21e |
# and always use upstream compiler flags for the firmware (no CFLAGS override)
|
|
|
c2a21e |
%if 0%{?fedora}
|
|
|
c2a21e |
SKIBOOT_VERSION=%{version} make V=1 CROSS="powerpc64-linux-gnu-"
|
|
|
c2a21e |
%else
|
|
|
c2a21e |
SKIBOOT_VERSION=%{version} make V=1 CROSS=
|
|
|
c2a21e |
%endif
|
|
|
c2a21e |
|
|
|
c2a21e |
%install
|
|
|
c2a21e |
make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
|
|
|
c2a21e |
make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
|
|
|
c2a21e |
make -C external/pflash install DESTDIR=%{buildroot} prefix=/usr
|
|
|
c2a21e |
make -C external/xscom-utils install DESTDIR=%{buildroot} prefix=/usr
|
|
|
c2a21e |
|
|
|
c2a21e |
mkdir -p %{buildroot}%{_unitdir}
|
|
|
c2a21e |
install -m 644 -p external/opal-prd/opal-prd.service %{buildroot}%{_unitdir}/opal-prd.service
|
|
|
c2a21e |
|
|
|
c2a21e |
mkdir -p %{buildroot}%{_datadir}/qemu
|
|
|
c2a21e |
install -m 644 -p skiboot.lid %{buildroot}%{_datadir}/qemu/skiboot.lid
|
|
|
c2a21e |
install -m 644 -p skiboot.lid.xz %{buildroot}%{_datadir}/qemu/skiboot.lid.xz
|
|
|
c2a21e |
|
|
|
c2a21e |
# log opal-prd messages to /var/log/opal-prd.log
|
|
|
c2a21e |
mkdir -p %{buildroot}%{_sysconfdir}/{rsyslog.d,logrotate.d}
|
|
|
c2a21e |
install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/rsyslog.d/opal-prd.conf
|
|
|
c2a21e |
install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/opal-prd
|
|
|
c2a21e |
|
|
|
c2a21e |
%post
|
|
|
c2a21e |
%systemd_post opal-prd.service
|
|
|
c2a21e |
|
|
|
c2a21e |
%preun
|
|
|
c2a21e |
%systemd_preun opal-prd.service
|
|
|
c2a21e |
|
|
|
c2a21e |
%postun
|
|
|
c2a21e |
%systemd_postun_with_restart opal-prd.service
|
|
|
c2a21e |
|
|
|
c2a21e |
%files
|
|
|
c2a21e |
%doc README.md
|
|
|
c2a21e |
%license LICENCE
|
|
|
c2a21e |
%config(noreplace) %{_sysconfdir}/logrotate.d/opal-prd
|
|
|
c2a21e |
%config(noreplace) %{_sysconfdir}/rsyslog.d/opal-prd.conf
|
|
|
c2a21e |
%{_sbindir}/opal-prd
|
|
|
c2a21e |
%{_unitdir}/opal-prd.service
|
|
|
c2a21e |
%{_mandir}/man8/*
|
|
|
c2a21e |
|
|
|
c2a21e |
%files -n opal-utils
|
|
|
c2a21e |
%doc README.md
|
|
|
c2a21e |
%license LICENCE
|
|
|
c2a21e |
%{_sbindir}/opal-gard
|
|
|
c2a21e |
%{_sbindir}/getscom
|
|
|
c2a21e |
%{_sbindir}/putscom
|
|
|
c2a21e |
%{_sbindir}/pflash
|
|
|
c2a21e |
%{_sbindir}/getsram
|
|
|
c2a21e |
%{_mandir}/man1/*
|
|
|
c2a21e |
|
|
|
c2a21e |
%files -n opal-firmware
|
|
|
c2a21e |
%doc README.md
|
|
|
c2a21e |
%license LICENCE
|
|
|
c2a21e |
%{_datadir}/qemu/
|
|
|
c2a21e |
|
|
|
c2a21e |
%changelog
|
|
|
c2a21e |
* Wed May 22 2019 Than Ngo <than@redhat.com> - 6.2-3
|
|
|
c2a21e |
- Related: #1579164, log messages to /var/log/opal-prd.log
|
|
|
c2a21e |
|
|
|
c2a21e |
* Thu Dec 20 2018 Than Ngo <than@redhat.com> - 6.2-2
|
|
|
c2a21e |
- add man pages for getscom, pflash, putscom
|
|
|
c2a21e |
|
|
|
c2a21e |
* Tue Dec 18 2018 Than Ngo <than@redhat.com> - 6.2-1
|
|
|
c2a21e |
- Resolves: #1640691, rebase to 6.2
|
|
|
c2a21e |
- Resolves: #1579164, log messages to /var/log/opal-prd.log
|
|
|
c2a21e |
- Resolves: #1660113, opal-prd occ reset causes hardlockup
|
|
|
c2a21e |
|
|
|
c2a21e |
* Thu Jun 28 2018 Than Ngo <than@redhat.com> - 6.0.4-2
|
|
|
c2a21e |
- Resolves: #1596245 - "diag_encl -d" creates xml file with blank space in file name
|
|
|
c2a21e |
|
|
|
c2a21e |
* Thu Jun 21 2018 Than Ngo <than@redhat.com> - 6.0.4-1
|
|
|
c2a21e |
- Resolves: #1537001 - update to 6.0.4
|
|
|
c2a21e |
|
|
|
c2a21e |
* Mon Jan 22 2018 Than Ngo <than@redhat.com> - 5.9-2
|
|
|
c2a21e |
- Related: rhbz#1456536 - add support for runtime OCC load/start in ZZ
|
|
|
c2a21e |
|
|
|
c2a21e |
* Tue Oct 31 2017 Dan HorĂ¡k <dhorak@redhat.com> - 5.9-1
|
|
|
c2a21e |
- Resolves: rhbz#1456536 - opal-prd update to 5.9
|
|
|
c2a21e |
|
|
|
c2a21e |
* Wed Oct 25 2017 Than Ngo <than@redhat.com> - 5.8-1
|
|
|
c2a21e |
- Resolves: rhbz#1456536 - opal-prd update to 5.8
|
|
|
c2a21e |
|
|
|
c2a21e |
* Thu Apr 20 2017 Rafael Fonseca <rdossant@redhat.com> - 5.5.0-1
|
|
|
c2a21e |
- Resolves: rhbz#1368702 - [Pegas1.0 FEAT] opal-prd package update
|
|
|
c2a21e |
|
|
|
c2a21e |
* Tue Mar 14 2017 Rafael Fonseca <rdossant@redhat.com> - 5.4.3-2
|
|
|
c2a21e |
- Resolves: rhbz#1430332 - Restart opal-prd daemon on any kind of failure
|
|
|
c2a21e |
|
|
|
c2a21e |
* Wed Jan 18 2017 Rafael Fonseca <rdossant@redhat.com> - 5.4.3-1
|
|
|
c2a21e |
- Resolves: rhbz#1384952 - [7.4 FEAT] opal-prd package update for ppc64le
|
|
|
c2a21e |
|
|
|
c2a21e |
* Thu Sep 22 2016 Rafael Fonseca <rdossant@redhat.com> - 5.2.0-3
|
|
|
c2a21e |
- Resolves: rhbz#1375449
|
|
|
c2a21e |
|
|
|
c2a21e |
* Thu Aug 25 2016 Rafael Fonseca <rdossant@redhat.com> - 5.2.0-2
|
|
|
c2a21e |
- Resolves: rhbz#1367342
|
|
|
c2a21e |
- Remove systemd socket.
|
|
|
c2a21e |
|
|
|
c2a21e |
* Fri May 20 2016 Rafael dos Santos <rdossant@redhat.com> - 5.2.0-1
|
|
|
c2a21e |
- Importing package from Fedora.
|
|
|
c2a21e |
|