summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2014-05-29 11:40:40 +0300
committerFathi Boudra <fathi.boudra@linaro.org>2014-05-29 11:40:40 +0300
commitb31b3d6289dc2170d0031068208f6eab0c207d97 (patch)
tree84ec470729e7226c8dc1e1742bcb7ec8436333c8
parent5d88155af1c9091e34c04ab13f33c77cf5a45af5 (diff)
Build on dedicated server
ccache is enabled and use the publishing API Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
-rwxr-xr-xll-ci.sh25
1 files changed, 11 insertions, 14 deletions
diff --git a/ll-ci.sh b/ll-ci.sh
index eb31ce7..74673f2 100755
--- a/ll-ci.sh
+++ b/ll-ci.sh
@@ -2,9 +2,6 @@
set -ex
-export parent_workspace="/mnt/ci_build/workspace/linux-linaro-tracking-ll"
-export reference_git="${parent_workspace}/reference-git"
-
trap cleanup_exit INT TERM EXIT
cleanup_exit()
@@ -12,15 +9,15 @@ cleanup_exit()
cd ${WORKSPACE}
rm -rf lci-build-tools
rm -rf builddir*
+ rm -rf out
+ rm -f linux-*.deb
}
-test -d ${reference_git} || git clone --depth 1 -b linux-linaro git://git.linaro.org/kernel/linux-linaro-tracking.git ${reference_git}
-cp -a ${reference_git}/* ${reference_git}/.git* .
-
+export CCACHE_DIR="$HOME/ccache"
+export use_ccache=true
export use_config_fragment=1
export MAKE_DTBS=true
export git_web_url="https://git.linaro.org/gitweb?p=kernel/linux-linaro-tracking.git;a=shortlog;h=refs/heads/linux-linaro"
-
export toolchain_url="http://releases.linaro.org/14.04/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux.tar.xz"
case "${hwpack}" in
@@ -108,8 +105,6 @@ esac
git clone https://git.linaro.org/ci/lci-build-tools.git
bash -x lci-build-tools/jenkins_kernel_build_inst
-cp -a builddir-*-${kernel_flavour}/.config kernel_config_${hwpack}
-
echo "HWPACK_JOB_NAME=${JOB_NAME}" > post_build_lava_parameters
echo "HWPACK_BUILD_NUMBER=${BUILD_NUMBER}" >> post_build_lava_parameters
echo "HWPACK_FILE_NAME=`ls hwpack_linaro-${hwpack}*.tar.gz`" >> post_build_lava_parameters
@@ -162,9 +157,11 @@ case "${hwpack}" in
;;
esac
-cat << EOF > BUILD-INFO.txt
-Format-Version: 0.5
+mkdir -p out
+cp -a builddir-*-${kernel_flavour}/.config kernel_config_${hwpack}
+mv hwpack_linaro-${hwpack_type}* out/
+
+${HOME}/bin/linaro-cp out kernel-hwpack/linux-linaro-tracking-ll-${hwpack}/${BUILD_NUMBER}
-Files-Pattern: *
-License-Type: open
-EOF
+CCACHE_DIR=${CCACHE_DIR} ccache -M 20G
+CCACHE_DIR=${CCACHE_DIR} ccache -s