- job: name: 96boards-hikey-uefi project-type: freestyle defaults: global logrotate: daysToKeep: 30 numToKeep: 30 properties: - authorization: anonymous: - job-read - job-extended-read - job-workspace disabled: false node: docker-utopic-amd64 display-name: '96boards - HiKey UEFI' scm: - git: url: https://github.com/96boards/edk2.git refspec: +refs/heads/hikey:refs/remotes/origin/hikey name: origin branches: - refs/heads/hikey basedir: linaro-edk2 skip-tag: true shallow-clone: true clean: 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} rm -rf arm64-tc rm -rf arm-trusted-firmware rm -rf uefi-tools rm -rf l-loader rm -rf out } sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list sudo apt-get update sudo apt-get install -y python-pycurl # Use pre-installed linaro toolchain export PATH="${HOME}/srv/toolchain/arm64-tc-15.02/bin:$PATH" # Check out arm-trusted-firmware git clone -b hikey --depth 1 https://github.com/96boards/arm-trusted-firmware.git git clone git://git.linaro.org/uefi/uefi-tools.git export AARCH64_TOOLCHAIN=GCC49 export EDK2_DIR=${WORKSPACE}/linaro-edk2 export UEFI_TOOLS_DIR=${WORKSPACE}/uefi-tools export JENKINS_WORKSPACE=${WORKSPACE} unset WORKSPACE cd ${EDK2_DIR} ${UEFI_TOOLS_DIR}/uefi-build.sh -b RELEASE -a ../arm-trusted-firmware hikey unset WORKSPACE export WORKSPACE=${JENKINS_WORKSPACE} cd ${WORKSPACE} mkdir out cp -a ${EDK2_DIR}/Build/HiKey/RELEASE_GCC49/FV/*.bin out/ cp -a ${EDK2_DIR}/Build/HiKey/RELEASE_GCC49/AARCH64/AndroidFastbootApp.efi out/ # Don't ship BL33_AP_UEFI.fd and mcuimage.bin # (already included in the firmware image package - fip) #cp -a ${EDK2_DIR}/Build/HiKey/RELEASE_GCC49/FV/*.fd out/ #cp -a ${EDK2_DIR}/HisiPkg/HiKeyPkg/NonFree/mcuimage.bin out/ # Ship nvme.img with UEFI binaries for convenience wget -q http://builds.96boards.org/snapshots/hikey/linaro/binaries/20150515/nvme.img -O out/nvme.img git clone --depth 1 https://github.com/96boards/l-loader.git cd l-loader ln -s ${WORKSPACE}/out/bl1.bin make cp -a l-loader.bin ptable*.img ${WORKSPACE}/out/ cd ${WORKSPACE} # 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/hikey/linaro/uefi/${BUILD_NUMBER} publishers: - email: recipients: 'fathi.boudra@linaro.org'