blob: 5be744570a58c8e1b602e0ca45d3884de89110a9 [file] [log] [blame]
Martin Roth0ad5fbd2020-12-24 12:06:38 -07001#!/usr/bin/env sh
Martin Roth21c99af2016-11-24 13:16:28 -07002#
Patrick Georgi7333a112020-05-08 20:48:04 +02003# SPDX-License-Identifier: GPL-2.0-only
4
Martin Roth21c99af2016-11-24 13:16:28 -07005# DESCR: Check that saved config files are miniconfigs
6
Martin Rothd81debd2022-06-03 00:06:57 -06007LINTDIR="$(
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 Roth21c99af2016-11-24 13:16:28 -070014
Arthur Heymans5196aac2023-04-05 15:47:50 +020015SYMBOLS='CONFIG_MAINBOARD_DIR\|CONFIG_MAINBOARD_HAS_'
Martin Roth21c99af2016-11-24 13:16:28 -070016
Martin Roth21c99af2016-11-24 13:16:28 -070017#look for a couple of things that should only be set by select keywords
18for file in \
Martin Rothd81debd2022-06-03 00:06:57 -060019 $(${GREP_FILES} -l "$SYMBOLS" configs) ; do \
Martin Roth21c99af2016-11-24 13:16:28 -070020 echo "Error: $file seems to be a full config"; \
21 done