jjb: lttng-modules: Add hwe-5.8 kernel to ubuntu focal
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 16 Sep 2020 16:27:09 +0000 (12:27 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 16 Sep 2020 16:27:09 +0000 (12:27 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/master.groovy
scripts/lttng-modules/param-build.sh

index 3e2ec7750b298ddfe41f1cd209c53553ef075307..d74d136802ac8b2e7f2bb58069de728e43846ce4 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (C) 2016-2018 - Michael Jeanson <mjeanson@efficios.com>
+ * Copyright (C) 2016-2020 Michael Jeanson <mjeanson@efficios.com>
  *
  * 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<UbuntuKVersion> {
       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<UbuntuKVersion> {
       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
 
index 45f66a0433cdfe2aed87e013fcc03be50654d1f5..e8709d2e0200bbbed7beda97d9b92d15442554ea 100644 (file)
@@ -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
This page took 0.024991 seconds and 4 git commands to generate.