jjb: lttng-modules: adjust kernel version ranges in param build patches
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 31 Aug 2023 15:00:04 +0000 (11:00 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Thu, 31 Aug 2023 15:00:12 +0000 (11:00 -0400)
Change-Id: Ia70e1eedd6435d02095b1c1e898fb4f0665e5949
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/param-build.sh

index d88ac71a1a685579f2837cb289999a01b22363b0..5ffffd2d79233bba504f090f60521ee61fac241d 100644 (file)
@@ -387,7 +387,8 @@ build_linux_kernel() {
         patch_linux_kernel 9feeb638cde083c737e295c0547f1b4f28e99583
     fi
 
-    if { vergte "${kversion}" "4.12"; } && { verlt "${kversion}" "4.19"; } ; then
+    if ( { vergte "${kversion}" "4.12"; } && { verlt "${kversion}" "4.20.17"; } ) || \
+       ( { vergte "${kversion}" "5.0"; } && { verlt "${kversion}" "5.0.12"; } ) ; then
         # Old kernels can fail to build while on newer host kernels with errors
         # such as:
         #   In file included from scripts/selinux/genheaders/genheaders.c:19:
@@ -487,7 +488,8 @@ EOF
         patch_linux_kernel 9f73bd8bb445e0cbe4bcef6d4cfc788f1e184007
     fi
 
-    if [ "${kversion}" == "4.6.7" ] ; then
+    if ( { vergte "${kversion}" "4.4"; } && { verlt "${kversion}" "4.4.136"; } ) ||
+       ( { vergte "${kversion}" "4.5"; } && { verlt "${kversion}" "4.8"; } ); then
         # Hacky patch to deal with the following build error:
         #   Cannot find symbol for section 7: .text.unlikely.
         #   kernel/kexec_file.o: failed
@@ -513,6 +515,11 @@ EOF
         scripts/config --disable CONFIG_GCOV_KERNEL
     fi
 
+    if { vergte "${kversion}" "4.5"; } && { verlt "${kversion}" "4.5.5"; } ; then
+        # drivers/staging/wilc1000/wilc_spi.c:123:34: error: storage size of ‘wilc1000_spi_ops’ isn’t known
+        patch_linux_kernel ce7b516f3f9e11fe4ee06fad0d7e853bb6e8f160
+    fi
+
     # Newer binutils don't accept 3 operand 'cmp' instructions on ppc64
     # Convert them to 'cmpw' which was previously done silently
     if verlt "$kversion" "4.9"; then
This page took 0.025415 seconds and 4 git commands to generate.