drivers: add reasons for components being disabled

For each driver where we optionally disable it, add in the reason why it's
being disabled, so the user knows how to fix it.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
This commit is contained in:
Bruce Richardson 2019-06-05 21:22:41 +01:00 committed by Thomas Monjalon
parent 759a5fb18e
commit 530588f3cd
52 changed files with 73 additions and 20 deletions

View File

@ -4,7 +4,8 @@
version = 2 version = 2
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['common_dpaax', 'eventdev'] deps += ['common_dpaax', 'eventdev']

View File

@ -4,7 +4,8 @@
version = 2 version = 2
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['common_dpaax', 'eventdev', 'kvargs'] deps += ['common_dpaax', 'eventdev', 'kvargs']

View File

@ -17,4 +17,5 @@ if is_linux
includes += include_directories('linux') includes += include_directories('linux')
else else
build = false build = false
reason = 'only supported on linux'
endif endif

View File

@ -4,7 +4,8 @@
allow_experimental_apis = true allow_experimental_apis = true
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
sources = files('dpaax_iova_table.c') sources = files('dpaax_iova_table.c')

View File

@ -10,6 +10,7 @@ inc_dir = path + '/include'
lib = cc.find_library('libmusdk', dirs: [lib_dir], required: false) lib = cc.find_library('libmusdk', dirs: [lib_dir], required: false)
if not lib.found() if not lib.found()
build = false build = false
reason = 'missing dependency, "libmusdk"'
else else
ext_deps += lib ext_deps += lib
includes += include_directories(inc_dir) includes += include_directories(inc_dir)

View File

@ -4,6 +4,7 @@
# This does not build a driver, but instead holds common files for # This does not build a driver, but instead holds common files for
# the crypto and compression drivers. # the crypto and compression drivers.
build = false build = false
reason = '' # sentinal value to suppress printout
qat_deps = ['bus_pci'] qat_deps = ['bus_pci']
qat_sources = files('qat_common.c', qat_sources = files('qat_common.c',
'qat_qp.c', 'qat_qp.c',

View File

@ -3,7 +3,8 @@
dep = dependency('libisal', required: false) dep = dependency('libisal', required: false)
if not dep.found() if not dep.found()
build =false build = false
reason = 'missing dependency, "libisal"'
endif endif
deps += 'bus_vdev' deps += 'bus_vdev'

View File

@ -4,6 +4,7 @@
dep = dependency('zlib', required: false) dep = dependency('zlib', required: false)
if not dep.found() if not dep.found()
build = false build = false
reason = 'missing dependency, "zlib"'
endif endif
deps += 'bus_vdev' deps += 'bus_vdev'

View File

@ -5,6 +5,7 @@ IMB_required_ver = '0.52.0'
lib = cc.find_library('IPSec_MB', required: false) lib = cc.find_library('IPSec_MB', required: false)
if not lib.found() if not lib.found()
build = false build = false
reason = 'missing dependency, "libIPSec_MB"'
else else
ext_deps += lib ext_deps += lib
@ -13,8 +14,8 @@ else
prefix : '#include<intel-ipsec-mb.h>').split('"')[1] prefix : '#include<intel-ipsec-mb.h>').split('"')[1]
if (imb_ver == '') or (imb_ver.version_compare('<' + IMB_required_ver)) if (imb_ver == '') or (imb_ver.version_compare('<' + IMB_required_ver))
message('IPSec_MB version >= @0@ is required, found version @1@'.format( reason = 'IPSec_MB version >= @0@ is required, found version @1@'.format(
IMB_required_ver, imb_ver)) IMB_required_ver, imb_ver)
build = false build = false
endif endif
endif endif

View File

@ -5,6 +5,7 @@ IMB_required_ver = '0.52.0'
lib = cc.find_library('IPSec_MB', required: false) lib = cc.find_library('IPSec_MB', required: false)
if not lib.found() if not lib.found()
build = false build = false
reason = 'missing dependency, "libIPSec_MB"'
else else
ext_deps += lib ext_deps += lib
@ -13,8 +14,8 @@ else
prefix : '#include<intel-ipsec-mb.h>').split('"')[1] prefix : '#include<intel-ipsec-mb.h>').split('"')[1]
if (imb_ver == '') or (imb_ver.version_compare('<' + IMB_required_ver)) if (imb_ver == '') or (imb_ver.version_compare('<' + IMB_required_ver))
message('IPSec_MB version >= @0@ is required, found version @1@'.format( reason = 'IPSec_MB version >= @0@ is required, found version @1@'.format(
IMB_required_ver, imb_ver)) IMB_required_ver, imb_ver)
build = false build = false
endif endif

View File

@ -2,7 +2,8 @@
# Copyright 2018 NXP # Copyright 2018 NXP
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['bus_vdev', 'bus_dpaa', 'security'] deps += ['bus_vdev', 'bus_dpaa', 'security']

View File

@ -2,11 +2,13 @@
# Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved. # Copyright(c) 2018 Advanced Micro Devices, Inc. All rights reserved.
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
dep = dependency('libcrypto', required: false) dep = dependency('libcrypto', required: false)
if not dep.found() if not dep.found()
build = false build = false
reason = 'missing dependency, "libcrypto"'
endif endif
deps += 'bus_vdev' deps += 'bus_vdev'
deps += 'bus_pci' deps += 'bus_pci'

View File

@ -4,7 +4,8 @@
version = 2 version = 2
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['security', 'mempool_dpaa2'] deps += ['security', 'mempool_dpaa2']

View File

@ -2,7 +2,8 @@
# Copyright 2018 NXP # Copyright 2018 NXP
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['bus_dpaa', 'security'] deps += ['bus_dpaa', 'security']

View File

@ -4,6 +4,7 @@
lib = cc.find_library('sso_kasumi', required: false) lib = cc.find_library('sso_kasumi', required: false)
if not lib.found() or not cc.has_header('sso_kasumi.h') if not lib.found() or not cc.has_header('sso_kasumi.h')
build = false build = false
reason = 'missing dependency, "libsso_kasumi"'
subdir_done() subdir_done()
endif endif

View File

@ -10,6 +10,7 @@ inc_dir = path + '/include'
lib = cc.find_library('libmusdk', dirs: [lib_dir], required: false) lib = cc.find_library('libmusdk', dirs: [lib_dir], required: false)
if not lib.found() if not lib.found()
build = false build = false
reason = 'missing dependency, "libmusdk"'
else else
ext_deps += lib ext_deps += lib
includes += include_directories(inc_dir) includes += include_directories(inc_dir)

View File

@ -2,6 +2,7 @@
# Copyright(c) 2018 Cavium, Inc # Copyright(c) 2018 Cavium, Inc
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['bus_pci'] deps += ['bus_pci']

View File

@ -4,6 +4,7 @@
dep = dependency('libcrypto', required: false) dep = dependency('libcrypto', required: false)
if not dep.found() if not dep.found()
build = false build = false
reason = 'missing dependency, "libcrypto"'
endif endif
allow_experimental_apis = true allow_experimental_apis = true
deps += 'bus_vdev' deps += 'bus_vdev'

View File

@ -4,6 +4,7 @@
# this does not build the QAT driver, instead that is done in the compression # this does not build the QAT driver, instead that is done in the compression
# driver which comes later. Here we just add our sources files to the list # driver which comes later. Here we just add our sources files to the list
build = false build = false
reason = '' # sentinal value to suppress printout
dep = dependency('libcrypto', required: false) dep = dependency('libcrypto', required: false)
qat_includes += include_directories('.') qat_includes += include_directories('.')
qat_deps += 'cryptodev' qat_deps += 'cryptodev'

View File

@ -4,6 +4,7 @@
lib = cc.find_library('sso_snow3g', required: false) lib = cc.find_library('sso_snow3g', required: false)
if not lib.found() or not cc.has_header('sso_snow3g.h') if not lib.found() or not cc.has_header('sso_snow3g.h')
build = false build = false
reason = 'missing dependency, "libsso_snow3g"'
subdir_done() subdir_done()
endif endif

View File

@ -4,6 +4,7 @@
lib = cc.find_library('sso_zuc', required: false) lib = cc.find_library('sso_zuc', required: false)
if not lib.found() or not cc.has_header('sso_zuc.h') if not lib.found() or not cc.has_header('sso_zuc.h')
build = false build = false
reason = 'missing dependency, "libsso_zuc"'
subdir_done() subdir_done()
endif endif

View File

@ -3,6 +3,7 @@
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['pmd_dpaa'] deps += ['pmd_dpaa']
sources = files('dpaa_eventdev.c') sources = files('dpaa_eventdev.c')

View File

@ -5,6 +5,7 @@ version = 2
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['bus_vdev', 'pmd_dpaa2', 'pmd_dpaa2_sec'] deps += ['bus_vdev', 'pmd_dpaa2', 'pmd_dpaa2_sec']
sources = files('dpaa2_hw_dpcon.c', sources = files('dpaa2_hw_dpcon.c',

View File

@ -2,7 +2,8 @@
# Copyright 2018 NXP # Copyright 2018 NXP
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['bus_dpaa'] deps += ['bus_dpaa']

View File

@ -4,7 +4,8 @@
version = 2 version = 2
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['bus_fslmc'] deps += ['bus_fslmc']

View File

@ -3,5 +3,6 @@
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
sources = files('rte_eth_af_packet.c') sources = files('rte_eth_af_packet.c')

View File

@ -13,4 +13,5 @@ if bpf_dep.found() and cc.has_header('bpf/xsk.h') and cc.has_header('linux/if_xd
pkgconfig_extra_libs += '-lbpf' pkgconfig_extra_libs += '-lbpf'
else else
build = false build = false
reason = 'missing dependency, "libbpf"'
endif endif

View File

@ -2,7 +2,8 @@
# Copyright(c) 2018 Intel Corporation # Copyright(c) 2018 Intel Corporation
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
sources = files('avp_ethdev.c') sources = files('avp_ethdev.c')
install_headers('rte_avp_common.h', 'rte_avp_fifo.h') install_headers('rte_avp_common.h', 'rte_avp_fifo.h')

View File

@ -3,6 +3,7 @@
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
sources = files('axgbe_ethdev.c', sources = files('axgbe_ethdev.c',

View File

@ -3,6 +3,7 @@
dep = dependency('zlib', required: false) dep = dependency('zlib', required: false)
build = dep.found() build = dep.found()
reason = 'missing dependency, "zlib"'
ext_deps += dep ext_deps += dep
cflags += '-DZLIB_CONST' cflags += '-DZLIB_CONST'
sources = files('bnx2x.c', sources = files('bnx2x.c',

View File

@ -3,6 +3,7 @@
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['mempool_dpaa'] deps += ['mempool_dpaa']

View File

@ -4,7 +4,8 @@
version = 2 version = 2
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
deps += ['mempool_dpaa2'] deps += ['mempool_dpaa2']

View File

@ -3,6 +3,7 @@
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
sources = files('enetc_ethdev.c', sources = files('enetc_ethdev.c',

View File

@ -2,6 +2,7 @@
# Copyright(c) 2018 Intel Corporation # Copyright(c) 2018 Intel Corporation
build = dpdk_conf.has('RTE_LIBRTE_VHOST') build = dpdk_conf.has('RTE_LIBRTE_VHOST')
reason = 'missing dependency, DPDK vhost library'
allow_experimental_apis = true allow_experimental_apis = true
sources = files('ifcvf_vdpa.c', 'base/ifcvf.c') sources = files('ifcvf_vdpa.c', 'base/ifcvf.c')
includes += include_directories('base') includes += include_directories('base')

View File

@ -3,5 +3,6 @@
# this driver can be built if-and-only-if KNI library is buildable # this driver can be built if-and-only-if KNI library is buildable
build = dpdk_conf.has('RTE_LIBRTE_KNI') build = dpdk_conf.has('RTE_LIBRTE_KNI')
reason = 'missing dependency, DPDK KNI library'
sources = files('rte_eth_kni.c') sources = files('rte_eth_kni.c')
deps += 'kni' deps += 'kni'

View File

@ -25,6 +25,7 @@ foreach libname:libnames
libs += [ lib ] libs += [ lib ]
else else
build = false build = false
reason = 'missing dependency, "' + libname + '"'
endif endif
endforeach endforeach
# Compile PMD # Compile PMD

View File

@ -25,6 +25,7 @@ foreach libname:libnames
libs += [ lib ] libs += [ lib ]
else else
build = false build = false
reason = 'missing dependency, "' + libname + '"'
endif endif
endforeach endforeach
if build if build

View File

@ -10,6 +10,7 @@ inc_dir = path + '/include'
lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false) lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false)
if not lib.found() if not lib.found()
build = false build = false
reason = 'missing dependency, "libmusdk"'
else else
ext_deps += lib ext_deps += lib
includes += include_directories(inc_dir) includes += include_directories(inc_dir)

View File

@ -10,6 +10,7 @@ inc_dir = path + '/include'
lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false) lib = cc.find_library('libmusdk', dirs : [lib_dir], required: false)
if not lib.found() if not lib.found()
build = false build = false
reason = 'missing dependency, "libmusdk"'
else else
ext_deps += lib ext_deps += lib
includes += include_directories(inc_dir) includes += include_directories(inc_dir)

View File

@ -2,6 +2,7 @@
# Copyright(c) 2018 Microsoft Corporation # Copyright(c) 2018 Microsoft Corporation
build = dpdk_conf.has('RTE_LIBRTE_VMBUS_BUS') build = dpdk_conf.has('RTE_LIBRTE_VMBUS_BUS')
reason = 'missing dependency, DPDK VMBus driver'
version = 2 version = 2
sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c', 'hn_vf.c') sources = files('hn_ethdev.c', 'hn_rxtx.c', 'hn_rndis.c', 'hn_nvs.c', 'hn_vf.c')

View File

@ -4,6 +4,7 @@
# All rights reserved. # All rights reserved.
dep = cc.find_library('nfb', required: false) dep = cc.find_library('nfb', required: false)
reason = 'missing dependency, "libnfb"'
build = dep.found() and cc.has_header('nfb/nfb.h', dependencies: dep) build = dep.found() and cc.has_header('nfb/nfb.h', dependencies: dep)

View File

@ -2,7 +2,8 @@
# Copyright(c) 2018 Intel Corporation # Copyright(c) 2018 Intel Corporation
if not is_linux or not dpdk_conf.get('RTE_ARCH_64') if not is_linux or not dpdk_conf.get('RTE_ARCH_64')
build = false build = false
reason = 'only supported on 64-bit linux'
endif endif
sources = files('nfpcore/nfp_cpp_pcie_ops.c', sources = files('nfpcore/nfp_cpp_pcie_ops.c',
'nfpcore/nfp_nsp.c', 'nfpcore/nfp_nsp.c',

View File

@ -14,6 +14,7 @@ else
pkgconfig_extra_libs += '-lpcap' pkgconfig_extra_libs += '-lpcap'
else else
build = false build = false
reason = 'missing dependency, "libpcap"'
endif endif
endif endif
sources = files('rte_eth_pcap.c') sources = files('rte_eth_pcap.c')

View File

@ -8,6 +8,7 @@
if arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64') if arch_subdir != 'x86' or not dpdk_conf.get('RTE_ARCH_64')
build = false build = false
reason = 'only supported on x86_64'
endif endif
allow_experimental_apis = true allow_experimental_apis = true

View File

@ -2,7 +2,8 @@
# Copyright(c) 2018 Intel Corporation # Copyright(c) 2018 Intel Corporation
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
allow_experimental_apis = true allow_experimental_apis = true
install_headers('rte_eth_softnic.h') install_headers('rte_eth_softnic.h')

View File

@ -3,5 +3,6 @@
dep = cc.find_library('sze2', required: false) dep = cc.find_library('sze2', required: false)
build = dep.found() build = dep.found()
reason = 'missing dependency, "libsze2"'
ext_deps += dep ext_deps += dep
sources = files('rte_eth_szedata2.c') sources = files('rte_eth_szedata2.c')

View File

@ -2,7 +2,8 @@
# Copyright 2018 Luca Boccassi <bluca@debian.org> # Copyright 2018 Luca Boccassi <bluca@debian.org>
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
sources = files( sources = files(
'rte_eth_tap.c', 'rte_eth_tap.c',

View File

@ -2,7 +2,8 @@
# Copyright(c) 2018 Luca Boccassi <bluca@debian.org> # Copyright(c) 2018 Luca Boccassi <bluca@debian.org>
if not is_linux if not is_linux
build = false build = false
reason = 'only supported on linux'
endif endif
sources = files('vdev_netvsc.c') sources = files('vdev_netvsc.c')

View File

@ -2,6 +2,7 @@
# Copyright(c) 2018 Intel Corporation # Copyright(c) 2018 Intel Corporation
build = dpdk_conf.has('RTE_LIBRTE_VHOST') build = dpdk_conf.has('RTE_LIBRTE_VHOST')
reason = 'missing dependency, DPDK vhost library'
version = 2 version = 2
sources = files('rte_eth_vhost.c') sources = files('rte_eth_vhost.c')
install_headers('rte_eth_vhost.h') install_headers('rte_eth_vhost.h')

View File

@ -4,6 +4,7 @@
version = 2 version = 2
build = dpdk_conf.has('RTE_LIBRTE_DPAA2_MEMPOOL') build = dpdk_conf.has('RTE_LIBRTE_DPAA2_MEMPOOL')
reason = 'missing dependency, DPDK DPAA2 mempool driver'
deps += ['rawdev', 'mempool_dpaa2', 'bus_vdev'] deps += ['rawdev', 'mempool_dpaa2', 'bus_vdev']
sources = files('dpaa2_cmdif.c') sources = files('dpaa2_cmdif.c')

View File

@ -4,6 +4,7 @@
version = 2 version = 2
build = dpdk_conf.has('RTE_LIBRTE_DPAA2_MEMPOOL') build = dpdk_conf.has('RTE_LIBRTE_DPAA2_MEMPOOL')
reason = 'missing dependency, DPDK DPAA2 mempool driver'
deps += ['rawdev', 'mempool_dpaa2', 'ring', 'kvargs'] deps += ['rawdev', 'mempool_dpaa2', 'ring', 'kvargs']
sources = files('dpaa2_qdma.c') sources = files('dpaa2_qdma.c')

View File

@ -9,6 +9,7 @@ objs = [base_objs]
dep = dependency('libfdt', required: false) dep = dependency('libfdt', required: false)
if not dep.found() if not dep.found()
build = false build = false
reason = 'missing dependency, "libfdt"'
endif endif
deps += ['rawdev', 'pci', 'bus_pci', 'kvargs', deps += ['rawdev', 'pci', 'bus_pci', 'kvargs',
'bus_vdev', 'bus_ifpga', 'net'] 'bus_vdev', 'bus_ifpga', 'net']