ath11k-check: don't use global with Kconfig and Makefile

Starting from Debian 10 global returns an error with Kconfig and
Makefile, add a workaround for that.

Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
This commit is contained in:
Kalle Valo 2022-02-08 16:54:28 +02:00
parent 64a3e2aabf
commit 9983705ee8

View File

@ -308,6 +308,10 @@ def run_checkpatch(args):
# create tag mapping
for f in driver_files:
# global gives an error from Kconfig and Makefile
if f.endswith('Kconfig') or f.endswith('Makefile'):
continue
cmd = 'global -f %s' % (f)
output = subprocess.check_output(cmd, shell=True)
lines = output.splitlines()