ci: generate memory map summary after building TF-A
The `summary` command of the memory map script is newly-introduced, and
provides additional information about the memory consumption of the TF-A
binaries.
Change-Id: Ie7de5628619c18f9ef0c5a952b5ff57190ebddaf
Signed-off-by: Chris Kay <chris.kay@arm.com>
diff --git a/script/build_package.sh b/script/build_package.sh
index 3ee22ad..f98daf1 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -612,7 +612,11 @@
$build_targets 3>&1 &>>"$build_log" || fail_build
if [ "$build_targets" != "doc" ]; then
- (poetry run memory -sr "$tf_build_root" 2>&1 || true) | tee -a "$build_log"
+ (poetry run memory --root "$tf_build_root" symbols 2>&1 || true) | tee -a "${build_log}"
+
+ for map in $(find "${tf_build_root}" -name '*.map'); do
+ (poetry run memory --root "${tf_build_root}" summary "${map}" 2>&1 || true) | tee -a "${build_log}"
+ done
fi
)
}