55189c9d33
Change-Id: I2858fdf74e782f425d56653491cdebe83c185d19 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41208 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
29 lines
690 B
Bash
Executable file
29 lines
690 B
Bash
Executable file
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
# DESCR: Check that every vendor and board has a Kconfig.name
|
|
|
|
LC_ALL=C export LC_ALL
|
|
FAIL=0
|
|
|
|
for i in src/mainboard/*/; do
|
|
if [ -r $i/Kconfig ]; then
|
|
if [ ! -r $i/Kconfig.name ]; then
|
|
VENDOR="$(grep -A2 MAINBOARD_VENDOR $i/Kconfig | tail -1 | cut -f2 -d\")"
|
|
echo "Vendor $VENDOR missing $i/Kconfig.name."
|
|
FAIL=1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
for i in src/mainboard/*/*/; do
|
|
if [ -r $i/Kconfig ]; then
|
|
if [ ! -r $i/Kconfig.name ]; then
|
|
BOARD="$(grep -A2 MAINBOARD_PART_NUMBER $i/Kconfig | tail -1 | cut -f2 -d\")"
|
|
echo "Mainboard $BOARD missing $i/Kconfig.name"
|
|
FAIL=1
|
|
fi
|
|
fi
|
|
done
|
|
|
|
exit $FAIL
|