scripts: checkpatch: add strip check

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0ffd1aa86ff3c87caa84d6d1afe83cf8f5757f33
This commit is contained in:
Joseph Chen
2021-03-08 15:03:29 +08:00
parent 589da1b523
commit c0efc7efa5

View File

@@ -94,6 +94,17 @@ check_dirty()
done
}
check_stripped()
{
for elf in `find -name '*bl31*.elf'`; do
info=`file ${elf}`
if echo ${info} | grep -q "not stripped" ; then
echo "ERROR: ${elf} is not stripped"
exit 1
fi
done
}
finish()
{
echo "Packing loader and trust successfully."
@@ -101,6 +112,7 @@ finish()
}
check_dirty
check_stripped
pack_loader_image
pack_trust_image
finish