Martin Roth | 0ad5fbd | 2020-12-24 12:06:38 -0700 | [diff] [blame] | 1 | #!/usr/bin/env sh |
Martin Roth | 21c99af | 2016-11-24 13:16:28 -0700 | [diff] [blame] | 2 | # |
Patrick Georgi | 7333a11 | 2020-05-08 20:48:04 +0200 | [diff] [blame] | 3 | # SPDX-License-Identifier: GPL-2.0-only |
| 4 | |
Martin Roth | 21c99af | 2016-11-24 13:16:28 -0700 | [diff] [blame] | 5 | # DESCR: Check that saved config files are miniconfigs |
| 6 | |
Martin Roth | d81debd | 2022-06-03 00:06:57 -0600 | [diff] [blame] | 7 | LINTDIR="$( |
| 8 | cd -- "$(dirname "$0")" > /dev/null 2>&1 || return |
| 9 | pwd -P |
| 10 | )" |
| 11 | |
| 12 | # shellcheck source=helper_functions.sh |
| 13 | . "${LINTDIR}/helper_functions.sh" |
Martin Roth | 21c99af | 2016-11-24 13:16:28 -0700 | [diff] [blame] | 14 | |
Arthur Heymans | 5196aac | 2023-04-05 15:47:50 +0200 | [diff] [blame] | 15 | SYMBOLS='CONFIG_MAINBOARD_DIR\|CONFIG_MAINBOARD_HAS_' |
Martin Roth | 21c99af | 2016-11-24 13:16:28 -0700 | [diff] [blame] | 16 | |
Martin Roth | 21c99af | 2016-11-24 13:16:28 -0700 | [diff] [blame] | 17 | #look for a couple of things that should only be set by select keywords |
| 18 | for file in \ |
Martin Roth | d81debd | 2022-06-03 00:06:57 -0600 | [diff] [blame] | 19 | $(${GREP_FILES} -l "$SYMBOLS" configs) ; do \ |
Martin Roth | 21c99af | 2016-11-24 13:16:28 -0700 | [diff] [blame] | 20 | echo "Error: $file seems to be a full config"; \ |
| 21 | done |