Skip to content

Commit

Permalink
packaging: add n5010tool to opae.spec.rhel
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Whisonant <tim.whisonant@intel.com>
  • Loading branch information
tswhison authored and rchriste1 committed Jul 13, 2023
1 parent e2103f1 commit 7e70bd4
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions opae.spec.rhel
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,18 @@ OPAE headers, tools, sample source, and documentation
%cmake -DOPAE_MINIMAL_BUILD=ON \
-DFETCHCONTENT_FULLY_DISCONNECTED=ON \
-DFETCHCONTENT_BASE_DIR=_build/_deps
%if 0%{rhel} > 8

%if 0%{?rhel}
%if 0%{rhel} <= 8
echo "Building for RHEL <= 8"
%make_build
%else
echo "Building for RHEL >= 9"
%cmake_build
%endif
%else
%make_build
echo "Building for non-RHEL"
%cmake_build
%endif

%install
Expand Down Expand Up @@ -107,10 +115,14 @@ cp binaries/opae.io/*.{cpp,h,py} %{buildroot}%{_usr}/src/opae/samples/opae.io/
cp binaries/opae.io/opae/io/*.py %{buildroot}%{_usr}/src/opae/samples/opae.io/opae/io
cp binaries/opae.io/scripts/*.py %{buildroot}%{_usr}/src/opae/samples/opae.io/scripts

%if 0%{rhel} > 8
%if 0%{?rhel}
%if 0%{rhel} <= 8
%make_install
%else
%cmake_install
%endif
%else
%make_install
%cmake_install
%endif

#cmake
Expand All @@ -129,7 +141,7 @@ done

# Make rpmlint happy about install permissions
# admin tools
for file in %{buildroot}%{python3_sitelib}/opae/admin/tools/{fpgaflash,fpgaotsu,fpgaport,fpgasupdate,ihex2ipmi,rsu,super_rsu,bitstream_info,opaevfio,pci_device}.py; do
for file in %{buildroot}%{python3_sitelib}/opae/admin/tools/{fpgaflash,fpgaotsu,fpgaport,fpgasupdate,ihex2ipmi,rsu,super_rsu,bitstream_info,opaevfio,pci_device,fpgareg,n5010tool}.py; do
chmod a+x $file
done
# ethernet
Expand Down Expand Up @@ -297,6 +309,7 @@ done
%{_bindir}/nlb3
%{_bindir}/nlb7
%{_bindir}/vabtool
%{_bindir}/n5010tool

%{_usr}/share/opae/*
%{python3_sitelib}/ethernet*
Expand Down

0 comments on commit 7e70bd4

Please sign in to comment.