~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/skiboot/skiboot.spec

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Name:           opal-prd
 
2
Version:        5.1.13
 
3
Release:        1%{?dist}
 
4
Summary:        OPAL Processor Recovery Diagnostics Daemon
 
5
 
 
6
Group:          System Environment/Daemons
 
7
License:        ASL 2.0
 
8
URL:            http://github.com/open-power/skiboot
 
9
ExclusiveArch:  ppc64le
 
10
 
 
11
BuildRequires:  systemd
 
12
 
 
13
Requires:       systemd
 
14
 
 
15
Source0:        https://github.com/open-power/skiboot/archive/skiboot-%{version}.tar.gz
 
16
Source1:        opal-prd.socket
 
17
Source2:        opal-prd.service
 
18
 
 
19
%description
 
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.
 
23
 
 
24
 
 
25
%package -n     opal-utils
 
26
Summary:        OPAL firmware utilities
 
27
Group:          Applications/System
 
28
 
 
29
%description -n opal-utils
 
30
This package contains utility programs.
 
31
 
 
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.
 
37
 
 
38
%package -n     opal-firmware
 
39
Summary:        OPAL firmware
 
40
BuildArch:      noarch
 
41
 
 
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.
 
45
 
 
46
 
 
47
%prep
 
48
 
 
49
%setup -q -n skiboot-skiboot-%version
 
50
 
 
51
%build
 
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
 
57
 
 
58
%install
 
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
 
62
 
 
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
 
66
 
 
67
mkdir -p %{buildroot}%{_datadir}/qemu
 
68
install -m 644 -p skiboot.lid %{buildroot}%{_datadir}/qemu/skiboot.lid
 
69
 
 
70
%post
 
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 || :
 
75
fi
 
76
 
 
77
%preun
 
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 || :
 
82
fi
 
83
 
 
84
%postun
 
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 || :
 
88
fi
 
89
 
 
90
%files
 
91
%doc README
 
92
%license LICENCE
 
93
%{_sbindir}/opal-prd
 
94
%{_unitdir}/opal-prd.socket
 
95
%{_unitdir}/opal-prd.service
 
96
%{_mandir}/man8/*
 
97
 
 
98
%files -n opal-utils
 
99
%doc README
 
100
%license LICENCE
 
101
%{_sbindir}/opal-gard
 
102
%{_sbindir}/getscom
 
103
%{_sbindir}/putscom
 
104
%{_sbindir}/getsram
 
105
%{_sbindir}/pflash
 
106
%{_mandir}/man1/*
 
107
 
 
108
%files -n opal-firmware
 
109
%doc README
 
110
%license LICENCE
 
111
%{_datadir}/qemu/
 
112
 
 
113
%changelog
 
114
* Tue Feb 09 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.13
 
115
- Update to latest upstream release
 
116
 
 
117
* Mon Nov 23 2015 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 5.1.12
 
118
- initial upstream spec file