summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-12-15 15:44:23 -0600
committerFelix Held <felix-coreboot@felixheld.de>2023-12-17 18:43:07 +0000
commit024c5c908b80c73761d984f5f7468cfdd65ef96e (patch)
tree0f02f6c030edbebe215a64b8477d3c10638e3f1a /util
parentb6053bc1fc64592f03dc957814f639d407b1525e (diff)
downloadcoreboot-024c5c908b80c73761d984f5f7468cfdd65ef96e.tar.gz
coreboot-024c5c908b80c73761d984f5f7468cfdd65ef96e.tar.bz2
coreboot-024c5c908b80c73761d984f5f7468cfdd65ef96e.zip
util/lint: Exclude .apcb files from various checks
.apcb files are binary configuration data and not human readable; exclude them from license, newline, and whitespace checks. Change-Id: Idc1ddd5067cb97ef8b5758a0b8bf040d1e421871 Signed-off-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/79589 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martin.roth@amd.corp-partner.google.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/lint/lint-000-license-headers1
-rwxr-xr-xutil/lint/lint-extended-015-final-newlines2
-rwxr-xr-xutil/lint/lint-stable-003-whitespace2
-rwxr-xr-xutil/lint/lint-stable-009-old-licenses1
4 files changed, 4 insertions, 2 deletions
diff --git a/util/lint/lint-000-license-headers b/util/lint/lint-000-license-headers
index 07cdb23d9562..68bdae7bad3d 100755
--- a/util/lint/lint-000-license-headers
+++ b/util/lint/lint-000-license-headers
@@ -68,6 +68,7 @@ _shipped$|\
config|\
cmos\.layout|\
cmos\.default\
+\.apcb$|\
"
#space separated list of directories to test
diff --git a/util/lint/lint-extended-015-final-newlines b/util/lint/lint-extended-015-final-newlines
index b761afbf274c..4ea4536124ec 100755
--- a/util/lint/lint-extended-015-final-newlines
+++ b/util/lint/lint-extended-015-final-newlines
@@ -15,7 +15,7 @@ LINTDIR="$(
PIDS=""
INCLUDED_DIRS_AND_FILES='util/* src/* payloads/* configs/* Makefile *.inc'
EXCLUDED_DIRS='src/vendorcode/\|cbfstool/lzma/\|cbfstool/lz4/\|Documentation/\|build/\|3rdparty/\|\.git/\|coreboot-builds/\|util/nvidia/cbootimage/\|^util/goswid/vendor'
-EXCLUDED_FILES='\.gif$\|\.jpg$\|\.cksum$\|\.bin$\|\.vbt$\|\.hex$\|\.ico$\|\.o$\|\.bz2$\|\.xz$\|^.tmpconfig\|\.pyc$\|_shipped$\|sha256$\|\.png$\|\.patch$'
+EXCLUDED_FILES='\.gif$\|\.jpg$\|\.cksum$\|\.bin$\|\.vbt$\|\.hex$\|\.ico$\|\.o$\|\.bz2$\|\.xz$\|^.tmpconfig\|\.pyc$\|_shipped$\|sha256$\|\.png$\|\.patch$\|\.apcb$'
HAVE_FILE=$(command -v file 1>/dev/null 2>&1; echo $?)
diff --git a/util/lint/lint-stable-003-whitespace b/util/lint/lint-stable-003-whitespace
index 82b46b02ad94..83b3faa3b0d7 100755
--- a/util/lint/lint-stable-003-whitespace
+++ b/util/lint/lint-stable-003-whitespace
@@ -11,7 +11,7 @@ LINTDIR="$(
# shellcheck source=helper_functions.sh
. "${LINTDIR}/helper_functions.sh"
-EXCLUDELIST='^src/vendorcode/|^util/kconfig/|^util/nvidia/cbootimage|^util/goswid|__pycache__|COPYING|LICENSE|README|_shipped$|\.patch$|\.bin$|\.hex$|\.jpg$|\.gif$|\.ttf$|\.woff$|\.png$|\.eot$|\.vbt$|\.ico$|\.md$'
+EXCLUDELIST='^src/vendorcode/|^util/kconfig/|^util/nvidia/cbootimage|^util/goswid|__pycache__|COPYING|LICENSE|README|_shipped$|\.patch$|\.bin$|\.hex$|\.jpg$|\.gif$|\.ttf$|\.woff$|\.png$|\.eot$|\.vbt$|\.ico$|\.md$\|\.apcb$'
INCLUDELIST="src util payloads Makefile* toolchain.inc tests"
# shellcheck disable=SC2086,SC2046
diff --git a/util/lint/lint-stable-009-old-licenses b/util/lint/lint-stable-009-old-licenses
index bb508d7f04d4..45c01c73a6e3 100755
--- a/util/lint/lint-stable-009-old-licenses
+++ b/util/lint/lint-stable-009-old-licenses
@@ -23,6 +23,7 @@ HEADER_EXCLUDED="\
\.cksum$|\
\.bin$|\
\.vbt$|\
+\.apcb$|\
\.hex$|\
\.patch$|\
_shipped$|\