build: fix meson build on FreeBSD
Subsystems (2)
PATCH 1/1 build: fix meson build on FreeBSD
A number of drivers have dependencies on libraries which are only built on Linux, and so they need to be disabled on FreeBSD. Rather than basing the disabling on OS, in each case we base the building of the library on the presence of the required dependency.
Fixes 50385c106021 ("net/ifc: add to meson build")
Fixes 4e9c73e96e83 ("net/netvsc: add Hyper-V network device")
Fixes 5936aa3a39b9 ("net/vhost: add to meson build")
Fixes 3298fa4853b8 ("raw/dpaa2_cmdif: introduce DPAA2 command interface driver")
Fixes b1ee472fed58 ("raw/dpaa2_qdma: introduce the DPAA2 QDMA driver")
Signed-off-by Bruce Richardson <[email protected]>
--- drivers/net/ifc/meson.build | 1 + drivers/net/netvsc/meson.build | 1 + drivers/net/vhost/meson.build | 1 + drivers/raw/dpaa2_cmdif/meson.build | 1 + drivers/raw/dpaa2_qdma/meson.build | 1 + 5 files changed, 5 insertions(+)
drivers/net/ifc/meson.build +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation +build = dpdk_conf.has('RTE_LIBRTE_VHOST') allow_experimental_apis = true sources = files('ifcvf_vdpa.c', 'base/ifcvf.c') includes += include_directories('base')
drivers/net/netvsc/meson.build +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Microsoft Corporation +build = dpdk_conf.has('RTE_LIBRTE_VMBUS_BUS') version = 2 sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c')
drivers/net/vhost/meson.build +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation +build = dpdk_conf.has('RTE_LIBRTE_VHOST') version = 2 sources = files('rte_eth_vhost.c') install_headers('rte_eth_vhost.h')
drivers/raw/dpaa2_cmdif/meson.build +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright 2018 NXP +build = dpdk_conf.has('RTE_LIBRTE_DPAA2_MEMPOOL') deps += ['rawdev', 'mempool_dpaa2', 'bus_vdev'] sources = files('dpaa2_cmdif.c')
drivers/raw/dpaa2_qdma/meson.build +1 -0
@@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright 2018 NXP +build = dpdk_conf.has('RTE_LIBRTE_DPAA2_MEMPOOL') deps += ['rawdev', 'mempool_dpaa2', 'ring'] sources = files('dpaa2_qdma.c')
Signature · 1 line
2.15.1
Thomas Monjalon
Applied20/07/2018 15:53, Bruce Richardson:
Quoted 6 lines
A number of drivers have dependencies on libraries which are only built on Linux, and so they need to be disabled on FreeBSD. Rather than basing the disabling on OS, in each case we base the building of the library on the presence of the required dependency.
Quoted 7 lines
Fixes 50385c106021 ("net/ifc: add to meson build")Fixes 4e9c73e96e83 ("net/netvsc: add Hyper-V network device")Fixes 5936aa3a39b9 ("net/vhost: add to meson build")Fixes 3298fa4853b8 ("raw/dpaa2_cmdif: introduce DPAA2 command interface driver")Fixes b1ee472fed58 ("raw/dpaa2_qdma: introduce the DPAA2 QDMA driver")Signed-off-by Bruce Richardson <[email protected]>
Applied, thanks