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 <gaumless@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/88234 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
24 lines
733 B
Bash
Executable file
24 lines
733 B
Bash
Executable file
#!/usr/bin/env sh
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
# DESCR: Verify that the word 'coreboot' is lowercase
|
|
|
|
LINTDIR="$(
|
|
cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
|
|
pwd -P
|
|
)"
|
|
|
|
# shellcheck source=helper_functions.sh
|
|
. "${LINTDIR}/helper_functions.sh"
|
|
|
|
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
|
|
if [ -n "$(${GIT} log -n 1 | grep -i 'coreboot' | grep -v "$EXCLUDE" )" ]; then
|
|
echo "'coreboot' should be lowercase in commit message"
|
|
fi
|
|
fi
|
|
|
|
${GREP_FILES} -inI "coreboot" | grep -v "$EXCLUDE";
|