X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=scripts%2Flttng-modules%2Fparam-build.sh;h=5ffffd2d79233bba504f090f60521ee61fac241d;hb=c0849ee1f49bc0c0d84095feaf210f6a3ea7bd46;hp=d88ac71a1a685579f2837cb289999a01b22363b0;hpb=9ae537d789cc6eec15a19d9b1f4088bf01d3225f;p=lttng-ci.git diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index d88ac71..5ffffd2 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -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