scripts: checkpatch: add strip check
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I0ffd1aa86ff3c87caa84d6d1afe83cf8f5757f33
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user