jjb: lttng-modules: fix kernel build >= 5.17
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 28 Jan 2022 19:33:24 +0000 (14:33 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Fri, 28 Jan 2022 19:37:12 +0000 (14:37 -0500)
Starting with 5.17, the 'auto.conf' file syntax differs from '.config'.
Stop overwriting it, only copy '.config' for older kernels where
'auto.conf' is missing.

Change-Id: I917104c0f43fadfc61f292b0b43d3b4cdc6650b7
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/param-build.sh

index 3a71365789ae5665dbbce0edbb6ff8e96ed9dfb1..902ee72db2871ca22df78256f6d4944f6fe63e01 100644 (file)
@@ -390,7 +390,9 @@ extract_distro_headers() {
     touch -r "${LINUX_HDROBJ_DIR}/.config" "${LINUX_HDROBJ_DIR}/include/generated/autoconf.h"
 
     # Copy .config to include/config/auto.conf so "make prepare" is unnecessary.
-    cp "${LINUX_HDROBJ_DIR}/.config" "${LINUX_HDROBJ_DIR}/include/config/auto.conf"
+    if [ ! -f "${LINUX_HDROBJ_DIR}/include/config/auto.conf" ]; then
+        cp "${LINUX_HDROBJ_DIR}/.config" "${LINUX_HDROBJ_DIR}/include/config/auto.conf"
+    fi
 
     # Finally clean the object files from the full source tree
     make clean
This page took 0.025539 seconds and 4 git commands to generate.