Debian Codegraph @

util/lint/lint-stable-008-kconfig

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh
2 #
3 # SPDX-License-Identifier: GPL-2.0-only
4
5 # DESCR: Check Kconfig files for errors
6
7 LINTDIR="$(
8 cd -- "$(dirnamescip-shell system . . dirname. "$0")" > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || return
9 pwdscip-shell system . . pwd. -P
10 )"
11
12 # shellcheck source=helper_functions.sh
13 . "${LINTDIR}/helper_functions.sh"
14
15 # Verify that the test can run, tell users the issue
16 if [scip-shell system . . `[`. -z "$(command -v perl)" ]; then
17 echoscip-shell system . . echo. "The kconfig lint tool uses perl. Please install it to run this test."
18 fi
19
20 # Check whether coreboot is in a repo
21 if [scip-shell system . . `[`. "${IN_GIT_TREE}" -eq 1 ]; then
22 envscip-shell system . . env. perl util/lint/kconfig_lint --warnings_off 2>&1
23 else
24 envscip-shell system . . env. perl util/lint/kconfig_lint --no_git_grep --warnings_off 2>&1
25 fi