aboutsummaryrefslogtreecommitdiff
path: root/platforms-ci.sh
diff options
context:
space:
mode:
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