From c0efc7efa5ea053b8b0e1319fb22ede7da2225da Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Mon, 8 Mar 2021 15:03:29 +0800 Subject: [PATCH] scripts: checkpatch: add strip check Signed-off-by: Joseph Chen Change-Id: I0ffd1aa86ff3c87caa84d6d1afe83cf8f5757f33 --- scripts/checkpatch.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/checkpatch.sh b/scripts/checkpatch.sh index 407e2250..a788cbd8 100755 --- a/scripts/checkpatch.sh +++ b/scripts/checkpatch.sh @@ -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