1
0
mirror of https://github.com/ceph/ceph synced 2025-03-22 10:17:23 +00:00

crimson: link required dpdk components for seastar

see https://github.com/scylladb/seastar/blob/
809b3ef875e7edb7c56643812dc8347ff9a82cee/cmake/Finddpdk.cmake#L60-L85

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
This commit is contained in:
Yingxin Cheng 2019-11-06 17:27:39 +08:00
parent 2cb2cd33dd
commit ab84158fc0
2 changed files with 45 additions and 12 deletions

View File

@ -108,17 +108,38 @@ function(do_export_dpdk dpdk_dir)
endif()
endif()
foreach(c
bus_pci
cmdline
eal
ethdev
kvargs
mbuf
mempool
mempool_ring
pci
ring)
list(APPEND dpdk_components
bus_pci
cmdline
eal
ethdev
kvargs
mbuf
mempool
mempool_ring
pci
ring)
if(Seastar_DPDK)
list(APPEND dpdk_components
bus_vdev
cfgfile
hash
net
pmd_bnxt
pmd_cxgbe
pmd_e1000
pmd_ena
pmd_enic
pmd_i40e
pmd_ixgbe
pmd_nfp
pmd_qede
pmd_ring
pmd_sfc_efx
timer)
endif()
foreach(c ${dpdk_components})
add_library(dpdk::${c} STATIC IMPORTED)
add_dependencies(dpdk::${c} dpdk-ext)
set(dpdk_${c}_LIBRARY

View File

@ -38,6 +38,8 @@ endif()
set(components
bus_pci
bus_vdev
cfgfile
cmdline
eal
ethdev
@ -47,15 +49,25 @@ set(components
mempool
mempool_ring
mempool_stack
net
pci
pmd_af_packet
pmd_bnxt
pmd_bond
pmd_cxgbe
pmd_e1000
pmd_ena
pmd_enic
pmd_i40e
pmd_ixgbe
pmd_mlx5
pmd_nfp
pmd_qede
pmd_ring
pmd_sfc_efx
pmd_vmxnet3_uio
ring)
ring
timer)
# for collecting dpdk library targets, it will be used when defining dpdk::dpdk
set(_dpdk_libs)