diff options
| author | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2014-11-24 13:21:12 +0200 |
|---|---|---|
| committer | Samuli Piippo <samuli.piippo@theqtcompany.com> | 2014-11-24 14:53:27 +0200 |
| commit | b37d9f119b5c19585223bd2a423b2ed4b353cc51 (patch) | |
| tree | 05fea769e31efb56d60ff360f2f9c17059da0dc5 /scripts/upload.sh | |
| parent | 4120fbde76371e0445956c0b5b79a15cc20cd986 (diff) | |
| download | meta-boot2qt-b37d9f119b5c19585223bd2a423b2ed4b353cc51.tar.gz | |
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 <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'scripts/upload.sh')
| -rwxr-xr-x | scripts/upload.sh | 52 |
1 files changed, 52 insertions, 0 deletions
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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | ############################################################################# | ||
| 3 | ## | ||
| 4 | ## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). | ||
| 5 | ## | ||
| 6 | ## This file is part of the Qt Enterprise Embedded Scripts of the Qt | ||
| 7 | ## framework. | ||
| 8 | ## | ||
| 9 | ## $QT_BEGIN_LICENSE$ | ||
| 10 | ## Commercial License Usage Only | ||
| 11 | ## Licensees holding valid commercial Qt license agreements with Digia | ||
| 12 | ## with an appropriate addendum covering the Qt Enterprise Embedded Scripts, | ||
| 13 | ## may use this file in accordance with the terms contained in said license | ||
| 14 | ## agreement. | ||
| 15 | ## | ||
| 16 | ## For further information use the contact form at | ||
| 17 | ## http://qt.digia.com/contact-us. | ||
| 18 | ## | ||
| 19 | ## | ||
| 20 | ## $QT_END_LICENSE$ | ||
| 21 | ## | ||
| 22 | ############################################################################# | ||
| 23 | |||
| 24 | set -x | ||
| 25 | set -e | ||
| 26 | |||
| 27 | RELEASE=4.x | ||
| 28 | UPLOADPATH=QT@ci-files02-hki.ci.local:/srv/jenkins_data/enterprise/b2qt/yocto-${RELEASE}/latest | ||
| 29 | |||
| 30 | if [ ${MACHINE} = "nitrogen6x" ]; then | ||
| 31 | scp tmp/deploy/images/nitrogen6x/b2qt-embedded-image-boot-nitrogen6x.tar.gz ${UPLOADPATH}/b2qt-embedded-image-boot-iMX6.tar.gz | ||
| 32 | scp tmp/deploy/images/nitrogen6x/b2qt-embedded-image-nitrogen6x.tar.gz ${UPLOADPATH}/b2qt-embedded-image-iMX6.tar.gz | ||
| 33 | scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-iMX6.sh | ||
| 34 | elif [ ${MACHINE} = "emulator" ]; then | ||
| 35 | cp tmp/deploy/images/emulator/b2qt-embedded-image-emulator.hdd . | ||
| 36 | gzip b2qt-embedded-image-emulator.hdd -f | ||
| 37 | scp b2qt-embedded-image-emulator.hdd.gz ${UPLOADPATH}/ | ||
| 38 | scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-i586-toolchain-${MACHINE}.sh | ||
| 39 | elif [ ${MACHINE} = "imx6qsabresd" ]; then | ||
| 40 | cp tmp/deploy/images/imx6qsabresd/b2qt-embedded-image-boot-imx6qsabresd.tar.gz . | ||
| 41 | cp tmp/deploy/images/imx6dlsabresd/u-boot.imx u-boot-imx6dlsabresd.imx | ||
| 42 | gunzip b2qt-embedded-image-boot-imx6qsabresd.tar.gz | ||
| 43 | tar -u --owner root --group root -f b2qt-embedded-image-boot-imx6qsabresd.tar ./u-boot-imx6dlsabresd.imx | ||
| 44 | rm -f u-boot-imx6dlsabresd.imx | ||
| 45 | gzip b2qt-embedded-image-boot-imx6qsabresd.tar | ||
| 46 | scp b2qt-embedded-image-boot-${MACHINE}.tar.gz ${UPLOADPATH}/ | ||
| 47 | scp tmp/deploy/images/${MACHINE}/b2qt-embedded-image-${MACHINE}.tar.gz ${UPLOADPATH}/ | ||
| 48 | scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-${MACHINE}.sh | ||
| 49 | else | ||
| 50 | scp tmp/deploy/images/${MACHINE}/b2qt-embedded-image-*${MACHINE}.tar.gz ${UPLOADPATH}/ | ||
| 51 | scp tmp/deploy/sdk/b2qt-eglibc-x86_64-meta-toolchain-b2qt-embedded-sdk-*.sh ${UPLOADPATH}/b2qt-eglibc-x86_64-arm-toolchain-${MACHINE}.sh | ||
| 52 | fi | ||
