diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2013-08-26 12:05:40 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2013-08-26 12:05:40 +0300 |
commit | c01419a4d66f48e22556934aec09198c7f5034aa (patch) | |
tree | 7a286c60e311aa58830276cc9e40773fffeed92e /jenkins_kernel_build_inst | |
parent | ef81fdc7d40aac4c0f0f4b57bf328e3d645faf51 (diff) |
Add support for ccache (use_ccache environment variable)
Diffstat (limited to 'jenkins_kernel_build_inst')
-rwxr-xr-x | jenkins_kernel_build_inst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jenkins_kernel_build_inst b/jenkins_kernel_build_inst index 9fe46f1..296fdb3 100755 --- a/jenkins_kernel_build_inst +++ b/jenkins_kernel_build_inst @@ -98,6 +98,18 @@ fi export kernel_version=`make kernelversion` export kernel_release=${kernel_version}-linaro-${kernel_flavour} +export ARCH=arm +export KERNELVERSION=${kernel_version} +export KERNELRELEASE=${kernel_release} + +if [ "${use_ccache}" = "true" ]; then + export CCACHE_DIR="${CCACHE_DIR:-$PWD/ccache}" + export PATH="/usr/lib/ccache:$PATH" + export CROSS_COMPILE="ccache ${TOOLCHAIN_PREFIX}" +else + export CROSS_COMPILE="${TOOLCHAIN_PREFIX}" +fi + # Below is the list of values that will be used in the json files export KERNEL_GIT=`git config remote.origin.url` export KERNEL_COMMIT=`git log -n1 --pretty=format:%H` |