| 1 | #!/usr/bin/env sh |
| 2 | # |
| 3 | # SPDX-License-Identifier: GPL-2.0-only |
| 4 | |
| 5 | # DESCR: Run checkpatch on directories that are known good |
| 6 | |
| 7 | PIDS="" |
| 8 | DIRS="src/acpi \ |
| 9 | src/cpu/armltd src/cpu/qemu-power8 src/cpu/qemu-x86 \ |
| 10 | src/drivers/ti \ |
| 11 | src/ec/purism \ |
| 12 | src/include/boot src/include/superio src/include/sys \ |
| 13 | src/mainboard/purism src/mainboard/ti \ |
| 14 | src/superio/acpi src/superio/common \ |
| 15 | " |
| 16 | |
| 17 | for directory in $DIRS; do |
| 18 | if [ -d "$directory" ]; then |
| 19 | util/lint/lint-007-checkpatch "$directory" & |
| 20 | PIDS="$PIDS $!" |
| 21 | fi |
| 22 | done |
| 23 | |
| 24 | # wait for tests to finish. |
| 25 | for pid in $PIDS; do |
| 26 | wait "$pid" |
| 27 | done |