Merge lp:~milo/linaro-ci/bug1067838 into lp:linaro-ci

Proposed by Milo Casagrande
Status: Merged
Approved by: Данило Шеган
Approved revision: 121
Merged at revision: 119
Proposed branch: lp:~milo/linaro-ci/bug1067838
Merge into: lp:linaro-ci
Diff against target: 76 lines (+32/-10)
2 files modified
jenkins_common_lib (+23/-10)
jenkins_kernel_build_inst (+9/-0)
To merge this branch: bzr merge lp:~milo/linaro-ci/bug1067838
Reviewer Review Type Date Requested Status
Linaro Infrastructure Pending
Review via email: mp+139657@code.launchpad.net

Description of the change

The branch drops support for hardcoded 3.4 git branches, and adds support for a generic conf_filenames env variable to support multiple in-tree config fragments.

The config files have to be specified, in the CI job, with their path:
export conf_filenames='linaro/configs/a.conf linaro/configs/b.conf'

To post a comment you must log in.
lp:~milo/linaro-ci/bug1067838 updated
121. By Milo Casagrande

Removed quotes.

122. By Milo Casagrande

Fixed variable name, removed tabulation.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'jenkins_common_lib'
--- jenkins_common_lib 2012-10-22 07:35:34 +0000
+++ jenkins_common_lib 2012-12-18 10:51:21 +0000
@@ -60,22 +60,35 @@
60 mkdir $pkg_dir60 mkdir $pkg_dir
61}61}
6262
63create_config_using_config_fragments() {
64 ARCH=arm scripts/kconfig/merge_config.sh $conf_filenames
65 for cname in `find . -name \.config `
66 do
67 mv $cname $WORKSPACE/$pkg_dir/
68 done
69}
6370
64build_instructions()71build_instructions()
65{72{
66 # Calling the function build setup to create build env73 # Calling the function build setup to create build env
67 build_setup74 build_setup
68 START=$(date +%s)75 START=$(date +%s)
69 make ARCH=arm clean mrproper76 if test $use_config_fragment -eq 1 ; then
70 make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" $kernel_config77 create_config_using_config_fragments
7178 echo "CONFIG_MODULES=y" >> $WORKSPACE/$pkg_dir/.config
72 # Enabling the THUMB2 kernel option as the THUMB kernel does not seem to work79 make ARCH=arm clean mrproper
73 # well with THUMB2 userspace. This fixes the reboot issue(bug: 860556) we have seen80 else
74 # for THUMB Kernel working with THUMB2 userspace.81 make ARCH=arm clean mrproper
7582 make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" $kernel_config
76 echo "CONFIG_ARCH_OMAP2=n" >> $WORKSPACE/$pkg_dir/.config83
77 echo "CONFIG_THUMB2_KERNEL=y" >> $WORKSPACE/$pkg_dir/.config84 # Enabling the THUMB2 kernel option as the THUMB kernel does not seem to work
78 yes "" | make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" oldconfig 85 # well with THUMB2 userspace. This fixes the reboot issue(bug: 860556) we have seen
86 # for THUMB Kernel working with THUMB2 userspace.
87
88 echo "CONFIG_ARCH_OMAP2=n" >> $WORKSPACE/$pkg_dir/.config
89 echo "CONFIG_THUMB2_KERNEL=y" >> $WORKSPACE/$pkg_dir/.config
90 fi
91 yes "" | make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" oldconfig
79 make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" -j$j_count uImage92 make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" -j$j_count uImage
80 make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" -j$j_count modules93 make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" -j$j_count modules
81 if [ "$MAKE_DTBS" = "true" ]; then94 if [ "$MAKE_DTBS" = "true" ]; then
8295
=== modified file 'jenkins_kernel_build_inst'
--- jenkins_kernel_build_inst 2012-12-12 08:52:14 +0000
+++ jenkins_kernel_build_inst 2012-12-18 10:51:21 +0000
@@ -46,6 +46,13 @@
46 git_reset=false46 git_reset=false
47fi47fi
4848
49if test -z "$conf_filenames"; then
50 conf_filenames='omap4.conf'
51fi
52if test -z "$use_config_fragment"; then
53 use_config_fragment=0
54fi
55
49export kernel_config56export kernel_config
50export hwpack_type57export hwpack_type
51export board_type58export board_type
@@ -54,6 +61,8 @@
54export git_web_url61export git_web_url
55export submit_job62export submit_job
56export lava_test_plan63export lava_test_plan
64export conf_filenames
65export use_config_fragment
57export gcc_cc_version=`sh $PWD/scripts/gcc-version.sh -p $gcc_compiler`66export gcc_cc_version=`sh $PWD/scripts/gcc-version.sh -p $gcc_compiler`
58export bundle_stream_name=`echo $JOB_NAME | sed -e 's/_.*//' -e 's/\./_/g'`67export bundle_stream_name=`echo $JOB_NAME | sed -e 's/_.*//' -e 's/\./_/g'`
59export TOOLCHAIN_PREFIX=`echo $gcc_compiler | sed -e 's/-gcc$/-/'`68export TOOLCHAIN_PREFIX=`echo $gcc_compiler | sed -e 's/-gcc$/-/'`

Subscribers

People subscribed via source and target branches