rpmbuild: Add wrapper function for copying .so files
Signed-off-by: Michal Berger <michal.berger@intel.com> Change-Id: I0c8b5549080c1617a5eb0c1cc6145af6f1b0845d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14801 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
This commit is contained in:
parent
cd9266403a
commit
23019242d7
@ -67,6 +67,12 @@ cfs() {
|
|||||||
shift; for f; do [[ -e $f ]] && cp -a "$f" "$dst"; done
|
shift; for f; do [[ -e $f ]] && cp -a "$f" "$dst"; done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cl() {
|
||||||
|
[[ -e $2 ]] || return 0
|
||||||
|
|
||||||
|
cfs "$1" $(find "$2" -name '*.so*' -type f -o -type l | grep -v .symbols)
|
||||||
|
}
|
||||||
|
|
||||||
%if %{deps}
|
%if %{deps}
|
||||||
./scripts/pkgdep.sh --docs --pmem --rdma --uring
|
./scripts/pkgdep.sh --docs --pmem --rdma --uring
|
||||||
%endif
|
%endif
|
||||||
@ -80,13 +86,13 @@ make DESTDIR=%{buildroot} install %{make}
|
|||||||
%if %{dpdk}
|
%if %{dpdk}
|
||||||
cfs %{buildroot}/usr/local/lib/dpdk %{dpdk_build_path}/lib/*
|
cfs %{buildroot}/usr/local/lib/dpdk %{dpdk_build_path}/lib/*
|
||||||
# Special case for SPDK_RUN_EXTERNAL_DPDK setup
|
# Special case for SPDK_RUN_EXTERNAL_DPDK setup
|
||||||
cfs %{buildroot}/usr/local/lib/dpdk $(find %{dpdk_path}/intel-ipsec-mb/ -name '*.so*')
|
cl %{buildroot}/usr/local/lib/dpdk %{dpdk_path}/intel-ipsec-mb/
|
||||||
cfs %{buildroot}/usr/local/lib/dpdk $(find %{dpdk_path}/isa-l/ -name '*.so*')
|
cl %{buildroot}/usr/local/lib/dpdk %{dpdk_path}/isa-l/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Include libvfio-user libs in case --with-vfio-user is in use together with --with-shared
|
# Include libvfio-user libs in case --with-vfio-user is in use together with --with-shared
|
||||||
%if %{vfio_user} && %{shared}
|
%if %{vfio_user} && %{shared}
|
||||||
cfs %{buildroot}/usr/local/lib/libvfio-user $(find build/libvfio-user/ -name '*.so*' | grep -v .symbols)
|
cl %{buildroot}/usr/local/lib/libvfio-user build/libvfio-user/
|
||||||
%endif
|
%endif
|
||||||
# Try to include extra binaries that were potentially built
|
# Try to include extra binaries that were potentially built
|
||||||
cfs %{buildroot}/usr/local/bin build/fio
|
cfs %{buildroot}/usr/local/bin build/fio
|
||||||
|
Loading…
Reference in New Issue
Block a user