blob: 4610b5ea996294a080f9ea52c6f83cad499b5cbd [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 \
24src/mainboard/adlink src/mainboard/linutop \
25src/mainboard/purism src/mainboard/ti \
26src/soc/rdc \
27src/superio/acpi src/superio/common \
28"
Martin Roth35bfb9d2016-08-29 15:49:02 -060029
Martin Rothf1eff682018-06-09 18:34:20 -060030for directory in $DIRS; do
31 util/lint/lint-007-checkpatch "$directory" &
32 PIDS="$PIDS $!"
33done
Martin Roth35bfb9d2016-08-29 15:49:02 -060034
Martin Rothf1eff682018-06-09 18:34:20 -060035# wait for tests to finish.
36for pid in $PIDS; do
37 wait "$pid"
38done