Martin Roth | 0ad5fbd | 2020-12-24 12:06:38 -0700 | [diff] [blame] | 1 | #!/usr/bin/env sh |
Martin Roth | 35bfb9d | 2016-08-29 15:49:02 -0600 | [diff] [blame] | 2 | # |
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 3 | # SPDX-License-Identifier: GPL-2.0-only |
| 4 | |
Martin Roth | 35bfb9d | 2016-08-29 15:49:02 -0600 | [diff] [blame] | 5 | # DESCR: Run checkpatch on directories that are known good |
| 6 | |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 7 | PIDS="" |
| 8 | DIRS="src/acpi \ |
| 9 | src/cpu/armltd src/cpu/qemu-power8 src/cpu/qemu-x86 \ |
Elyes HAOUAS | 796c567 | 2020-08-28 10:10:35 +0200 | [diff] [blame] | 10 | src/drivers/gic src/drivers/ti \ |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 11 | src/ec/purism \ |
| 12 | src/include/boot src/include/superio src/include/sys \ |
Elyes HAOUAS | 1061599 | 2020-02-29 10:48:19 +0100 | [diff] [blame] | 13 | src/mainboard/adlink src/mainboard/purism src/mainboard/ti \ |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 14 | src/superio/acpi src/superio/common \ |
| 15 | " |
Martin Roth | 35bfb9d | 2016-08-29 15:49:02 -0600 | [diff] [blame] | 16 | |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 17 | for directory in $DIRS; do |
| 18 | util/lint/lint-007-checkpatch "$directory" & |
| 19 | PIDS="$PIDS $!" |
| 20 | done |
Martin Roth | 35bfb9d | 2016-08-29 15:49:02 -0600 | [diff] [blame] | 21 | |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 22 | # wait for tests to finish. |
| 23 | for pid in $PIDS; do |
| 24 | wait "$pid" |
| 25 | done |