summaryrefslogtreecommitdiff
path: root/util/lint/lint-stable-017-configs
blob: 5be744570a58c8e1b602e0ca45d3884de89110a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env sh
#
# SPDX-License-Identifier: GPL-2.0-only

# DESCR: Check that saved config files are miniconfigs

LINTDIR="$(
  cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
  pwd -P
)"

# shellcheck source=helper_functions.sh
. "${LINTDIR}/helper_functions.sh"

SYMBOLS='CONFIG_MAINBOARD_DIR\|CONFIG_MAINBOARD_HAS_'

#look for a couple of things that should only be set by select keywords
for file in \
	$(${GREP_FILES} -l "$SYMBOLS" configs) ; do \
		echo "Error: $file seems to be a full config"; \
	done