+# On arm64 between 4.13 and 1.15 this object is required to build with ftrace support
+if [ "${karch}" = "arm64" ]; then
+ if [ -f "arch/arm64/kernel/ftrace-mod.S" ]; then
+ cp -a --parents arch/arm64/kernel/ftrace-mod.[So] "${LNXHDRDIR}/"
+ 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
+