diff options
Diffstat (limited to 'util/lint/lint-stable-029-kconfig-name-selects')
-rwxr-xr-x | util/lint/lint-stable-029-kconfig-name-selects | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/util/lint/lint-stable-029-kconfig-name-selects b/util/lint/lint-stable-029-kconfig-name-selects new file mode 100755 index 0000000000..78d6070805 --- /dev/null +++ b/util/lint/lint-stable-029-kconfig-name-selects @@ -0,0 +1,16 @@ +#!/usr/bin/env sh +# SPDX-License-Identifier: GPL-2.0-or-later +# +# DESCR: Check that boards don't use select Kconfig.name + +export LC_ALL=C +FAIL=0 + +for board in src/mainboard/*/*; do + if [ -f ${board}/Kconfig.name ] && grep -q "select " "${board}/Kconfig.name"; then + echo "Mainboard ${board} uses 'select' in Kconfig.name" + FAIL=1 + fi +done + +exit ${FAIL} |