acpi: Add IORT helper functions
[coreboot2.git] / util / lint / lint-stable-006-board-name
blob6f4e4b67512352d764e2917e2fa1b1c0a1ba6b2c
1 #!/usr/bin/env sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
4 # DESCR: Check that every vendor and board has a Kconfig.name
6 LC_ALL=C export LC_ALL
7 FAIL=0
9 for i in src/mainboard/*/; do
10 if [ -r $i/Kconfig ]; then
11 if [ ! -r $i/Kconfig.name ]; then
12 VENDOR="$(grep -A2 MAINBOARD_VENDOR $i/Kconfig | tail -1 | cut -f2 -d\")"
13 echo "Vendor $VENDOR missing $i/Kconfig.name."
14 FAIL=1
17 done
19 for i in src/mainboard/*/*/; do
20 if [ -r $i/Kconfig ]; then
21 if [ ! -r $i/Kconfig.name ]; then
22 BOARD="$(grep -A2 MAINBOARD_PART_NUMBER $i/Kconfig | tail -1 | cut -f2 -d\")"
23 echo "Mainboard $BOARD missing $i/Kconfig.name"
24 FAIL=1
27 done
29 exit $FAIL