aboutsummaryrefslogtreecommitdiff
path: root/jenkins/bisect.jpl
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2019-05-08 22:01:01 +0100
committerGuillaume Tucker <guillaume.tucker@collabora.com>2019-05-24 21:42:10 +0100
commitc30863487d007d9fc4e2e9da50d861262ed5b4a5 (patch)
treedea0d52ed98cdf0e4f8623dc6027a633ee452f69 /jenkins/bisect.jpl
parentfa9fd669806e56b6026050253ca5ed9ebaf0f4fd (diff)
bisect.jpl: add support for generated config fragments
Use kci_build generate_defconfig_fragments and expand_fragments to generate the same defconfig fragments as in regular builds using the provided defconfig string. This enables bisecting builds that rely on extra config fragments to be enabled, such as virtualvideo and kselftest. Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'jenkins/bisect.jpl')
-rw-r--r--jenkins/bisect.jpl15
1 files changed, 14 insertions, 1 deletions
diff --git a/jenkins/bisect.jpl b/jenkins/bisect.jpl
index e379bc3..9b549d3 100644
--- a/jenkins/bisect.jpl
+++ b/jenkins/bisect.jpl
@@ -218,9 +218,22 @@ def buildKernel(kdir, kci_core) {
sh(script:"""\
./kci_build \
-build_kernel \
+generate_defconfig_fragments \
+--defconfig=${params.DEFCONFIG} \
--kdir=${kdir} \
+""")
+
+ def expanded_defconfig = sh(script: """\
+./kci_build \
+expand_fragments \
--defconfig=${params.DEFCONFIG} \
+""", returnStdout: true).trim()
+
+ sh(script:"""\
+./kci_build \
+build_kernel \
+--kdir=${kdir} \
+--defconfig=${expanded_defconfig} \
--arch=${params.ARCH} \
--build-env=${params.BUILD_ENVIRONMENT} \
--output=${output} \