Martin Roth | 35bfb9d | 2016-08-29 15:49:02 -0600 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # This file is part of the coreboot project. |
| 3 | # |
| 4 | # Copyright (C) 2016 Google Inc. |
| 5 | # |
| 6 | # This program is free software; you can redistribute it and/or modify |
| 7 | # it under the terms of the GNU General Public License as published by |
| 8 | # the Free Software Foundation; version 2 of the License. |
| 9 | # |
| 10 | # This program is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # |
| 16 | # DESCR: Run checkpatch on directories that are known good |
| 17 | |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 18 | PIDS="" |
| 19 | DIRS="src/acpi \ |
| 20 | src/cpu/armltd src/cpu/qemu-power8 src/cpu/qemu-x86 \ |
| 21 | src/drivers/dec src/drivers/gic src/drivers/ti \ |
| 22 | src/ec/purism \ |
| 23 | src/include/boot src/include/superio src/include/sys \ |
Elyes HAOUAS | 1061599 | 2020-02-29 10:48:19 +0100 | [diff] [blame] | 24 | src/mainboard/adlink src/mainboard/purism src/mainboard/ti \ |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 25 | src/superio/acpi src/superio/common \ |
| 26 | " |
Martin Roth | 35bfb9d | 2016-08-29 15:49:02 -0600 | [diff] [blame] | 27 | |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 28 | for directory in $DIRS; do |
| 29 | util/lint/lint-007-checkpatch "$directory" & |
| 30 | PIDS="$PIDS $!" |
| 31 | done |
Martin Roth | 35bfb9d | 2016-08-29 15:49:02 -0600 | [diff] [blame] | 32 | |
Martin Roth | f1eff68 | 2018-06-09 18:34:20 -0600 | [diff] [blame] | 33 | # wait for tests to finish. |
| 34 | for pid in $PIDS; do |
| 35 | wait "$pid" |
| 36 | done |