From: Michael Jeanson Date: Tue, 29 Aug 2023 14:18:47 +0000 (-0400) Subject: jjb: lttng-modules: fix for v4.4 to v4.4.256 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9bbfa9dbe5be41cb0654c3616c0a060856a091f0;p=lttng-ci.git jjb: lttng-modules: fix for v4.4 to v4.4.256 Change-Id: I2fbcf8655a5f9c970e8ca813c5e3b483d0700854 Signed-off-by: Michael Jeanson --- diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 69a3338..1d63084 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -445,6 +445,13 @@ EOF sed -i '/^.* += elfcore.o$/d' kernel/Makefile fi fi + # Same as above for the v4.4 branch + if ( { vergte "${kversion}" "4.4"; } && { verlt "${kversion}" "4.4.257"; } ); then + patch_linux_kernel 3140b0740b31cc63cf2ee08bc3f746b423eb068d + if grep -q elfcore.o kernel/Makefile ; then + sed -i '/^.* += elfcore.o$/d' kernel/Makefile + fi + fi # Newer binutils don't accept 3 operand 'cmp' instructions on ppc64 # Convert them to 'cmpw' which was previously done silently