ath12k-check: Support subdirectories

The ath12k-ng refactoring of ath12k introduces subdirectories.
Update ath12k-check to properly handle the subdirectories.

Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
This commit is contained in:
Jeff Johnson 2025-03-28 11:06:12 -07:00
parent 3349c9cfbd
commit e53ea71655

View file

@ -118,7 +118,7 @@ def run_gcc(args):
# to disable utf-8 from gcc, easier to paste that way # to disable utf-8 from gcc, easier to paste that way
os.environ['LC_CTYPE'] = 'C' os.environ['LC_CTYPE'] = 'C'
cmd = 'rm -f %s/*.o' % (DRIVER_DIR) cmd = 'find %s -name "*.o" -type f -delete' % (DRIVER_DIR)
logger.debug('%s' % cmd) logger.debug('%s' % cmd)
subprocess.call(cmd, shell=True, universal_newlines=True) subprocess.call(cmd, shell=True, universal_newlines=True)
@ -298,7 +298,7 @@ def run_checkpatch_cmd(args, q, tag_map):
# get all driver files which are commited to git, includes Kconfig, Makefile etc # get all driver files which are commited to git, includes Kconfig, Makefile etc
def get_commited_files(): def get_commited_files():
cmd = ['git', 'ls-tree', '--name-only', 'HEAD', DRIVER_DIR] cmd = ['git', 'ls-tree', '-r', '--name-only', 'HEAD', DRIVER_DIR]
output = subprocess.check_output(cmd, universal_newlines=True) output = subprocess.check_output(cmd, universal_newlines=True)
return output.splitlines() return output.splitlines()