2023-01-02 15:58:51 +08:00
|
|
|
Summary : An open source CoreSight(tm) Trace Decode library
|
|
|
|
|
Name : OpenCSD
|
|
|
|
|
Version : 1.3.3
|
2023-03-16 20:23:54 +08:00
|
|
|
Release : 3
|
2023-01-02 15:58:51 +08:00
|
|
|
License : BSD
|
|
|
|
|
Source : %{name}-%{version}.tar.gz
|
|
|
|
|
BuildRoot : %{_tmppath}/%{name}-%{version}-${release}-root
|
|
|
|
|
BuildRequires : gcc-c++ make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{name} will decode formatted trace in three stages:
|
|
|
|
|
1. Frame Deformatting : Removal CoreSight frame formatting from individual trace streams.
|
|
|
|
|
2. Packet Processing : Separate individual trace streams into discrete packets.
|
|
|
|
|
3. Packet Decode : Convert the packets into fully decoded trace describing the program flow on a core.
|
|
|
|
|
The library is implemented in C++ with an optional "C" API.
|
|
|
|
|
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2023-03-16 20:23:54 +08:00
|
|
|
make -C decoder/build/linux CPPFLAGS="-fPIE" LDFLAGS="-s -pie -Wl,-z,defs" -j
|
2023-01-02 15:58:51 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
make -C decoder/build/linux install PREFIX=%{buildroot}/usr LIB_PATH=lib64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,0644)
|
|
|
|
|
%doc README.md LICENSE
|
2023-02-28 16:26:42 +08:00
|
|
|
%{_includedir}/opencsd
|
|
|
|
|
%{_libdir}/libopencsd*
|
2023-01-02 15:58:51 +08:00
|
|
|
%exclude %{_bindir}
|
|
|
|
|
%exclude %{_libdir}/*.a*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-03-16 20:23:54 +08:00
|
|
|
* Thu Mar 16 2023 huangfangrun <huangfangrun1@h-partners.com> - 1.3.3-3
|
|
|
|
|
- [Compile Option] Add -fPIE -s and -pie options
|
|
|
|
|
|
2023-02-28 16:26:42 +08:00
|
|
|
* Tue Feb 28 2023 liweiganga <liweiganga@uniontech.com> - 1.3.3-2
|
|
|
|
|
- fix #I6I3EM and #I6I31E
|
|
|
|
|
|
2023-01-02 15:58:51 +08:00
|
|
|
* Tue Jan 03 2023 Junhao He <hejunhao3@hauwei.com> - 1.3.3-1
|
2023-02-28 16:26:42 +08:00
|
|
|
- Package init
|