aboutsummaryrefslogtreecommitdiff
path: root/platforms-ci.sh
diff options
context:
space:
mode:
authorRyan Harkin <ryan.harkin@linaro.org>2016-09-07 17:44:48 +0100
committerRyan Harkin <ryan.harkin@linaro.org>2016-09-09 07:35:06 +0100
commit9dc75542c9d8286dc500a292e37b86916381574b (patch)
tree5b88b5d89657fbb0f23cbfd0d9324810a48407a0 /platforms-ci.sh
parent9c8995b1642fa98b7539c5d43c80e81294bb97ee (diff)
Generate debug symbols tarball
PEG have requested a tarball with debug symbols for FVP Android builds. The .zip file is ~71 MB, but a .xz file is almost half that at about ~33 MB. Signed-off-by: Ryan Harkin <ryan.harkin@linaro.org>
Diffstat (limited to 'platforms-ci.sh')
-rwxr-xr-xplatforms-ci.sh27
1 files changed, 17 insertions, 10 deletions
diff --git a/platforms-ci.sh b/platforms-ci.sh
index 0df006a..6bc02c4 100755
--- a/platforms-ci.sh
+++ b/platforms-ci.sh
@@ -1,5 +1,7 @@
#!/bin/bash
+job_output_dir=out
+
# UEFI builds use the WORSKPACE variable, so save it and restore it later
JENKINS_WORKSPACE=${WORKSPACE}
if [ "$JENKINS_WORKSPACE" == "" ]; then
@@ -249,7 +251,7 @@ function create_release_zip
popd
# zip up the build
- zip -r ../${to}.zip *
+ zip -r ../${job_output_dir}/${to}.zip *
popd
}
function dobuilds
@@ -319,6 +321,9 @@ dobuilds ${PINNED}lsk $YYMM
dobuilds ${PINNED}latest $YYMM
dobuilds ${PINNED}uefi $YYMM
+# Create the directory where we'll place all the stuff we expect to appear on snapshots.linaro.org
+mkdir ${job_output_dir}
+
# Create the recovery directories for each variant
create_release_zip juno ${PINNED}latest busybox uboot juno-latest-busybox-uboot
create_release_zip juno ${PINNED}latest oe uboot juno-latest-oe-uboot
@@ -338,19 +343,21 @@ if [ "$JOB_TYPE" != "release" ]; then
create_release_zip tc2 ${PINNED}uefi uefi uefi tc2-uefi
fi
-# create the final release zips
-if [ "$PLATFORMS_ZIPS" == "yes" ]; then
- zip juno-platforms.zip juno-l*.zip
- zip fvp-platforms.zip fvp-l*.zip
- zip tc2-platforms.zip tc2-l*.zip
-fi
-if [ "$UBER_ZIP" == "yes" ]; then
- zip platforms.zip juno-l*.zip fvp-l*.zip tc2-l*.zip
-fi
+echo PWD: $PWD
+echo "ls -al"
+ls -al
+
+dbgfile=$PWD/${job_output_dir}/fvp-lsk-android-debug.tar.xz
+echo "Generating FVP Android debug archive: ${dbgfile}"
+pushd workspace-${PINNED}lsk/linux/out/fvp/android/
+tar cJf ${dbgfile} System.map vmlinux
+popd
+pushd ${job_output_dir}
md5sum *.zip > MD5SUMS
ls -al
+popd
# restore the WORKSPACE variable now we're finished building
unset WORKSPACE