mb/google/parrot: Fix smbus subsystem ID
[coreboot.git] / util / lint / lint-stable-005-board-status
blob08cbc92c66ea538f764ba2e20063da9a860ea584
1 #!/usr/bin/env sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # DESCR: Check that every board has a meaningful board_info.txt
7 LINTDIR="$(
8 cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
9 pwd -P
12 # shellcheck source=helper_functions.sh
13 . "${LINTDIR}/helper_functions.sh"
15 for mobodir in $(${FIND_FILES} src/mainboard | sed -n 's,^\(src/mainboard/[^/]*/[^/]*\)/.*$,\1,p'|sort|uniq); do
16 board_info="$mobodir/board_info.txt"
17 if ! [ -f "$board_info" ]; then
18 echo "No $board_info found"
19 continue
21 category="$(sed -n 's#^Category: \(.*\)$#\1#p' < "$board_info")"
22 case "$category" in
23 desktop|server|laptop|half|mini|settop|"eval"|sbc|emulation|misc)
25 "")
26 echo "$board_info doesn't contain 'Category' tag"
27 continue
30 echo "$board_info specifies unknown category '$category'"
31 continue
33 esac
34 done
36 exit 0