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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user