From 9bbfa9dbe5be41cb0654c3616c0a060856a091f0 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 29 Aug 2023 10:18:47 -0400 Subject: [PATCH] jjb: lttng-modules: fix for v4.4 to v4.4.256 Change-Id: I2fbcf8655a5f9c970e8ca813c5e3b483d0700854 Signed-off-by: Michael Jeanson --- scripts/lttng-modules/param-build.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.34.1