jjb: Add objtool to kernel headers for lttng-modules
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 20 Dec 2017 16:56:31 +0000 (11:56 -0500)
committerMichael Jeanson <mjeanson@efficios.com>
Wed, 20 Dec 2017 16:56:31 +0000 (11:56 -0500)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
scripts/lttng-modules/param-build.sh

index 51a7ae1a6393b795734e1fd97f490ffdcabdb280..34ad6a980fca00e281f0425974144c081b27dbba 100644 (file)
@@ -341,6 +341,11 @@ if [ "${karch}" = "arm64" ]; then
     fi
 fi
 
+# Newer kernels need objtool to build modules when CONFIG_STACK_VALIDATION=y
+if [ -f tools/objtool/objtool ]; then
+  cp -a --parents tools/objtool/objtool "${LNXHDRDIR}/"
+fi
+
 # Copy modules related stuff, if available
 if [ -s Module.symvers ]; then
     cp Module.symvers "${LNXHDRDIR}"
This page took 0.023422 seconds and 4 git commands to generate.