From: Michael Jeanson Date: Wed, 20 Dec 2017 16:56:31 +0000 (-0500) Subject: jjb: Add objtool to kernel headers for lttng-modules X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=d138fc446790cd2c6a23a96532c5a66749b7c7c1;hp=9068f8b49eeb8472a14ff46595b2e133c1985104;p=lttng-ci.git jjb: Add objtool to kernel headers for lttng-modules Signed-off-by: Michael Jeanson --- diff --git a/scripts/lttng-modules/param-build.sh b/scripts/lttng-modules/param-build.sh index 51a7ae1..34ad6a9 100644 --- a/scripts/lttng-modules/param-build.sh +++ b/scripts/lttng-modules/param-build.sh @@ -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}"