diff options
-rw-r--r-- | conf/distro/b2qt.conf | 2 | ||||
-rwxr-xr-x | scripts/upload.sh | 52 |
2 files changed, 53 insertions, 1 deletions
diff --git a/conf/distro/b2qt.conf b/conf/distro/b2qt.conf index 894397d..5d8ba73 100644 --- a/conf/distro/b2qt.conf +++ b/conf/distro/b2qt.conf | |||
@@ -51,7 +51,7 @@ MACHINE_EXTRA_INSTALL ?= "" | |||
51 | MACHINE_EXTRA_INSTALL_SDK ?= "" | 51 | MACHINE_EXTRA_INSTALL_SDK ?= "" |
52 | MACHINE_EXTRA_INSTALL_SDK_HOST ?= "" | 52 | MACHINE_EXTRA_INSTALL_SDK_HOST ?= "" |
53 | 53 | ||
54 | IMAGE_FSTYPES ?= "tar.gz" | 54 | IMAGE_FSTYPES = "tar.gz" |
55 | 55 | ||
56 | LICENSE_CREATE_PACKAGE = "1" | 56 | LICENSE_CREATE_PACKAGE = "1" |
57 | COPY_LIC_MANIFEST = "1" | 57 | COPY_LIC_MANIFEST = "1" |
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 | ||