From d138fc446790cd2c6a23a96532c5a66749b7c7c1 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 20 Dec 2017 11:56:31 -0500 Subject: [PATCH] jjb: Add objtool to kernel headers for lttng-modules Signed-off-by: Michael Jeanson --- scripts/lttng-modules/param-build.sh | 5 +++++ 1 file changed, 5 insertions(+) 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}" -- 2.34.1