diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2015-06-29 11:33:07 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2015-06-29 08:34:26 +0000 |
commit | f6c03bab806d2b173938b3d22f6f2689429f1bd7 (patch) | |
tree | 0d5d9399b4ed776b9ecbe1e3df006733eb339372 /96boards-helium.yaml | |
parent | 9c1c40664e5cd5076feb47c4e10e15ff1d0f5a89 (diff) |
96boards-helium: add new build job for Helium (Marvell PXA1928)
Change-Id: I1eb71df9e7d13fd5644eca80a9cf946be937e91c
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to '96boards-helium.yaml')
-rw-r--r-- | 96boards-helium.yaml | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/96boards-helium.yaml b/96boards-helium.yaml new file mode 100644 index 0000000000..fc5ccd4a25 --- /dev/null +++ b/96boards-helium.yaml @@ -0,0 +1,121 @@ +- job: + name: 96boards-helium + project-type: freestyle + defaults: global + logrotate: + daysToKeep: 30 + numToKeep: 30 + properties: + - authorization: + anonymous: + - job-read + - job-extended-read + - job-workspace + parameters: + - string: + name: ROOTFS + default: 'developer' + disabled: false + node: docker-utopic + display-name: '96boards - Helium (Marvell PXA1928)' + scm: + - git: + url: https://git.linaro.org/people/rob.herring/linux.git + refspec: +refs/heads/v4.1-pxa1928:refs/remotes/origin/v4.1-pxa1928 + name: origin + branches: + - refs/heads/v4.1-pxa1928 + skip-tag: true + shallow-clone: true + wipe-workspace: false + wrappers: + - timestamps + - build-name: + name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' + builders: + - linaro-publish-token: + host: builds.96boards.org + - shell: | + #!/bin/bash + + set -ex + + trap cleanup_exit INT TERM EXIT + + cleanup_exit() + { + cd ${WORKSPACE} + sudo kpartx -dv out/helium-jessie_*.img || true + rm -rf lci-build-tools + rm -rf builddir* + rm -rf out + } + + sudo apt-get install -y kpartx python-pycurl + wget http://repo.linaro.org/ubuntu/linaro-overlay/pool/main/a/android-tools/android-tools-fsutils_4.2.2+git20130218-3ubuntu41+linaro1_amd64.deb + sudo dpkg -i --force-all android-tools-fsutils_*.deb + rm -f android-tools-fsutils_*.deb + # FIXME - temporary workaround + sudo wget https://git.linaro.org/ci/linaro-image-tools.git/blob_plain/HEAD:/linaro-hwpack-install -O /usr/bin/linaro-hwpack-install + sudo chmod +x /usr/bin/linaro-hwpack-install + + export LANG=C + export make_bootwrapper=false + export make_install=true + export kernel_flavour=helium + export kernel_config=pxa1928_defconfig + export MAKE_DTBS=true + export ARCH=arm64 + export tcbindir="${HOME}/srv/toolchain/arm64-tc-15.02/bin" + export toolchain_url=http://releases.linaro.org/15.02/components/toolchain/binaries/arm-linux-gnueabihf/gcc-linaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf.tar.xz + + rm -rf configs lci-build-tools + git clone --depth 1 http://git.linaro.org/ci/lci-build-tools.git + git clone --depth 1 http://git.linaro.org/ci/job/configs.git + bash -x lci-build-tools/jenkins_kernel_build_inst + rm -rf out/dtbs + + # Create the hardware pack + cp -a configs/96boards-helium/hwpacks/linaro-helium . + + VERSION=`date +%Y%m%d`-${BUILD_NUMBER} + linaro-hwpack-create --debug linaro-helium ${VERSION} + linaro-hwpack-replace -t `ls hwpack_linaro-helium_*_arm64_supported.tar.gz` -p `ls linux-image-*-linaro-helium_*.deb` -r linux-image -d -i + linaro-hwpack-replace -t `ls hwpack_linaro-helium_*_arm64_supported.tar.gz` -p `ls linux-headers-*-linaro-helium_*.deb` -r linux-headers -d -i + + cat > out/README.txt << EOF + Build information: + * build: ${BUILD_URL} + * git URL: ${GIT_URL} + * git branch: ${GIT_BRANCH} + * git commit: ${GIT_COMMIT} + EOF + + for rootfs in ${ROOTFS}; do + # Get rootfs + export ROOTFS_BUILD_NUMBER=`wget -q --no-check-certificate -O - https://ci.linaro.org/job/debian-arm64-rootfs/label=build,rootfs=${rootfs}/lastSuccessfulBuild/buildNumber` + export ROOTFS_BUILD_TIMESTAMP=`wget -q --no-check-certificate -O - https://ci.linaro.org/job/debian-arm64-rootfs/label=build,rootfs=${rootfs}/lastSuccessfulBuild/buildTimestamp?format=yyyyMMdd` + export ROOTFS_BUILD_URL="http://snapshots.linaro.org/debian/images/${rootfs}-arm64/${ROOTFS_BUILD_NUMBER}/linaro-jessie-${rootfs}-${ROOTFS_BUILD_TIMESTAMP}-${ROOTFS_BUILD_NUMBER}.tar.gz" + wget --progress=dot -e dotbytes=2M ${ROOTFS_BUILD_URL} + + cat >> out/README.txt << EOF + * rootfs (${rootfs}): http://snapshots.linaro.org/debian/images/${rootfs}-arm64/${ROOTFS_BUILD_NUMBER} + EOF + + # Create pre-built image(s) + linaro-media-create --dev fastmodel --output-directory ${WORKSPACE}/out --image-file helium-jessie_${rootfs}_${VERSION}.img --image-size 2G --binary linaro-jessie-${rootfs}-${ROOTFS_BUILD_TIMESTAMP}-${ROOTFS_BUILD_NUMBER}.tar.gz --hwpack hwpack_linaro-helium_*.tar.gz --hwpack-force-yes --bootloader uefi + done + + # Create MD5SUMS file + (cd out && md5sum * > MD5SUMS.txt) + + # Publish + test -d ${HOME}/bin || mkdir ${HOME}/bin + wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py + time python ${HOME}/bin/linaro-cp.py \ + --server ${PUBLISH_SERVER} \ + --link-latest \ + out snapshots/helium/linaro/debian/${BUILD_NUMBER} + publishers: + - email: + recipients: 'fathi.boudra@linaro.org' |