diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2014-09-12 13:35:24 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2014-09-12 13:35:24 +0300 |
commit | 23071806eff577f083b349cf3c475c84e07a33bb (patch) | |
tree | 0d80b01def16ab34dd3b5dac9244f4083a25be00 /linux-stable.yaml | |
parent | 36c977f0c870c13ffeb64d5cfefe780e069209c2 (diff) |
linux-stable: add arm64 support and hook the build job to lava
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'linux-stable.yaml')
-rw-r--r-- | linux-stable.yaml | 38 |
1 files changed, 32 insertions, 6 deletions
diff --git a/linux-stable.yaml b/linux-stable.yaml index 99408fb570..4ef8a818d8 100644 --- a/linux-stable.yaml +++ b/linux-stable.yaml @@ -32,6 +32,12 @@ wipe-workspace: false axes: - axis: + type: user-defined + name: ARCH + values: + - arm + - arm64 + - axis: type: dynamic name: defconfig values: @@ -42,12 +48,15 @@ values: - build execution-strategy: + combination-filter: | + (ARCH=="arm" && defconfig!="defconfig") || (ARCH=="arm64" && defconfig=="defconfig") sequential: true wrappers: - timestamps - copy-to-slave: includes: - gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux.tar.xz + - gcc-linaro-aarch64-linux-gnu-4.9-2014.08_linux.tar.xz - build-name: name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}' - matrix-tie-parent: @@ -64,6 +73,7 @@ rm -rf lci-build-tools rm -rf builddir* rm -rf out + rm -rf configs } export LANG=C @@ -74,28 +84,44 @@ export use_ccache=true export silent=true export make_deb=false + export make_bootwrapper=false + export make_install=true export kernel_flavour="${defconfig}" export kernel_config="${defconfig}_defconfig" export MAKE_DTBS=true export toolchain_url="http://releases.linaro.org/14.08/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.9-2014.08_linux.tar.xz" + [ "${ARCH}" = "arm64" ] && export kernel_config="${defconfig}" + [ "${ARCH}" = "arm64" ] && export toolchain_url="http://releases.linaro.org/14.08/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.9-2014.08_linux.tar.xz" + # XXX upstream doesn't use config fragments - pick up from LSK #mkdir -p linaro/configs #for conf_filename in ${conf_filenames[@]}; do # wget -q "https://git.linaro.org/gitweb?p=kernel/linux-linaro-stable.git;a=blob_plain;f=${conf_filename};hb=refs/heads/linux-linaro-lsk-v3.10" -O ${conf_filename} #done - test -d lci-build-tools || git clone https://git.linaro.org/git/ci/lci-build-tools.git lci-build-tools + test -d lci-build-tools || git clone --depth 1 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/ + # XXX b2120 vmlinux + [ "${defconfig}" = "multi_v7" ] && cp -a builddir-*-${kernel_flavour}/vmlinux out/ || true + # XXX mustang uImage + [ "${ARCH}" = "arm64" ] && mkimage -A arm -O linux -C none -T kernel -a 0x00080000 -e 0x00080000 -n Linux -d out/Image out/uImage || true # Publish to snapshots ${HOME}/bin/linaro-cp out kernel-hwpack/linux-stable/${defconfig}/${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=/anonymous/fabo/ + export LAVA_SERVER=validation.linaro.org/RPC2/ + export KERNEL_URL=http://snapshots.linaro.org/kernel-hwpack/linux-stable/${defconfig}/${BUILD_NUMBER} + export DTB_URL=${KERNEL_URL}/dtbs + export ROOTFS_BUILD_URL=http://snapshots.linaro.org/openembedded/images/minimal-armv7a-gcc-4.9/293/linaro-image-minimal-genericarmv7a-20140901-293.rootfs.tar.gz + + # Hack to use submit LAVA jobs directly + python lci-build-tools/dtb-to-device.py |