4
Summary: OPAL Processor Recovery Diagnostics Daemon
6
Group: System Environment/Daemons
8
URL: http://github.com/open-power/skiboot
11
BuildRequires: systemd
15
Source0: https://github.com/open-power/skiboot/archive/skiboot-%{version}.tar.gz
16
Source1: opal-prd.socket
17
Source2: opal-prd.service
20
This package provides a daemon to load and run the OpenPower firmware's
21
Processor Recovery Diagnostics binary. This is responsible for run time
22
maintenance of OpenPower Systems hardware.
25
%package -n opal-utils
26
Summary: OPAL firmware utilities
27
Group: Applications/System
29
%description -n opal-utils
30
This package contains utility programs.
32
The 'gard' utility can read, parse and clear hardware gard partitions
33
on OpenPower platforms. The 'getscom' and 'putscom' utilities provide
34
an interface to query or modify the registers of the different chipsets
35
of an OpenPower system. 'pflash' is a tool to access the flash modules
36
on such systems and update the OpenPower firmware.
38
%package -n opal-firmware
39
Summary: OPAL firmware
42
%description -n opal-firmware
43
OPAL firmware, aka skiboot, loads the bootloader and provides runtime
44
services to the OS (Linux) on IBM Power and OpenPower systems.
49
%setup -q -n skiboot-skiboot-%version
52
SKIBOOT_VERSION=%version CROSS= make V=1 %{?_smp_mflags}
53
OPAL_PRD_VERSION=%version make V=1 -C external/opal-prd
54
GARD_VERSION=%version make V=1 -C external/gard
55
PFLASH_VERSION=%version make V=1 -C external/pflash
56
XSCOM_VERSION=%version make V=1 -C external/xscom-utils
59
make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
60
make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
61
make -C external/xscom-utils install DESTDIR=%{buildroot} prefix=/usr
63
mkdir -p %{buildroot}%{_unitdir}
64
install -m 644 -p %{SOURCE1} %{buildroot}%{_unitdir}/opal-prd.socket
65
install -m 644 -p %{SOURCE2} %{buildroot}%{_unitdir}/opal-prd.service
67
mkdir -p %{buildroot}%{_datadir}/qemu
68
install -m 644 -p skiboot.lid %{buildroot}%{_datadir}/qemu/skiboot.lid
71
if [ $1 -eq 1 ] ; then
72
# Initial installation
73
/bin/systemctl enable opal-prd.service >/dev/null 2>&1 || :
74
/bin/systemctl start opal-prd.service >/dev/null 2>&1 || :
78
if [ $1 -eq 0 ] ; then
79
# Package removal, not upgrade
80
/bin/systemctl --no-reload disable opal-prd.service > /dev/null 2>&1 || :
81
/bin/systemctl stop opal-prd.service > /dev/null 2>&1 || :
85
systemctl daemon-reload >/dev/null 2>&1 || :
86
if [ "$1" -ge 1 ] ; then
87
/bin/systemctl try-restart opal-prd.service >/dev/null 2>&1 || :
94
%{_unitdir}/opal-prd.socket
95
%{_unitdir}/opal-prd.service
101
%{_sbindir}/opal-gard
108
%files -n opal-firmware
114
* Tue Feb 09 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13
115
- Update to latest upstream release
117
* Mon Nov 23 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.12
118
- initial upstream spec file