aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArvind Chauhan <arvind.chauhan@arm.com>2018-09-07 17:03:58 +0100
committerArvind Chauhan <arvind.chauhan@arm.com>2018-09-07 17:03:58 +0100
commit2c64338f6eb2c693abe4eb58e3ce5658ee2838be (patch)
tree09abc30c6f1be3557426f44313590eab85a051d1
parent6120313058c2ca391538d5a679907e35497e7976 (diff)
platform-ci: Add support to generate SGM775 and SGI575 release packs
Signed-off-by: Arvind Chauhan <arvind.chauhan@arm.com>
-rwxr-xr-xplatforms-ci.sh49
1 files changed, 48 insertions, 1 deletions
diff --git a/platforms-ci.sh b/platforms-ci.sh
index 2655cc8..1e3e872 100755
--- a/platforms-ci.sh
+++ b/platforms-ci.sh
@@ -7,6 +7,8 @@ source ${SCRIPT_DIR}/platforms-common.sh
VALID_PLATFORM_LIST_ACK=("fvp" "fvp32" "juno" "juno32")
VALID_PLATFORM_LIST_LATEST=("fvp" "fvp32" "juno" "juno32")
VALID_PLATFORM_LIST_UEFI=("fvp" "juno")
+VALID_PLATFORM_LIST_SGI=("sgi575")
+VALID_PLATFORM_LIST_SGM=("sgm775")
function trap_apt_failure
{
@@ -119,6 +121,9 @@ gcc_aarch32=gcc-linaro-${gcc_file_ver}-x86_64_arm-linux-gnueabihf.tar.xz
gcc_url=http://releases.linaro.org/components/toolchain/binaries/${gcc_dir_ver}
aarch64gcc_url=${gcc_url}/aarch64-linux-gnu/$gcc_aarch64
aarch32gcc_url=${gcc_url}/arm-linux-gnueabihf/$gcc_aarch32
+gcc_arm_none=https://launchpad.net/gcc-arm-embedded/5.0/5-2016-q3-update/+download/gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2
+gcc_arm_none_toolchain=gcc-arm-none-eabi-5_4-2016q3-20160926-linux.tar.bz2
+
function download_toolchain
{
@@ -133,6 +138,11 @@ function download_toolchain
else
echo "We already have $gcc_aarch32"
fi
+ if [ ! -e $gcc_arm_none_toolchain ]; then
+ wget $gcc_arm_none
+ else
+ echo "We already have $gcc_arm_none_toolchain"
+ fi
echo toolchains downloaded
ls -al
@@ -158,6 +168,12 @@ function install_toolchain
echo "ERROR: failed to download aarch32 gcc $gcc_aarch32"
exit
fi
+ if [ -e $JENKINS_WORKSPACE/$gcc_arm_none_toolchain ]; then
+ tar jxf $JENKINS_WORKSPACE/$gcc_arm_none_toolchain
+ else
+ echo "ERROR: failed to download $gcc_arm_none"
+ exit
+ fi
echo toolchains installed
ls -al
@@ -172,7 +188,12 @@ function create_release_zip
local to=$5
local workspace=workspace-${manifest}
- local from=$workspace/output/${variant}/${variant}-${os}/${boot}
+
+ if [ "$variant" == "sgm775" ] || [ "$variant" == "sgi575" ]; then
+ local from=$workspace/output/${variant}
+ else
+ local from=$workspace/output/${variant}/${variant}-${os}/${boot}
+ fi
echo copying output $from $to
@@ -202,6 +223,16 @@ function create_release_zip
cp -R $workspace/vexpress-firmware/* $to
cp -R $from/* $to/SOFTWARE
;;
+ sgm775 )
+ cp $workspace/model-scripts/sgm775/run_model.sh $to
+ sed -i 's#ROOTDIR="../../output/sgm775"#ROOTDIR="."#' $to/run_model.sh
+ cp -R $from/* $to
+ ;;
+ sgi575 )
+ cp $workspace/model-scripts/sgi575/run_model.sh $to
+ sed -i 's#ROOTDIR="../../output/sgi575"#ROOTDIR="."#' $to/run_model.sh
+ cp -R $from/* $to
+ ;;
* )
echo "WARNING: variant not recognised"
echo " you will get a default set of files in your ZIP"
@@ -324,6 +355,18 @@ function dobuilds
./build-scripts/build-all.sh -p ${platform} -f busybox all
./build-scripts/build-all.sh -p ${platform} -f oe all
done
+ elif [ "$manifest" == "sgi575" ]; then
+ echo "Doing build only for SGI Busybox Filesystem"
+ for platform in "${VALID_PLATFORM_LIST_SGI[@]}"
+ do
+ ./build-scripts/build-all.sh -p ${platform} -f busybox all
+ done
+ elif [ "$manifest" == "sgm775" ]; then
+ echo "Doing build only for SGM Busybox Filesystem"
+ for platform in "${VALID_PLATFORM_LIST_SGM[@]}"
+ do
+ ./build-scripts/build-all.sh -p ${platform} -f busybox all
+ done
else
for platform in "${VALID_PLATFORM_LIST_ACK[@]}"
do
@@ -343,11 +386,15 @@ which aarch64-linux-gnu-gcc && aarch64-linux-gnu-gcc -v
dobuilds ${PINNED}ack $YYMM
dobuilds ${PINNED}latest $YYMM
dobuilds ${PINNED}uefi $YYMM
+dobuilds sgi575 $YYMM
+dobuilds sgm775 $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 sgi575 sgi575 busybox uefi sgi575-latest-busybox-uefi
+create_release_zip sgm775 sgm775 busybox uboot sgm775-ack-busybox-uboot
create_release_zip juno ${PINNED}latest busybox uboot juno-latest-busybox-uboot
create_release_zip juno ${PINNED}latest oe uboot juno-latest-oe-uboot
create_release_zip juno ${PINNED}ack android uboot juno-ack-android-uboot