devtools: forbid indent with tabs in Meson
The rule for indentation in Meson in DPDK is 4 spaces. Any tab should be flagged as an issue, let's extend the check and fix existing offenders. Fixes:4ad4b20a79
("drivers: change indentation in build files") Fixes:2457705e64
("crypto/cnxk: add driver skeleton") Fixes:634b731044
("app/testpmd: build on Windows") Fixes:3a6bfc37ea
("net/ice: support QoS config VF bandwidth in DCF") Fixes:8ef09fdc50
("build: add optional NUMA and CPU counts detection") Fixes:e1369718f5
("common/octeontx: enable build only on 64-bit Linux") Fixes:2b504721bf
("app/bbdev: enable la12xx") Fixes:6cc51b1293
("mem: instrument allocator for ASan") Fixes:c75542ae42
("crypto/ipsec_mb: introduce IPsec_mb framework") Fixes:918fd2f146
("crypto/ipsec_mb: move aesni_mb PMD") Fixes:746825e5c0
("crypto/ipsec_mb: move aesni_gcm PMD") Fixes:bc9ef81c42
("crypto/ipsec_mb: move kasumi PMD") Fixes:4f1cfda59a
("crypto/ipsec_mb: move snow3g PMD") Fixes:cde8df1bda
("crypto/ipsec_mb: move zuc PMD") Fixes:f166628854
("crypto/ipsec_mb: add chacha_poly PMD") Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
2cdca6ed63
commit
f88b0b8922
@ -8,6 +8,7 @@
|
||||
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
from os.path import relpath, join
|
||||
from argparse import ArgumentParser
|
||||
|
||||
@ -50,6 +51,8 @@ def check_indentation(filename, contents):
|
||||
code, comments = split_code_comments(line)
|
||||
if not code.strip():
|
||||
continue
|
||||
if re.match('^ *\t', code):
|
||||
print(f'Error parsing {filename}:{lineno}, got some tabulation')
|
||||
if code.endswith('files('):
|
||||
if infiles:
|
||||
raise(f'Error parsing {filename}:{lineno}, got "files(" when already parsing files list')
|
||||
|
@ -18,16 +18,16 @@ else
|
||||
IMB_required_ver, imb_ver)
|
||||
build = false
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
sources = files('ipsec_mb_private.c',
|
||||
sources = files(
|
||||
'ipsec_mb_private.c',
|
||||
'ipsec_mb_ops.c',
|
||||
'pmd_aesni_mb.c',
|
||||
'pmd_aesni_gcm.c',
|
||||
'pmd_chacha_poly.c',
|
||||
'pmd_kasumi.c',
|
||||
'pmd_snow3g.c',
|
||||
'pmd_zuc.c'
|
||||
'pmd_zuc.c',
|
||||
)
|
||||
deps += ['bus_vdev', 'net', 'security']
|
||||
|
@ -67,10 +67,12 @@ if arch_subdir == 'x86'
|
||||
endif
|
||||
endif
|
||||
|
||||
sources += files('ice_dcf.c',
|
||||
sources += files(
|
||||
'ice_dcf.c',
|
||||
'ice_dcf_vf_representor.c',
|
||||
'ice_dcf_ethdev.c',
|
||||
'ice_dcf_parent.c',
|
||||
'ice_dcf_sched.c')
|
||||
'ice_dcf_sched.c',
|
||||
)
|
||||
|
||||
headers = files('rte_pmd_ice.h')
|
||||
|
Loading…
Reference in New Issue
Block a user