From: Michael Jeanson Date: Wed, 16 Sep 2020 16:27:09 +0000 (-0400) Subject: jjb: lttng-modules: Add hwe-5.8 kernel to ubuntu focal X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=073dc82cb9f7d11e9ec54ae50225693b2bf265f2;p=lttng-ci.git jjb: lttng-modules: Add hwe-5.8 kernel to ubuntu focal Signed-off-by: Michael Jeanson --- diff --git a/scripts/lttng-modules/master.groovy b/scripts/lttng-modules/master.groovy index 3e2ec77..d74d136 100644 --- a/scripts/lttng-modules/master.groovy +++ b/scripts/lttng-modules/master.groovy @@ -1,5 +1,5 @@ /** - * Copyright (C) 2016-2018 - Michael Jeanson + * Copyright (C) 2016-2020 Michael Jeanson * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -205,9 +205,10 @@ class UbuntuKVersion implements Comparable { throw new EmptyKVersionException("Empty kernel version") } + //'Ubuntu-hwe-5.8-5.8.0-19.20_20.04.3', //'Ubuntu-lts-4.8.0-27.29_16.04.1', //'Ubuntu-4.4.0-70.91', - def match = version =~ /^Ubuntu-(lts-|hwe-)??(\d+)\.(\d+)\.(\d+)-(\d+)\.(\d+)(.*)??$/ + def match = version =~ /^Ubuntu-(lts-|hwe-)??(?:\d+\.\d+-)??(\d+)\.(\d+)\.(\d+)-(\d+)\.(\d+)(.*)??$/ if (!match) { throw new InvalidKVersionException("Invalid kernel version: ${version}") } @@ -295,7 +296,11 @@ class UbuntuKVersion implements Comparable { vString = vString.concat("${this.strLTS}") } - vString = vString.concat("${this.major}.${this.minor}.${this.patch}-${this.umajor}.${this.uminor}${this.suffix}") + if (this.major >= 5 && this.minor >= 8) { + vString = vString.concat("${this.major}.${this.minor}-${this.major}.${this.minor}.${this.patch}-${this.umajor}.${this.uminor}${this.suffix}") + } else { + vString = vString.concat("${this.major}.${this.minor}.${this.patch}-${this.umajor}.${this.uminor}${this.suffix}") + } return vString } @@ -342,6 +347,7 @@ if (uversion != null) { case 'focal': matchStrs = [ ~/^refs\/tags\/(Ubuntu-5\.4\.0-\d{1,3}?\.[\d]+)$/, + ~/^refs\/tags\/(Ubuntu-hwe-5\.8-.*_20\.04\.\d+)$/, ] break diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 45f66a0..e8709d2 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -154,6 +154,11 @@ build_linux_kernel() { # Disable riscv64 config generation, we don't have a toolchain on bionic sed -i 's/riscv64 //' debian.master/etc/kernelconfig + # Hack for kernel Ubuntu-hwe-5.8 + if [ ! -f "debian/compat" ]; then + echo "10" > "debian/compat" + fi + fakeroot debian/rules clean KW_DEFCONFIG_DIR=. fakeroot debian/rules genconfigs KW_DEFCONFIG_DIR=. cp CONFIGS/"${ubuntu_config}" .config