drivers: clean up build lists

Ensure all lists of drivers are standardized:
* one driver per line
* lists double-indented with spaces (as they are line continuations)
* elements in alphabetical order
* opening and closing list brackets "[" & "]" on own lines
* last element has trailing comma

Any code snippets in the list files is adjusted to single-indent using
whitespace to correspond to the new style also.

The lists of standard library dependencies per class, and other short
lists are not formatted one-per-line as these lists are not expected to
grow beyond 2 or 3 entries.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
Bruce Richardson 2021-04-20 11:22:20 +01:00 committed by Thomas Monjalon
parent 6f8a1a4591
commit cf995efc53
12 changed files with 171 additions and 114 deletions

View File

@ -5,4 +5,10 @@ if is_windows
subdir_done()
endif
drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', 'acc100']
drivers = [
'acc100',
'fpga_5gnr_fec',
'fpga_lte_fec',
'null',
'turbo_sw',
]

View File

@ -1,5 +1,12 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
drivers = ['dpaa', 'fslmc', 'ifpga', 'pci', 'vdev', 'vmbus']
drivers = [
'dpaa',
'fslmc',
'ifpga',
'pci',
'vdev',
'vmbus',
]
std_deps = ['eal']

View File

@ -2,4 +2,11 @@
# Copyright(c) 2018 Cavium, Inc
std_deps = ['eal']
drivers = ['cpt', 'dpaax', 'iavf', 'mvep', 'octeontx', 'octeontx2']
drivers = [
'cpt',
'dpaax',
'iavf',
'mvep',
'octeontx',
'octeontx2',
]

View File

@ -5,6 +5,11 @@ if is_windows
subdir_done()
endif
drivers = ['isal', 'mlx5', 'octeontx', 'zlib']
drivers = [
'isal',
'mlx5',
'octeontx',
'zlib',
]
std_deps = ['compressdev'] # compressdev pulls in all other needed deps

View File

@ -5,7 +5,8 @@ if is_windows
subdir_done()
endif
drivers = ['aesni_gcm',
drivers = [
'aesni_gcm',
'aesni_mb',
'armv8',
'bcmfs',
@ -23,6 +24,7 @@ drivers = ['aesni_gcm',
'scheduler',
'snow3g',
'virtio',
'zuc']
'zuc',
]
std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps

View File

@ -5,8 +5,16 @@ if is_windows
subdir_done()
endif
drivers = ['dlb2', 'dpaa', 'dpaa2', 'octeontx2', 'opdl', 'skeleton', 'sw',
'dsw']
drivers = [
'dlb2',
'dpaa',
'dpaa2',
'dsw',
'octeontx2',
'opdl',
'skeleton',
'sw',
]
if not (toolchain == 'gcc' and cc.version().version_compare('<4.8.6') and
dpdk_conf.has('RTE_ARCH_ARM64'))
drivers += 'octeontx'

View File

@ -1,6 +1,14 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright(c) 2017 Intel Corporation
drivers = ['bucket', 'cnxk', 'dpaa', 'dpaa2', 'octeontx', 'octeontx2', 'ring',
'stack']
drivers = [
'bucket',
'cnxk',
'dpaa',
'dpaa2',
'octeontx',
'octeontx2',
'ring',
'stack',
]
std_deps = ['mempool']

View File

@ -2,24 +2,28 @@
# Copyright(c) 2017 Intel Corporation
drivers = ['af_packet',
drivers = [
'af_packet',
'af_xdp',
'ark',
'atlantic',
'avp',
'axgbe', 'bonding',
'axgbe',
'bnx2x',
'bnxt',
'bonding',
'cxgbe',
'dpaa', 'dpaa2',
'dpaa',
'dpaa2',
'e1000',
'ena',
'enetc',
'enic',
'failsafe',
'fm10k', 'i40e',
'fm10k',
'hinic',
'hns3',
'i40e',
'iavf',
'ice',
'igc',

View File

@ -5,9 +5,14 @@ if is_windows
subdir_done()
endif
drivers = ['dpaa2_cmdif', 'dpaa2_qdma',
'ifpga', 'ioat', 'ntb',
drivers = [
'dpaa2_cmdif',
'dpaa2_qdma',
'ifpga',
'ioat',
'ntb',
'octeontx2_dma',
'octeontx2_ep',
'skeleton']
'skeleton',
]
std_deps = ['rawdev']

View File

@ -1,5 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2020 Mellanox Technologies, Ltd
drivers = ['mlx5', 'octeontx2']
drivers = [
'mlx5',
'octeontx2',
]
std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc

View File

@ -5,7 +5,9 @@ if is_windows
subdir_done()
endif
drivers = ['ifc',
'mlx5',]
drivers = [
'ifc',
'mlx5',
]
std_deps = ['bus_pci', 'kvargs']
std_deps += ['vhost']