aboutsummaryrefslogtreecommitdiff
path: root/linux-ltsi.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-06-02 09:28:04 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2014-06-02 09:28:04 +0300
commit18a97a9cb9088c61e870949c24939bfa1fa4cb2c (patch)
tree891ce8608501cf90135ae25eb66e719748a5b101 /linux-ltsi.yaml
parent91548110da54e6d20fd1d25d8b84530839465a32 (diff)
Add linux-ltsi job
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linux-ltsi.yaml')
-rw-r--r--linux-ltsi.yaml98
1 files changed, 98 insertions, 0 deletions
diff --git a/linux-ltsi.yaml b/linux-ltsi.yaml
new file mode 100644
index 0000000000..69daa336a4
--- /dev/null
+++ b/linux-ltsi.yaml
@@ -0,0 +1,98 @@
+- job:
+ name: linux-ltsi
+ project-type: matrix
+ defaults: global
+ logrotate:
+ daysToKeep: 30
+ numToKeep: 30
+ properties:
+ - authorization:
+ anonymous:
+ - job-read
+ - job-extended-read
+ parameters:
+ - file:
+ name: defconfig.properties
+ - password:
+ name: PUBLISH_KEY
+ default: foo
+ disabled: false
+ node: build
+ child-workspace: .
+ display-name: 'Linux LTSI Kernel (linux-3.14.y)'
+ scm:
+ - git:
+ url: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
+ refspec: +refs/heads/linux-3.14.y:refs/remotes/origin/linux-3.14.y
+ name: origin
+ branches:
+ - origin/linux-3.14.y
+ skip-tag: true
+ shallow-clone: true
+ wipe-workspace: false
+ axes:
+ - axis:
+ type: dynamic
+ name: defconfig
+ values:
+ - defconfig_list
+ - axis:
+ type: slave
+ name: label
+ values:
+ - build
+ execution-strategy:
+ sequential: true
+ wrappers:
+ - timestamps
+ - copy-to-slave:
+ includes:
+ - gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz
+ - build-name:
+ name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
+ - matrix-tie-parent:
+ node: build
+ 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
+ }
+
+ 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 silent=true
+ export make_deb=false
+ export kernel_flavour="${defconfig}"
+ export kernel_config="${defconfig}_defconfig"
+ export toolchain_url="http://releases.linaro.org/14.04/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz"
+
+ git rev-parse -q --verify 3.14.4-ltsi > /dev/null && git branch -D 3.14.4-ltsi
+ test -d ltsi-kernel || git clone --depth 1 http://git.linuxfoundation.org/ltsi-kernel.git
+ bash ltsi-kernel/scripts/generate_git
+
+ 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
+
+ mkdir -p out/dtb
+ cp -a builddir-*-${kernel_flavour}/build.log out/build_log_${defconfig}
+ cp -a builddir-*-${kernel_flavour}/.config out/kernel_config_${defconfig}
+ cp -a builddir-*-${kernel_flavour}/arch/arm/boot/zImage out/zImage_${defconfig}
+ cp -a builddir-*-${kernel_flavour}/arch/arm/boot/dts/*.dtb out/dtb/
+
+ # Publish to snapshots
+ ${HOME}/bin/linaro-cp out kernel-hwpack/linux-ltsi/${defconfig}/${BUILD_NUMBER}
+
+ CCACHE_DIR=${CCACHE_DIR} ccache -M 20G
+ CCACHE_DIR=${CCACHE_DIR} ccache -s