aboutsummaryrefslogtreecommitdiff
path: root/lt-hisilicon-hix5hd2.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-12-10 09:55:55 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2014-12-10 09:55:55 +0200
commitef632c4124245dd5d042d63e6c04eff864cd7774 (patch)
tree679ecc7fd9d2077a82f94183708395b13d650500 /lt-hisilicon-hix5hd2.yaml
parentdc240f6ff16e00c5695ae8b9b1312ae1b477d041 (diff)
Add lt-hisilicon-hix5hd2 job
Change-Id: If89233ecbc78e74b0e22b7f8e8e78aec49e85858 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'lt-hisilicon-hix5hd2.yaml')
-rw-r--r--lt-hisilicon-hix5hd2.yaml92
1 files changed, 92 insertions, 0 deletions
diff --git a/lt-hisilicon-hix5hd2.yaml b/lt-hisilicon-hix5hd2.yaml
new file mode 100644
index 0000000000..c614954abd
--- /dev/null
+++ b/lt-hisilicon-hix5hd2.yaml
@@ -0,0 +1,92 @@
+- job:
+ name: LT-HiSilicon-hix5hd2
+ project-type: freestyle
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ parameters:
+ - password:
+ name: PUBLISH_KEY
+ default: ${PUBLISH_KEY}
+ disabled: false
+ node: build
+ display-name: 'HiSilicon LT - hix5hd2'
+ scm:
+ - git:
+ url: http://git.linaro.org/git/landing-teams/working/hisilicon/kernel.git
+ refspec: +refs/heads/hix5hd2:refs/remotes/origin/hix5hd2
+ name: origin
+ branches:
+ - origin/hix5hd2
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ wrappers:
+ - timestamps
+ - copy-to-slave:
+ includes:
+ - gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz
+ - build-name:
+ name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ trap cleanup_exit INT TERM EXIT
+
+ cleanup_exit()
+ {
+ cd ${WORKSPACE}
+ rm -rf lci-build-tools
+ rm -rf builddir*
+ rm -rf out
+ rm -rf configs
+ }
+
+ export LANG=C
+ CCACHE_DIR="$HOME/ccache"
+ CCACHE_UNIFY=1
+ CCACHE_SLOPPINESS=file_macro,include_file_mtime,time_macros
+ export CCACHE_DIR CCACHE_UNIFY CCACHE_SLOPPINESS
+ export use_ccache=true
+
+ export make_deb=false
+ export make_bootwrapper=false
+ export make_install=true
+ export kernel_flavour=hix5hd2
+ export kernel_config=hix5hd2_defconfig
+ export MAKE_DTBS=true
+ export toolchain_url="http://releases.linaro.org/14.09/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux.tar.xz"
+
+ test -d lci-build-tools || git clone https://git.linaro.org/git/ci/lci-build-tools.git lci-build-tools
+ bash lci-build-tools/jenkins_kernel_build_inst
+
+ # XXX Append DTB
+ #cat out/zImage out/dtbs/hix5hd2-dkb.dtb > out/zImage-dtb
+
+ # Publish to snapshots
+ ${HOME}/bin/linaro-cp out kernel-hwpack/${JOB_NAME}/${BUILD_NUMBER}
+
+ CCACHE_DIR=${CCACHE_DIR} ccache -M 20G
+ CCACHE_DIR=${CCACHE_DIR} ccache -s
+
+ # Start LAVA dance
+ test -d configs || git clone --depth 1 http://git.linaro.org/ci/job/configs.git
+
+ export BUNDLE_STREAM_NAME=/public/team/hisilicon/hix5hd2/
+ export LAVA_SERVER=validation.linaro.org/RPC2/
+ export KERNEL_URL=http://snapshots.linaro.org/kernel-hwpack/${JOB_NAME}/${BUILD_NUMBER}
+ export DTB_URL=${KERNEL_URL}/dtbs
+ export ROOTFS_BUILD_URL=http://releases.linaro.org/14.11/openembedded/images/minimal-initramfs-armv7a/linaro-image-minimal-initramfs-genericarmv7a-20141121-301.rootfs.cpio.gz.u-boot
+
+ # Hack to use submit LAVA jobs directly
+ python lci-build-tools/dtb-to-device.py
+ publishers:
+ - email:
+ recipients: 'guodong.xu@linaro.org fathi.boudra@linaro.org'