build_package.sh: pipe memory layout to console log

At the moment the memory layout is only found in the build log. This
makes it tedious investigating memory constraint failures in CI. Run the
memory layout tool separately from the TF build step so that its output
can be piped to both the console and the build log.

Change-Id: Ia720bfbb0841b9ea5342316b9ae5f2dcc5484aaa
Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
diff --git a/script/build_package.sh b/script/build_package.sh
index c527475..ec93865 100755
--- a/script/build_package.sh
+++ b/script/build_package.sh
@@ -484,7 +484,7 @@
 	config_file="${tf_build_config:-$tf_config_file}"
 
 	# Build fiptool and all targets by default
-	build_targets="${tf_build_targets:-memmap fiptool all}"
+	build_targets="${tf_build_targets:-fiptool all}"
 
 	source "$config_file"
 
@@ -543,6 +543,8 @@
 	$tf_build_wrapper poetry run make $make_j_opts $(cat "$config_file") \
 		DEBUG="$DEBUG" V=1 SPIN_ON_BL1_EXIT="$connect_debugger" \
 		$build_targets 3>&1 &>>"$build_log" || fail_build
+
+        poetry run memory -sr "$tf_build_path" 2>&1 | tee -a "$build_log"
 	)
 }