From 5228b3ef7b1d380d566edd2ddcf70ccc792c742c Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 28 Jun 2025 10:05:35 -0600 Subject: [PATCH] util/lint: Ignore binary files for cb lowercase linter The binary files were not being correctly filtered. This tells grep to just ignore binary files. This isn't particularly important inside the git tree, but for releases where we can't use git grep, it becomes an issue. Change-Id: I2852ea1e8b0f337aa5c78daa5e9dbd0c3d6768a9 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/c/coreboot/+/88234 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- util/lint/lint-stable-021-coreboot-lowercase | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/lint/lint-stable-021-coreboot-lowercase b/util/lint/lint-stable-021-coreboot-lowercase index 33ade6ded3..3b19358e3c 100755 --- a/util/lint/lint-stable-021-coreboot-lowercase +++ b/util/lint/lint-stable-021-coreboot-lowercase @@ -12,7 +12,7 @@ LINTDIR="$( # shellcheck source=helper_functions.sh . "${LINTDIR}/helper_functions.sh" -EXCLUDE='^3rdparty/\|util/crossgcc/xgcc\|Binary file\|coreboot\|COREBOOT\|CorebootPayload\|CorebootModule\|minnowboard.org/Coreboot\|.*\.patch$\|CorebootBdsLib\|^payloads/external' +EXCLUDE='^3rdparty/\|util/crossgcc/xgcc\|coreboot\|COREBOOT\|CorebootPayload\|CorebootModule\|minnowboard.org/Coreboot\|.*\.patch$\|CorebootBdsLib\|^payloads/external' # # Check last commit message if the code is in a git repo if [ "${IN_GIT_TREE}" -eq 1 ]; then @@ -21,4 +21,4 @@ if [ "${IN_GIT_TREE}" -eq 1 ]; then fi fi -${GREP_FILES} -in "coreboot" | grep -v "$EXCLUDE"; +${GREP_FILES} -inI "coreboot" | grep -v "$EXCLUDE";