!573 [sync] PR-572: package some examples to dpdk-tools

From: @openeuler-sync-bot 
Reviewed-by: @li-huisong 
Signed-off-by: @li-huisong
This commit is contained in:
openeuler-ci-bot 2024-04-29 05:54:39 +00:00 committed by Gitee
commit 29999fcafc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -10,7 +10,7 @@
Name: dpdk
Version: 23.11
Release: 13
Release: 14
URL: http://dpdk.org
Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz
@ -195,7 +195,22 @@ cd -
%meson_install
chrpath -d ./%{_vpath_builddir}/app/dpdk-pdump.p/gazelle-pdump
%ifnarch sw_64
chrpath -d ./%{_vpath_builddir}/examples/dpdk-l3fwd
%endif
chrpath -d ./%{_vpath_builddir}/examples/dpdk-l3fwd-power
chrpath -d ./%{_vpath_builddir}/examples/dpdk-ethtool
chrpath -d ./%{_vpath_builddir}/examples/dpdk-dma
chrpath -d ./%{_vpath_builddir}/examples/dpdk-ptpclient
cp ./%{_vpath_builddir}/app/dpdk-pdump.p/gazelle-pdump $RPM_BUILD_ROOT/%{_bindir}
%ifnarch sw_64
cp ./%{_vpath_builddir}/examples/dpdk-l3fwd $RPM_BUILD_ROOT/%{_bindir}
%endif
cp ./%{_vpath_builddir}/examples/dpdk-l3fwd-power $RPM_BUILD_ROOT/%{_bindir}
cp ./%{_vpath_builddir}/examples/dpdk-ethtool $RPM_BUILD_ROOT/%{_bindir}
cp ./%{_vpath_builddir}/examples/dpdk-dma $RPM_BUILD_ROOT/%{_bindir}
cp ./%{_vpath_builddir}/examples/dpdk-ptpclient $RPM_BUILD_ROOT/%{_bindir}
# move pmd so files in dpdk-pmds directory to /usr/lib64.
# so files in ddpk-pdms directory are loaded by default. remove it to prevent unnecessary so load.
@ -242,6 +257,10 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
%endif
%changelog
* Mon Apr 29 2024 huangdengdui <huangdengui@huawei.com> - 23.11-14
Package the following example to dpdk-tools:
dpdk-l3fwd, dpdk-l3fwd-power, dpdk-ethtool, dpdk-dma, dpdk-ptpclient
* Wed Apr 24 2024 Huang Yang <huangyang@loongson.cn> - 23.11-13
- Modify the writing of loongarch64 judgments