scripts: checkpatch: check dirty files

Check for spl/tpl/usbplug from U-Boot project.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I7ed3399c5097f13ac99a9afc1e1f8dee4e25014b
This commit is contained in:
Joseph Chen
2020-05-26 15:06:57 +08:00
parent 458354d2a8
commit 7448aaf21d

View File

@@ -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