From b37d9f119b5c19585223bd2a423b2ed4b353cc51 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Mon, 24 Nov 2014 13:21:12 +0200 Subject: Script to upload machine images and toolchains upload.sh can be used to upload machine images and toolchain to ci-files02-hki, which is used by the b2qt build scripts. It also does some necessary renaming and the special handing for Freescale SABRE board boot package. Change-Id: I73a0873669a5e5a7929ec27cb929e29616def8cf Reviewed-by: Laszlo Agocs --- scripts/upload.sh | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 scripts/upload.sh diff --git a/scripts/upload.sh b/scripts/upload.sh new file mode 100755 index 0000000..406f1d1 --- /dev/null +++ b/scripts/upload.sh @@ -0,0 +1,52 @@ +#!/bin/sh +############################################################################# +## +## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). +## +## This file is part of the Qt Enterprise Embedded Scripts of the Qt +## framework. +## +## $QT_BEGIN_LICENSE$ +## Commercial License Usage Only +## Licensees holding valid commercial Qt license agreements with Digia +## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, +## may use this file in accordance with the terms contained in said license +## agreement. +## +## For further information use the contact form at +## http://qt.digia.com/contact-us. +## +## +## $QT_END_LICENSE$ +## +############################################################################# + +set -x +set -e + +RELEASE=4.x +UPLOADPATH=QT@ci-files02-hki.ci.local:/srv/jenkins_data/enterprise/b2qt/yocto-${RELEASE}/latest + +if [ ${MACHINE} = "nitrogen6x" ]; then + scp tmp/deploy/images/nitrogen6x/b2qt-embedded-image-boot-nitrogen6x.tar.gz ${UPLOADPATH}/b2qt-embedded-image-boot-iMX6.tar.gz + scp tmp/deploy/images/nitrogen6x/b2qt-embedded-image-nitrogen6x.tar.gz ${UPLOADPATH}/b2qt-embedded-image-iMX6.tar.gz + scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-iMX6.sh +elif [ ${MACHINE} = "emulator" ]; then + cp tmp/deploy/images/emulator/b2qt-embedded-image-emulator.hdd . + gzip b2qt-embedded-image-emulator.hdd -f + scp b2qt-embedded-image-emulator.hdd.gz ${UPLOADPATH}/ + scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-i586-toolchain-${MACHINE}.sh +elif [ ${MACHINE} = "imx6qsabresd" ]; then + cp tmp/deploy/images/imx6qsabresd/b2qt-embedded-image-boot-imx6qsabresd.tar.gz . + cp tmp/deploy/images/imx6dlsabresd/u-boot.imx u-boot-imx6dlsabresd.imx + gunzip b2qt-embedded-image-boot-imx6qsabresd.tar.gz + tar -u --owner root --group root -f b2qt-embedded-image-boot-imx6qsabresd.tar ./u-boot-imx6dlsabresd.imx + rm -f u-boot-imx6dlsabresd.imx + gzip b2qt-embedded-image-boot-imx6qsabresd.tar + scp b2qt-embedded-image-boot-${MACHINE}.tar.gz ${UPLOADPATH}/ + scp tmp/deploy/images/${MACHINE}/b2qt-embedded-image-${MACHINE}.tar.gz ${UPLOADPATH}/ + scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-${MACHINE}.sh +else + scp tmp/deploy/images/${MACHINE}/b2qt-embedded-image-*${MACHINE}.tar.gz ${UPLOADPATH}/ + scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-${MACHINE}.sh +fi -- cgit v1.2.3-54-g00ecf