blob: c221d4a9f4db0aa1fd2a7469b85c1bf69940f639 [file] [log] [blame]
Martin Roth35bfb9d2016-08-29 15:49:02 -06001#!/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 Rothf1eff682018-06-09 18:34:20 -060018PIDS=""
19DIRS="src/acpi \
20src/cpu/armltd src/cpu/qemu-power8 src/cpu/qemu-x86 \
21src/drivers/dec src/drivers/gic src/drivers/ti \
22src/ec/purism \
23src/include/boot src/include/superio src/include/sys \
Elyes HAOUAS10615992020-02-29 10:48:19 +010024src/mainboard/adlink src/mainboard/purism src/mainboard/ti \
Martin Rothf1eff682018-06-09 18:34:20 -060025src/superio/acpi src/superio/common \
26"
Martin Roth35bfb9d2016-08-29 15:49:02 -060027
Martin Rothf1eff682018-06-09 18:34:20 -060028for directory in $DIRS; do
29 util/lint/lint-007-checkpatch "$directory" &
30 PIDS="$PIDS $!"
31done
Martin Roth35bfb9d2016-08-29 15:49:02 -060032
Martin Rothf1eff682018-06-09 18:34:20 -060033# wait for tests to finish.
34for pid in $PIDS; do
35 wait "$pid"
36done