2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # DESCR: Check that every board has a meaningful board_info.txt
8 cd -- "$
(dirname "$0")" > /dev/null 2>&1 || return
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"
21 category
="$(sed -n 's#^Category: \(.*\)$#\1#p' < "$board_info")"
23 desktop|server|laptop|half|mini|settop|
"eval"|sbc|emulation|misc
)
26 echo "$board_info doesn't contain 'Category' tag"
30 echo "$board_info specifies unknown category '$category'"