Compare commits

...

No commits in common. "c9" and "c8" have entirely different histories.
c9 ... c8

2 changed files with 60 additions and 116 deletions

View File

@ -1,3 +1,3 @@
if $programname == 'opal-prd' then /var/log/opal-prd.log if $programname == 'opal-prd' then /var/log/opal-prd.log
if $programname == 'opal-prd' and $syslogseverity <= 4 then /var/log/messages if $programname == 'opal-prd' and $syslogseverity <= 4 then /var/log/messages
if $programname == 'opal-prd' then stop if $programname == 'opal-prd' then ~

View File

@ -2,9 +2,10 @@
Name: opal-prd Name: opal-prd
Version: 6.7.1 Version: 6.7.1
Release: 7%{?dist} Release: 1%{?dist}
Summary: OPAL Processor Recovery Diagnostics Daemon Summary: OPAL Processor Recovery Diagnostics Daemon
Group: System Environment/Daemons
License: ASL 2.0 License: ASL 2.0
URL: http://github.com/open-power/skiboot URL: http://github.com/open-power/skiboot
@ -28,6 +29,7 @@ Source0: https://github.com/open-power/%{project}/archive/v%{version}/%{project}
Source1: opal-prd-rsyslog Source1: opal-prd-rsyslog
Source2: opal-prd-logrotate Source2: opal-prd-logrotate
# upstream fix
%description %description
This package provides a daemon to load and run the OpenPower firmware's This package provides a daemon to load and run the OpenPower firmware's
@ -37,6 +39,7 @@ maintenance of OpenPower Systems hardware.
%package -n opal-utils %package -n opal-utils
Summary: OPAL firmware utilities Summary: OPAL firmware utilities
Group: Applications/System
%description -n opal-utils %description -n opal-utils
This package contains utility programs. This package contains utility programs.
@ -55,17 +58,15 @@ BuildArch: noarch
OPAL firmware, aka skiboot, loads the bootloader and provides runtime OPAL firmware, aka skiboot, loads the bootloader and provides runtime
services to the OS (Linux) on IBM Power and OpenPower systems. services to the OS (Linux) on IBM Power and OpenPower systems.
%prep %prep
%autosetup -p1 -n %{project}-%{version} %setup -q -n %{project}-%{version}
%build %build
OPAL_PRD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" ASFLAGS="-m64 -Wa,--generate-missing-build-notes=yes" -C external/opal-prd OPAL_PRD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" ASFLAGS="-m64 -Wa,--generate-missing-build-notes=yes" -C external/opal-prd
GARD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/gard GARD_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/gard
PFLASH_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/pflash PFLASH_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/pflash
XSCOM_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/xscom-utils XSCOM_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/xscom-utils
FFSPART_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags} -pie -Wl,-z,now" LDFLAGS="%{build_ldflags}" -C external/ffspart FFSPART_VERSION=%{version} make V=1 CC="gcc" CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" -C external/ffspart
# build skiboot with a cross-compiler on Fedora and with system compiler otherwise # 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) # and always use upstream compiler flags for the firmware (no CFLAGS override)
@ -75,7 +76,6 @@ SKIBOOT_VERSION=%{version} make V=1 CROSS="powerpc64-linux-gnu-"
SKIBOOT_VERSION=%{version} make V=1 CROSS= SKIBOOT_VERSION=%{version} make V=1 CROSS=
%endif %endif
%install %install
OPAL_PRD_VERSION=%{version} make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr OPAL_PRD_VERSION=%{version} make -C external/opal-prd install DESTDIR=%{buildroot} prefix=/usr
GARD_VERSION=%{version} make -C external/gard install DESTDIR=%{buildroot} prefix=/usr GARD_VERSION=%{version} make -C external/gard install DESTDIR=%{buildroot} prefix=/usr
@ -92,14 +92,13 @@ install -m 644 -p skiboot.lid.xz %{buildroot}%{_datadir}/qemu/skiboot.lid.xz
# log opal-prd messages to /var/log/opal-prd.log # log opal-prd messages to /var/log/opal-prd.log
mkdir -p %{buildroot}%{_sysconfdir}/{rsyslog.d,logrotate.d} mkdir -p %{buildroot}%{_sysconfdir}/{rsyslog.d,logrotate.d}
install -m 644 -p %{SOURCE1} %{buildroot}/%{_sysconfdir}/rsyslog.d/opal-prd.conf install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/rsyslog.d/opal-prd.conf
install -m 644 -p %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/opal-prd install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/opal-prd
# install phberr script # install phberr script
install -D -p -m 644 external/pci-scripts/ppc.py %{buildroot}%{python3_sitelib}/ppc/__init__.py install -D -p -m 644 external/pci-scripts/ppc.py %{buildroot}%{python3_sitelib}/ppc/__init__.py
install -D -p -m 755 external/pci-scripts/phberr.py %{buildroot}%{_bindir}/phberr install -D -p -m 755 external/pci-scripts/phberr.py %{buildroot}%{_bindir}/phberr
%post %post
%systemd_post opal-prd.service %systemd_post opal-prd.service
@ -109,7 +108,6 @@ install -D -p -m 755 external/pci-scripts/phberr.py %{buildroot}%{_bindir}/phber
%postun %postun
%systemd_postun_with_restart opal-prd.service %systemd_postun_with_restart opal-prd.service
%files %files
%doc README.md %doc README.md
%license LICENCE %license LICENCE
@ -137,109 +135,55 @@ install -D -p -m 755 external/pci-scripts/phberr.py %{buildroot}%{_bindir}/phber
%license LICENCE %license LICENCE
%{_datadir}/qemu/ %{_datadir}/qemu/
%changelog %changelog
* Wed Feb 02 2022 Than Ngo <than@redhat.com> - 6.7.1-7 * Mon May 10 2021 Than Ngo <than@redhat.com> - 6.7.1-1
- Resolves: #2044883, annocheck FAIL - Resolves: #1921665, rebase to 6.7.1
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 6.7.1-6 * Mon Oct 05 2020 Than Ngo <than@redhat.com> - 6.6.3-2
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Resolves: #1885134, fix which makes the actual page off lining asynchronous
Related: rhbz#1991688
* Tue Jun 22 2021 Mohan Boddu <mboddu@redhat.com> - 6.7.1-5 * Thu Oct 01 2020 Than Ngo <than@redhat.com> - 6.6.3-1
- Rebuilt for RHEL 9 BETA for openssl 3.0 - Resolves: #1844427, rebase to 6.6.3
Related: rhbz#1971065
* Thu Jun 10 2021 Than Ngo <than@redhat.com> - 6.7.1-4 * Fri Apr 24 2020 Than Ngo <than@redhat.com> - 6.6-1
- Resolves: #1963126, The discard action (tilde character) is deprecated - Resolves: #1779211, rebase to 6.6
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 6.7.1-3 * Mon Oct 28 2019 Than Ngo <than@redhat.com> - 6.5.1-1
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 - Resolves: #1731434. rebase to 6.5.1
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 6.7.1-2 * Thu May 23 2019 Than Ngo <than@redhat.com> - 6.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - Related: #1664099, log messages to /var/log/opal-prd.log
* Thu Jan 07 2021 Dan Horák <dan@danny.cz> - 6.7.1-1 * Tue May 14 2019 Than Ngo <than@redhat.com> - 6.3.1-1
- update to 6.7.1 (#1913304) - Resolves: #1664099, rebase to 6.3.1
* Tue Nov 03 2020 Dan Horák <dan@danny.cz> - 6.7-2 * Mon Mar 25 2019 Than Ngo <than@redhat.com> - 6.2-3
- install phberr script - Related: #1664099. add missing man pages
- fix %%install to avoid recompilation
* Tue Nov 03 2020 Dan Horák <dan@danny.cz> - 6.7-1 * Thu Mar 21 2019 Than Ngo <than@redhat.com> - 6.2-2
- update to 6.7 - Related: #1682400, bump release for gating on tests
* Fri Oct 23 2020 Dan Horák <dan@danny.cz> - 6.6.4-1 * Tue Mar 19 2019 Than Ngo <than@redhat.com> - 6.2-1
- update to 6.6.4 (#1890868) - Resolves: #1664099, rebase to 6.2
- Resolves: #1682400, add gating on tests
* Thu Sep 10 2020 Dan Horák <dan@danny.cz> - 6.6.3-1 * Fri Dec 14 2018 Than Ngo <than@redhat.com> - 6.1-5
- update to 6.6.3 - Resolves: #1659458, opal-prd occ reset causes hardlockup
* Mon Aug 10 2020 Dan Horák <dan@danny.cz> - 6.6.2-3
- build and install ffspart
- add BR: openssl for skibot image signing
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.6.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 03 2020 Dan Horák <dan@danny.cz> - 6.6.2-1
- update to 6.6.2
* Tue Jun 09 2020 Dan Horák <dan@danny.cz> - 6.6.1-1
- update to 6.6.1
* Thu Apr 23 2020 Dan Horák <dan@danny.cz> - 6.6-1
- update to 6.6
* Fri Mar 20 2020 Dan Horák <dan@danny.cz> - 6.5.4-1
- update to 6.5.4
* Wed Mar 11 2020 Dan Horák <dan@danny.cz> - 6.5.3-1
- update to 6.5.3
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 6.5.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Dec 12 2019 Dan Horák <dan@danny.cz> - 6.5.2-1
- update to 6.5.2
* Thu Oct 24 2019 Dan Horák <dan@danny.cz> - 6.5.1-1
- update to 6.5.1
* Mon Aug 19 2019 Dan Horák <dan@danny.cz> - 6.5-1
- update to 6.5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Tue Jul 16 2019 Dan Horák <dan@danny.cz> - 6.4-1
- update to 6.4
* Fri May 24 2019 Than Ngo <than@redhat.com> - 6.3.1-1
- update to 6.3.1
- log messages to /var/log/opal-prd.log
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 6.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Dec 20 2018 Than Ngo <than@redhat.com> - 6.2-2
- add man pages
* Thu Dec 20 2018 Than Ngo <than@redhat.com> - 6.2-1
- update to 6.2
* Thu Sep 27 2018 Than Ngo <than@redhat.com> - 6.1-4 * Thu Sep 27 2018 Than Ngo <than@redhat.com> - 6.1-4
- log opal-prd messages to /var/log/opal-prd.log - opal-prd messages to /var/log/opal-prd.log
* Fri Sep 21 2018 Than Ngo <than@redhat.com> - 6.1-3 * Fri Sep 21 2018 Than Ngo <than@redhat.com> - 6.1-3
- Fixed opal-prd crash - Resolves: #1630612 - annocheck distro flag failures
- Fixed annocheck distro flag failures
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 6.1-2 * Mon Jul 30 2018 Than Ngo <than@redhat.com> - 6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - fixed bz#1568027, opal-prd crash
* Thu Jul 12 2018 Dan Horák <dan@danny.cz> - 6.1-1 * Mon Jul 16 2018 Than Ngo <than@redhat.com> - 6.1-1
- Update to latest upstream 6.1 - update to 6.1
* Fri Jun 29 2018 Than Ngo <than@redhat.com> - 6.0.4-2
- Resolves: #1596245, "diag_encl -d" creates xml file with blank space in file name
* Mon May 28 2018 Dan Horák <dan@danny.cz> - 6.0.4-1 * Mon May 28 2018 Dan Horák <dan@danny.cz> - 6.0.4-1
- Update to latest upstream 6.0.4 - Update to latest upstream 6.0.4