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
1=== modified file 'jenkins_common_lib'
2--- jenkins_common_lib 2012-10-22 07:35:34 +0000
3+++ jenkins_common_lib 2012-12-18 10:51:21 +0000
4@@ -60,22 +60,35 @@
5 mkdir $pkg_dir
6 }
7
8+create_config_using_config_fragments() {
9+ ARCH=arm scripts/kconfig/merge_config.sh $conf_filenames
10+ for cname in `find . -name \.config `
11+ do
12+ mv $cname $WORKSPACE/$pkg_dir/
13+ done
14+}
15
16 build_instructions()
17 {
18 # Calling the function build setup to create build env
19 build_setup
20 START=$(date +%s)
21- make ARCH=arm clean mrproper
22- make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" $kernel_config
23-
24- # Enabling the THUMB2 kernel option as the THUMB kernel does not seem to work
25- # well with THUMB2 userspace. This fixes the reboot issue(bug: 860556) we have seen
26- # for THUMB Kernel working with THUMB2 userspace.
27-
28- echo "CONFIG_ARCH_OMAP2=n" >> $WORKSPACE/$pkg_dir/.config
29- echo "CONFIG_THUMB2_KERNEL=y" >> $WORKSPACE/$pkg_dir/.config
30- yes "" | make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" oldconfig
31+ if test $use_config_fragment -eq 1 ; then
32+ create_config_using_config_fragments
33+ echo "CONFIG_MODULES=y" >> $WORKSPACE/$pkg_dir/.config
34+ make ARCH=arm clean mrproper
35+ else
36+ make ARCH=arm clean mrproper
37+ make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" $kernel_config
38+
39+ # Enabling the THUMB2 kernel option as the THUMB kernel does not seem to work
40+ # well with THUMB2 userspace. This fixes the reboot issue(bug: 860556) we have seen
41+ # for THUMB Kernel working with THUMB2 userspace.
42+
43+ echo "CONFIG_ARCH_OMAP2=n" >> $WORKSPACE/$pkg_dir/.config
44+ echo "CONFIG_THUMB2_KERNEL=y" >> $WORKSPACE/$pkg_dir/.config
45+ fi
46+ yes "" | make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" oldconfig
47 make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" -j$j_count uImage
48 make ARCH=arm O=$pkg_dir KERNELVERSION="$kernel_version" KERNELRELEASE="$kernel_version" CROSS_COMPILE="$TOOLCHAIN_PREFIX" -j$j_count modules
49 if [ "$MAKE_DTBS" = "true" ]; then
50
51=== modified file 'jenkins_kernel_build_inst'
52--- jenkins_kernel_build_inst 2012-12-12 08:52:14 +0000
53+++ jenkins_kernel_build_inst 2012-12-18 10:51:21 +0000
54@@ -46,6 +46,13 @@
55 git_reset=false
56 fi
57
58+if test -z "$conf_filenames"; then
59+ conf_filenames='omap4.conf'
60+fi
61+if test -z "$use_config_fragment"; then
62+ use_config_fragment=0
63+fi
64+
65 export kernel_config
66 export hwpack_type
67 export board_type
68@@ -54,6 +61,8 @@
69 export git_web_url
70 export submit_job
71 export lava_test_plan
72+export conf_filenames
73+export use_config_fragment
74 export gcc_cc_version=`sh $PWD/scripts/gcc-version.sh -p $gcc_compiler`
75 export bundle_stream_name=`echo $JOB_NAME | sed -e 's/_.*//' -e 's/\./_/g'`
76 export TOOLCHAIN_PREFIX=`echo $gcc_compiler | sed -e 's/-gcc$/-/'`

Subscribers

People subscribed via source and target branches