remove dpdk-pmds directory to prevent unnecessary pmd so files load
(cherry picked from commit b080d97559839a18021b1f8db0b27f489a9df5a6)
This commit is contained in:
parent
c386f7bfac
commit
e05fa649fc
10
dpdk.spec
10
dpdk.spec
@ -10,7 +10,7 @@
|
||||
|
||||
Name: dpdk
|
||||
Version: 23.11
|
||||
Release: 10
|
||||
Release: 11
|
||||
URL: http://dpdk.org
|
||||
Source: https://fast.dpdk.org/rel/dpdk-%{version}.tar.xz
|
||||
|
||||
@ -180,6 +180,9 @@ CFLAGS="$(echo %{optflags} -fcommon)" \
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
# 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.
|
||||
mv -f $RPM_BUILD_ROOT/%{pmddir}/* $RPM_BUILD_ROOT/usr/lib64/
|
||||
ln -fs %{_bindir}/dpdk-devbind.py $RPM_BUILD_ROOT/%{_bindir}/dpdk-devbind
|
||||
strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
|
||||
|
||||
@ -188,10 +191,8 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
|
||||
%if ! %{with shared}
|
||||
%{_libdir}/*.a
|
||||
%exclude %{_libdir}/*.so*
|
||||
%exclude %{pmddir}/*.so*
|
||||
%else
|
||||
%{_libdir}/*.so*
|
||||
%{pmddir}/*.so*
|
||||
%exclude %{_libdir}/*.a
|
||||
%endif
|
||||
%{_bindir}/dpdk-*.py
|
||||
@ -223,6 +224,9 @@ strip -g $RPM_BUILD_ROOT/lib/modules/%{kern_devel_ver}/extra/dpdk/igb_uio.ko
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Apr 21 2024 yinbin <yinbin8@huawei.com> - 23.11-11
|
||||
remove dpdk-pmds directory to prevent unnecessary pmd so files load
|
||||
|
||||
* Fri Apr 12 2024 huangdengdui <huangdengui@huawei.com> - 23.11-10
|
||||
Sync some patches for hns3 about PFC and RSS
|
||||
- net/hns3: support new device
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user