scripts: checkpatch: Add file format suffix check
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I79d090af66c4ed699c9f127f9571e7396ffea679
This commit is contained in:
committed by
Jianhong Chen
parent
f5d0bc2b49
commit
fd99385ab7
@@ -69,6 +69,10 @@ function check_doc()
|
||||
fi
|
||||
|
||||
# check standalone file
|
||||
if ! echo ${FILE} | grep -Eq '\.bin|\.elf|\.img' ; then
|
||||
echo "ERROR: ${DOC}: '${FILE}' missing the file format suffix"
|
||||
exit 1
|
||||
fi
|
||||
if ! echo ${FILE} | grep -q { ; then
|
||||
if ! git log ${ARG_COMMIT} -1 --name-only | grep -q ${FILE}; then
|
||||
echo "ERROR: ${DOC}: '${FILE}' is not updated in this patch"
|
||||
|
||||
Reference in New Issue
Block a user