Merge lp://qastaging/~deeptik/linaro-ci/enable_custom_gcc_usage into lp://qastaging/linaro-ci
Proposed by
Deepti B. Kalakeri
Status: | Merged |
---|---|
Merged at revision: | 69 |
Proposed branch: | lp://qastaging/~deeptik/linaro-ci/enable_custom_gcc_usage |
Merge into: | lp://qastaging/linaro-ci |
Diff against target: |
73 lines (+23/-3) (has conflicts) 2 files modified
jenkins_common_lib (+10/-3) jenkins_kernel_build_inst (+13/-0) Text conflict in jenkins_common_lib |
To merge this branch: | bzr merge lp://qastaging/~deeptik/linaro-ci/enable_custom_gcc_usage |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Fathi Boudra | Approve | ||
Linaro Infrastructure | Pending | ||
Review via email:
|
Description of the change
Enable using customized toolchain to be used to build the kernel
To post a comment you must log in.
On 25 May 2012 10:39, Deepti B. Kalakeri wrote: kernel_ build_inst' kernel_ build_inst 2012-05-15 11:32:29 +0000 kernel_ build_inst 2012-05-25 07:38:17 +0000 plan="ltp, pwrmgmt" gnueabi- gcc` version= `dpkg -s gcc-arm- linux-gnueabi | grep Version | cut -d ' ' -f2` tar_filename= `basename $toolchain_url` tar_filename bin/arm- linux-gnueabi- gcc |head -n1` version= `$gcc_compiler --version | head -n 1 | awk -F ')' '{print $2")"}' | sed 's/[\(\)]/ /g'`
> === modified file 'jenkins_
> --- jenkins_
> +++ jenkins_
> @@ -30,6 +30,19 @@
> if test -z "$lava_test_plan"; then
> lava_test_
> fi
> +
> +if test -z "$toolchain_url"; then
> + gcc_compiler=`which arm-linux-
> + gcc_cc_
> +else
> + wget -cq $toolchain_url
> + toolchain_
> + mkdir "toolchain"
> + tar -C "toolchain" --strip-components 1 -xf $toolchain_
> + gcc_compiler=`find $PWD/toolchain/
> + gcc_cc_
1. version parsing is generic. gcc_cc_version could be common to both
the packaged toolchain and the binary toolchain.
2. the kernel provides scripts/ gcc-version. sh, you can use it directly. kernel/ sources/ scripts/ gcc-version. sh -p $gcc_compiler
e.g. /path/to/