[RFC] Address the leftover TODO in soc/intel/cannonlake
[coreboot.git] / util / lint / lint-stable-017-configs
blob311ef38cd0c642a2f4e74260daee25d7481d0378
1 #!/usr/bin/env sh
3 # SPDX-License-Identifier: GPL-2.0-only
5 # DESCR: Check that saved config files are miniconfigs
7 LC_ALL=C export LC_ALL
9 SYMBOLS='CONFIG_ARCH_\|CONFIG_MAINBOARD_HAS_'
11 # Use git grep if the code is in a git repo, otherwise use grep.
12 if [ -n "$(command -v git)" ] && \
13 [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ]
14 then
15 GREP="git grep -l"
16 else
17 GREP="grep -rl"
20 #look for a couple of things that should only be set by select keywords
21 for file in \
22 $($GREP "$SYMBOLS" configs) ; do \
23 echo "Error: $file seems to be a full config"; \
24 done