2022-10-13 17:30:45 +08:00
|
|
|
Name: hikptool
|
|
|
|
|
Summary: A userspace tool for Linux providing problem location on Kunpeng chips
|
|
|
|
|
Version: 1.0.0
|
2023-05-30 22:10:25 +08:00
|
|
|
Release: 10
|
2022-10-13 17:30:45 +08:00
|
|
|
License: MulanPSL2
|
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
|
ExclusiveOS: linux
|
|
|
|
|
URL: https://gitee.com/openeuler/hikptool
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
Prefix: /usr/lib64
|
|
|
|
|
Conflicts: %{name} < %{version}-%{release}
|
|
|
|
|
Provides: %{name} = %{version}-%{release}
|
|
|
|
|
BuildRequires: gcc make cmake
|
|
|
|
|
Requires: glibc
|
|
|
|
|
ExclusiveArch: aarch64
|
|
|
|
|
|
2022-12-12 14:19:30 +08:00
|
|
|
Patch0001: 0001-socip-Return-EINVAL-when-the-parameter-check-fails.patch
|
2022-12-14 13:59:42 +08:00
|
|
|
Patch0002: 0002-fix-compiler-security-option-problem.patch
|
2023-03-15 09:34:36 +00:00
|
|
|
Patch0003: 0003-fix-the-security-compilation-PIE-issue.patch
|
2023-04-06 11:45:38 +00:00
|
|
|
Patch0004: 0004-hikptool-fix-print-sas_dev-info-error-problem.patch
|
2023-05-30 22:10:25 +08:00
|
|
|
Patch0005: 0005-fix-hikptool-rciep-rsp-filed-error-problem.patch
|
|
|
|
|
Patch0006: 0006-fix-pcie_info-cmd-print-display-problem.patch
|
|
|
|
|
Patch0007: 0007-fix-signal-proc-func-api-modified-to-be-open-to-the-.patch
|
|
|
|
|
Patch0008: 0008-delete-pcie-AP_INT-module-for-dump-reg.patch
|
|
|
|
|
Patch0009: 0009-fix-serdes-module-dump-reg-num-is-not-enough-problem.patch
|
|
|
|
|
Patch0010: 0010-fix-the-number-of-PCS-lane-registers-in-the-PCIe-dum.patch
|
|
|
|
|
Patch0011: 0011-optimize-the-nic_mac-dump-register.patch
|
|
|
|
|
Patch0012: 0012-Fix-a-resource-release-bug-in-hikp_roh_get_cam_reg_n.patch
|
|
|
|
|
Patch0013: 0013-fix-missing-white-space-issue.patch
|
|
|
|
|
Patch0014: 0014-hikptool-fix-maininfo-detail-info-print-error.patch
|
|
|
|
|
Patch0015: 0015-hikptool-fix-print-sas_dqe-info-error-problem.patch
|
2022-12-12 14:19:30 +08:00
|
|
|
|
2022-10-13 17:30:45 +08:00
|
|
|
%description
|
|
|
|
|
This package contains the hikptool
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{name} -p1
|
|
|
|
|
mkdir -p build
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
cd build
|
|
|
|
|
cmake ../
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/bin
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
install -b -m755 ./build/hikptool ${RPM_BUILD_ROOT}/usr/bin
|
|
|
|
|
install -b -m755 ./build/libhikptdev/src/rciep/libhikptdev.so.1 ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
install -b -m755 ./build/libhikptdev/src/rciep/libhikptdev.so ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
install -b -m755 ./build/libhikptdev/src/rciep/libhikptdev.so.1.0.0 ${RPM_BUILD_ROOT}/usr/lib64
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
/usr/lib64/libhikptdev.so.1
|
|
|
|
|
/usr/lib64/libhikptdev.so
|
2022-11-24 14:28:25 +08:00
|
|
|
%attr(0500,root,root) /usr/lib64/libhikptdev.so.1.0.0
|
|
|
|
|
%attr(0500,root,root) /usr/bin/hikptool
|
2022-10-13 17:30:45 +08:00
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
if [ "$1" = "2" ] ; then #2: update
|
|
|
|
|
rm -rf $RPM_INSTALL_PREFIX/libhikptdev.so > /dev/null 2>&1 || true
|
|
|
|
|
rm -rf $RPM_INSTALL_PREFIX/libhikptdev.so.1 > /dev/null 2>&1 || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
if [[ "$1" = "1" || "$1" = "2" ]] ; then #1: install 2: update
|
|
|
|
|
ln -sf $RPM_INSTALL_PREFIX/libhikptdev.so.%{version} $RPM_INSTALL_PREFIX/libhikptdev.so
|
|
|
|
|
ln -sf $RPM_INSTALL_PREFIX/libhikptdev.so.%{version} $RPM_INSTALL_PREFIX/libhikptdev.so.1
|
|
|
|
|
fi
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
if [ "$1" = "0" ] ; then #0: uninstall
|
|
|
|
|
rm -rf /var/log/hikp/ > /dev/null 2>&1 || true
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-05-30 22:10:25 +08:00
|
|
|
* Tue May 30 2023 veega2022 <zhuweijia@huawei.com> 1.0.0-10
|
|
|
|
|
- sync code: fix PCIe and serdes, roh module problem
|
|
|
|
|
|
2023-04-06 11:45:38 +00:00
|
|
|
* Thu Apr 06 2023 veega2022 <zhuweijia@huawei.com> 1.0.0-9
|
|
|
|
|
- fix sas device info print error bug
|
|
|
|
|
|
2023-03-15 09:34:36 +00:00
|
|
|
* Wed Mar 15 2023 veega2022 <zhuweijia@huawei.com> 1.0.0-8
|
|
|
|
|
- fix security compilation PIE issue
|
|
|
|
|
|
2022-12-14 13:59:42 +08:00
|
|
|
* Tue Dec 13 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-7
|
|
|
|
|
- fix compiler security option problem
|
|
|
|
|
|
2022-12-12 14:19:30 +08:00
|
|
|
* Mon Dec 12 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-6
|
|
|
|
|
- Add socip patch for fix return -EINVAL when the parameter check fails
|
|
|
|
|
|
2022-11-24 14:28:25 +08:00
|
|
|
* Thu Nov 24 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-5
|
|
|
|
|
- Add nic_ppp dump mac and vlan function and change the hikptool permission to 0500
|
|
|
|
|
|
2022-11-16 11:25:47 +08:00
|
|
|
* Wed Nov 16 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-4
|
|
|
|
|
- change the hikptool permission to 4550
|
|
|
|
|
|
2022-10-28 16:19:00 +08:00
|
|
|
* Fri Oct 28 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-3
|
|
|
|
|
- Add sas/sata features source code
|
|
|
|
|
|
2022-10-27 20:00:49 +08:00
|
|
|
* Wed Oct 26 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-2
|
|
|
|
|
- Add roce/roh/cxl/serdes/socip/pcie features source code
|
|
|
|
|
|
2022-10-13 17:30:45 +08:00
|
|
|
* Wed Oct 12 2022 veega2022 <zhuweijia@huawei.com> 1.0.0-1
|
|
|
|
|
- First Spec Version Include hikptool Code
|