Debian Codegraph @

util/lint/lint-stable-006-board-name

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 #
4 # DESCR: Check that every vendor and board has a Kconfig.name
5
6 LC_ALL=C export LC_ALL
7 FAIL=0
8
9 for i in src/mainboard/*/; do
10 if [scip-shell system . . `[`. -r $i/Kconfig ]; then
11 if [scip-shell system . . `[`. ! -r $i/Kconfig.name ]; then
12 VENDOR="$(grepscip-shell system . . grep. -A2 MAINBOARD_VENDOR $i/Kconfig | tailscip-shell system . . tail. -1 | cutscip-shell system . . cut. -f2 -d\")"
13 echoscip-shell system . . echo. "Vendor $VENDOR missing $i/Kconfig.name."
14 FAIL=1
15 fi
16 fi
17 done
18
19 for i in src/mainboard/*/*/; do
20 case "$i" in
21 */common/) continue ;;
22 esac
23
24 if [scip-shell system . . `[`. -r $i/Kconfig ]; then
25 if [scip-shell system . . `[`. ! -r $i/Kconfig.name ]; then
26 BOARD="$(grepscip-shell system . . grep. -A2 MAINBOARD_PART_NUMBER $i/Kconfig | tailscip-shell system . . tail. -1 | cutscip-shell system . . cut. -f2 -d\")"
27 echoscip-shell system . . echo. "Mainboard $BOARD missing $i/Kconfig.name"
28 FAIL=1
29 fi
30 fi
31 done
32
33 exit $FAIL