From 7448aaf21deeab614e0e11524aedbbc164708e39 Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Tue, 26 May 2020 15:06:57 +0800 Subject: [PATCH] scripts: checkpatch: check dirty files Check for spl/tpl/usbplug from U-Boot project. Signed-off-by: Joseph Chen Change-Id: I7ed3399c5097f13ac99a9afc1e1f8dee4e25014b --- scripts/checkpatch.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/checkpatch.sh b/scripts/checkpatch.sh index 99fc9c49..566d0422 100755 --- a/scripts/checkpatch.sh +++ b/scripts/checkpatch.sh @@ -84,12 +84,23 @@ pack_trust_image() done } +check_dirty() +{ + for file in `find -name '*spl*.bin' -o -name '*tpl*.bin' -o -name '*usbplug*.bin'`; do + if strings ${file} | grep '\-dirty ' ; then + echo "ERROR: ${file} is dirty" + exit 1 + fi + done +} + finish() { echo "Packing loader and trust successfully." echo } +check_dirty pack_loader_image pack_trust_image finish