|
|
21820f |
Summary: Open Programmable Acceleration Engine (OPAE) SDK
|
|
|
21820f |
Name: opae
|
|
|
21820f |
Version: 1.4.1
|
|
|
48ebd3 |
Release: 14%{?dist}
|
|
|
21820f |
License: BSD and MIT
|
|
|
21820f |
ExclusiveArch: x86_64
|
|
|
21820f |
URL: https://github.com/OPAE/%{name}-sdk
|
|
|
21820f |
Source0: https://github.com/OPAE/opae-sdk/releases/download/%{version}-1/%{name}-%{version}-1.tar.gz
|
|
|
21820f |
Patch01: 0001-Do-not-install-static-libraries.patch
|
|
|
21820f |
Patch02: improve-library-link.patch
|
|
|
21820f |
Patch03: 0001-Reinclude-fpgaport-in-tools.patch
|
|
|
21820f |
Patch04: 0002-Add-support-for-public-dfl-driver-to-fpgaport.patch
|
|
|
21820f |
Patch05: 0001-Import-fpgad-from-opae-legacy.patch
|
|
|
21820f |
Patch06: 0001-Fix-possible-buffer-overflow.patch
|
|
|
48ebd3 |
Patch07: remove-packager.patch
|
|
|
48ebd3 |
Patch08: remove-samples.patch
|
|
|
21820f |
|
|
|
21820f |
BuildRequires: gcc, gcc-c++
|
|
|
21820f |
BuildRequires: cmake, make
|
|
|
21820f |
BuildRequires: python3-devel
|
|
|
21820f |
BuildRequires: json-c-devel
|
|
|
21820f |
BuildRequires: libuuid-devel
|
|
|
21820f |
BuildRequires: rpm-build
|
|
|
21820f |
BuildRequires: hwloc-devel
|
|
|
21820f |
BuildRequires: doxygen
|
|
|
21820f |
|
|
|
21820f |
%description
|
|
|
21820f |
Open Programmable Acceleration Engine (OPAE) is a software framework
|
|
|
21820f |
for managing and accessing programmable accelerators (FPGAs).
|
|
|
21820f |
Its main parts are:
|
|
|
21820f |
|
|
|
21820f |
* OPAE Software Development Kit (OPAE SDK) (this package)
|
|
|
21820f |
* OPAE Linux driver for Intel(R) Xeon(R) CPU with
|
|
|
21820f |
Integrated FPGAs and Intel(R) PAC with Arria(R) 10 GX FPGA
|
|
|
21820f |
* Basic Building Block (BBB) library for accelerating AFU
|
|
|
21820f |
|
|
|
21820f |
OPAE SDK is a collection of libraries and tools to facilitate the
|
|
|
21820f |
development of software applications and accelerators using OPAE.
|
|
|
21820f |
It provides a library implementing the OPAE C API for presenting a
|
|
|
21820f |
streamlined and easy-to-use interface for software applications to
|
|
|
21820f |
discover, access, and manage FPGA devices and accelerators using
|
|
|
21820f |
the OPAE software stack.
|
|
|
21820f |
|
|
|
21820f |
%package devel
|
|
|
21820f |
Summary: OPAE headers, sample source, and documentation
|
|
|
21820f |
Requires: libuuid-devel, %{name}%{?_isa} = %{version}-%{release}
|
|
|
21820f |
|
|
|
21820f |
%description devel
|
|
|
48ebd3 |
OPAE headers, sample source, and documentation
|
|
|
21820f |
|
|
|
21820f |
%prep
|
|
|
21820f |
%setup -q -n %{name}-%{version}-1
|
|
|
21820f |
%patch01 -p1
|
|
|
21820f |
%patch02 -p1
|
|
|
21820f |
%patch03 -p1
|
|
|
21820f |
%patch04 -p1
|
|
|
21820f |
%patch05 -p1
|
|
|
21820f |
%patch06 -p1
|
|
|
48ebd3 |
%patch07 -p1
|
|
|
48ebd3 |
%patch08 -p1
|
|
|
21820f |
|
|
|
21820f |
# Remove hidden .clang-format
|
|
|
21820f |
rm opae-libs/tests/xfpga/.clang-format
|
|
|
21820f |
rm tests/.clang-format
|
|
|
21820f |
rm tools/argsfilter/.clang-format
|
|
|
21820f |
|
|
|
21820f |
%build
|
|
|
21820f |
mkdir -p _build
|
|
|
21820f |
cd _build
|
|
|
21820f |
%cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DOPAE_PRESERVE_REPOS=ON
|
|
|
21820f |
%make_build
|
|
|
21820f |
|
|
|
21820f |
%install
|
|
|
21820f |
mkdir -p %{buildroot}%{_datadir}/opae
|
|
|
21820f |
cp ./RELEASE_NOTES.md %{buildroot}%{_datadir}/opae/RELEASE_NOTES.md
|
|
|
21820f |
cp ./LICENSE %{buildroot}%{_datadir}/opae/LICENSE
|
|
|
21820f |
cp ./COPYING %{buildroot}%{_datadir}/opae/COPYING
|
|
|
21820f |
|
|
|
21820f |
# cmake modules
|
|
|
21820f |
mkdir -p %{buildroot}%{_usr}/src/opae/cmake/modules
|
|
|
21820f |
for s in FindSphinx.cmake
|
|
|
21820f |
do
|
|
|
21820f |
cp "cmake/${s}" %{buildroot}%{_usr}/src/opae/cmake/
|
|
|
21820f |
done
|
|
|
21820f |
mkdir -p %{buildroot}%{_usr}/src/opae/opae-libs/cmake/modules
|
|
|
21820f |
for s in FindHwloc.cmake \
|
|
|
21820f |
OPAE.cmake \
|
|
|
21820f |
FindUUID.cmake \
|
|
|
21820f |
Findjson-c.cmake \
|
|
|
21820f |
OPAECompiler.cmake \
|
|
|
21820f |
OPAEGit.cmake \
|
|
|
21820f |
OPAEPackaging.cmake
|
|
|
21820f |
do
|
|
|
21820f |
cp "opae-libs/cmake/modules/${s}" %{buildroot}%{_usr}/src/opae/opae-libs/cmake/modules
|
|
|
21820f |
done
|
|
|
21820f |
|
|
|
21820f |
# Samples
|
|
|
21820f |
mkdir -p %{buildroot}%{_usr}/src/opae/samples
|
|
|
21820f |
mkdir -p %{buildroot}%{_usr}/src/opae/samples/hello_fpga/
|
|
|
21820f |
cp samples/hello_fpga/hello_fpga.c %{buildroot}%{_usr}/src/opae/samples/hello_fpga/
|
|
|
21820f |
|
|
|
21820f |
%make_install -C _build
|
|
|
21820f |
|
|
|
21820f |
%files
|
|
|
21820f |
%dir %{_datadir}/opae
|
|
|
21820f |
%doc %{_datadir}/opae/RELEASE_NOTES.md
|
|
|
21820f |
%license %{_datadir}/opae/LICENSE
|
|
|
21820f |
%license %{_datadir}/opae/COPYING
|
|
|
21820f |
%{_libdir}/libbitstream.so.%{version}
|
|
|
21820f |
%{_libdir}/libbitstream.so.1
|
|
|
21820f |
%{_libdir}/libfpgad-api.so.%{version}
|
|
|
21820f |
%{_libdir}/libfpgad-api.so.1
|
|
|
21820f |
%{_libdir}/libopae-c.so.%{version}
|
|
|
21820f |
%{_libdir}/libopae-c.so.1
|
|
|
21820f |
%{_libdir}/libopae-c-ase.so.%{version}
|
|
|
21820f |
%{_libdir}/libopae-c-ase.so.1
|
|
|
21820f |
%{_libdir}/libopae-cxx-core.so.%{version}
|
|
|
21820f |
%{_libdir}/libopae-cxx-core.so.1
|
|
|
48ebd3 |
%{_libdir}/opae/libboard_rc.so
|
|
|
48ebd3 |
%{_libdir}/opae/libboard_vc.so
|
|
|
48ebd3 |
%{_libdir}/opae/libfpgad-vc.so
|
|
|
48ebd3 |
%{_libdir}/opae/libmodbmc.so
|
|
|
48ebd3 |
%{_libdir}/opae/libxfpga.so
|
|
|
48ebd3 |
%{_libdir}/opae/libfpgad-xfpga.so
|
|
|
48ebd3 |
%config(noreplace) %{_sysconfdir}/opae/fpgad.cfg*
|
|
|
48ebd3 |
%config(noreplace) %{_sysconfdir}/sysconfig/fpgad.conf*
|
|
|
48ebd3 |
%{_bindir}/fpgaconf
|
|
|
48ebd3 |
%{_bindir}/fpgad
|
|
|
48ebd3 |
%{_bindir}/fpgainfo
|
|
|
48ebd3 |
%{_bindir}/fpgaport
|
|
|
48ebd3 |
%{_bindir}/mmlink
|
|
|
48ebd3 |
%{_bindir}/userclk
|
|
|
48ebd3 |
%{_unitdir}/fpgad.service
|
|
|
21820f |
|
|
|
48ebd3 |
%post
|
|
|
21820f |
%systemd_post fpgad.service
|
|
|
21820f |
|
|
|
48ebd3 |
%preun
|
|
|
21820f |
%systemd_preun fpgad.service
|
|
|
21820f |
|
|
|
21820f |
%files devel
|
|
|
21820f |
%dir %{_includedir}/opae
|
|
|
21820f |
%dir %{_libdir}/opae
|
|
|
21820f |
%dir %{_usr}/src/opae
|
|
|
21820f |
%dir %{_usr}/src/opae/cmake/
|
|
|
21820f |
%dir %{_usr}/src/opae/opae-libs/cmake/modules/
|
|
|
21820f |
%dir %{_usr}/src/opae/samples
|
|
|
21820f |
%{_includedir}/opae/*
|
|
|
21820f |
%{_libdir}/libbitstream.so
|
|
|
21820f |
%{_libdir}/libfpgad-api.so
|
|
|
21820f |
%{_libdir}/libopae-c.so
|
|
|
21820f |
%{_libdir}/libopae-c-ase.so
|
|
|
21820f |
%{_libdir}/libopae-cxx-core.so
|
|
|
21820f |
%{_usr}/share/opae/*
|
|
|
21820f |
%{_usr}/src/opae/samples/hello_fpga/hello_fpga.c
|
|
|
21820f |
%{_usr}/src/opae/cmake/*
|
|
|
21820f |
%{_usr}/src/opae/opae-libs/cmake/modules/*
|
|
|
21820f |
|
|
|
21820f |
%changelog
|
|
|
48ebd3 |
* Wed Jul 15 2020 Tom Rix <trix@redhat.com> - 1.4.1-14
|
|
|
48ebd3 |
- Remove built samples
|
|
|
48ebd3 |
|
|
|
48ebd3 |
* Tue Jul 14 2020 Tom Rix <trix@redhat.com> - 1.4.1-13
|
|
|
48ebd3 |
- Remove packager from devel rpm
|
|
|
48ebd3 |
|
|
|
48ebd3 |
* Mon Jul 6 2020 Tom Rix <trix@redhat.com> - 1.4.1-12
|
|
|
48ebd3 |
- Move diagnostic tools from devel to main rpm
|
|
|
48ebd3 |
|
|
|
21820f |
* Tue Jun 2 2020 Tom Rix <trix@redhat.com> - 1.4.1-11
|
|
|
21820f |
- Changelog date
|
|
|
21820f |
|
|
|
21820f |
* Tue Jun 2 2020 Tom Rix <trix@redhat.com> - 1.4.1-10
|
|
|
21820f |
- Changelog date
|
|
|
21820f |
|
|
|
21820f |
* Tue Jun 2 2020 Tom Rix <trix@redhat.com> - 1.4.1-9
|
|
|
21820f |
- Add gating
|
|
|
21820f |
|
|
|
21820f |
* Thu May 19 2020 Tom Rix <trix@redhat.com> - 1.4.1-8
|
|
|
21820f |
- Fix buffer overflow
|
|
|
21820f |
|
|
|
21820f |
* Thu May 14 2020 Tom Rix <trix@redhat.com> - 1.4.1-7
|
|
|
21820f |
- Import fpgad from opae-legacy
|
|
|
21820f |
|
|
|
21820f |
* Wed May 13 2020 Tom Rix <trix@redhat.com> - 1.4.1-6
|
|
|
21820f |
- Import fpgaport from 1.4.0
|
|
|
21820f |
- Generalize to work with public and intel drivers.
|
|
|
21820f |
|
|
|
21820f |
* Tue Apr 21 2020 Björn Esser <besser82@fedoraproject.org> - 1.4.1-5
|
|
|
21820f |
- Rebuild (json-c)
|
|
|
21820f |
|
|
|
21820f |
* Tue Apr 21 2020 Tom Rix <trix@redhat.com> 1.4.1-4
|
|
|
21820f |
- Update the sources file
|
|
|
21820f |
|
|
|
21820f |
* Tue Apr 21 2020 Tom Rix <trix@redhat.com> 1.4.1-3
|
|
|
21820f |
- Update the sources file
|
|
|
21820f |
|
|
|
21820f |
* Mon Apr 20 2020 Tom Rix <trix@redhat.com> 1.4.1-2
|
|
|
21820f |
- Disable broken documents
|
|
|
21820f |
- Do not install static libs
|
|
|
21820f |
- Improve linking of libopae-cxx-core
|
|
|
21820f |
|
|
|
21820f |
* Fri Apr 17 2020 Korde Nakul <nakul.korde@intel.com> 1.4.1-1
|
|
|
21820f |
- OPAE git repository layout changes.
|
|
|
21820f |
- Removed Safe String module dependency.
|
|
|
21820f |
- Various bug fixes.
|
|
|
21820f |
- Ported python tools to python3.6.
|
|
|
21820f |
- Various Static code scan bug fixes.
|
|
|
21820f |
- Removed pybind11 3rd component from OPAE source repository.
|
|
|
21820f |
|
|
|
21820f |
* Tue Mar 10 2020 Tom Rix <trix@redhat.com> 1.4.0-6
|
|
|
21820f |
- Add make as a dependency
|
|
|
21820f |
|
|
|
21820f |
* Fri Mar 6 2020 Tom Rix <trix@redhat.com> 1.4.0-5
|
|
|
21820f |
- Use make_install macro
|
|
|
21820f |
- Use license tag correctly
|
|
|
21820f |
|
|
|
21820f |
* Tue Mar 3 2020 Tom Rix <trix@redhat.com> 1.4.0-4
|
|
|
21820f |
- Add libraries to link of libopae-cxx-core libopae-c++-utils
|
|
|
21820f |
- Remove unneeded build flag _smp_mflags
|
|
|
21820f |
|
|
|
21820f |
* Thu Feb 27 2020 Tom Rix <trix@redhat.com> 1.4.0-3
|
|
|
21820f |
- Remove ldconfig from post and postun
|
|
|
21820f |
- Append dist tag to release tag
|
|
|
21820f |
- Change libsafestr to shared library
|
|
|
21820f |
- Set license tag to location of license files
|
|
|
21820f |
- Remove phython3-sphnix build dependency.
|
|
|
21820f |
- Consolidate samples,tools,tools-extra pkgs into devel
|
|
|
21820f |
- Improve pkg created dir specification
|
|
|
21820f |
- Set x86_64 as ExclusiveArch
|
|
|
21820f |
- Change to runtime to implicit dependency on build *-devel
|
|
|
21820f |
- Remove preun rm of opae-c.conf
|
|
|
21820f |
- Use systemd rpm macros
|
|
|
21820f |
- Add _smp_mflags to build
|
|
|
21820f |
- Use unitdir for fpgad.service path
|
|
|
21820f |
- Distribute the license and copying files
|
|
|
21820f |
|
|
|
21820f |
* Mon Feb 24 2020 Tom Rix <trix@redhat.com> 1.4.0-2
|
|
|
21820f |
- Change to python3
|
|
|
21820f |
- Remove release tag from upstream Source0 definition.
|
|
|
21820f |
- Improve requires tag for subpackages
|
|
|
21820f |
- Remove explicit root owner
|
|
|
21820f |
- Remove vendor tag
|
|
|
21820f |
- Remove group tag
|
|
|
21820f |
- Remove clean section
|
|
|
21820f |
|
|
|
21820f |
* Tue Dec 17 2019 Korde Nakul <nakul.korde@intel.com> 1.4.0-1
|
|
|
21820f |
- Added support to FPGA Linux kernel Device Feature List (DFL) driver patch set2.
|
|
|
21820f |
- Increased test cases and test coverage
|
|
|
21820f |
- Various bug fixes
|
|
|
21820f |
- Various compiler warning fixes
|
|
|
21820f |
- Various memory leak fixes
|
|
|
21820f |
- Various Static code scan bug fixes
|
|
|
21820f |
- Added new FPGA MMIO API to write 512 bits
|