coreboot/util/lint/lint-extended-007-checkpatch
Martin Roth bd36a4a465 util/lint: Remove missing dirs from checkpatch linter
The mb/adlink directory no longer exists, so remove it from the list of
checked directories.
Add a check to make sure that the directory exists before trying to lint
it in the future.

Change-Id: I59874cb7356c2e8eeb8fc216f2930b3d8ef513c7
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88237
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2025-06-29 22:34:57 +00:00

27 lines
568 B
Bash
Executable file

#!/usr/bin/env sh
#
# SPDX-License-Identifier: GPL-2.0-only
# DESCR: Run checkpatch on directories that are known good
PIDS=""
DIRS="src/acpi \
src/cpu/armltd src/cpu/qemu-power8 src/cpu/qemu-x86 \
src/drivers/ti \
src/ec/purism \
src/include/boot src/include/superio src/include/sys \
src/mainboard/purism src/mainboard/ti \
src/superio/acpi src/superio/common \
"
for directory in $DIRS; do
if [ -d "$directory" ]; then
util/lint/lint-007-checkpatch "$directory" &
PIDS="$PIDS $!"
fi
done
# wait for tests to finish.
for pid in $PIDS; do
wait "$pid"
done