From ae8b45b59362cc6c158b6de5b2f3ed72894481e6 Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Sun, 19 Nov 2017 09:33:14 +0100 Subject: [PATCH] linux4.14-headers: include objtool in the package (#9314) It is now required to build out-of-tree modules with dkms, without it, some modules that worked fine with earlier kernel versions can no longer be compiled. --- srcpkgs/linux4.14/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/linux4.14/template b/srcpkgs/linux4.14/template index 2e935b00e84..3e78a679f34 100644 --- a/srcpkgs/linux4.14/template +++ b/srcpkgs/linux4.14/template @@ -1,7 +1,7 @@ # Template file for 'linux4.14' pkgname=linux4.14 version=4.14.0 -revision=1 +revision=2 patch_args="-Np1" wrksrc="linux-${version%.*}" maintainer="Juan RP " @@ -235,6 +235,10 @@ do_install() { mkdir -p ${hdrdest}/mm cp fs/xfs/libxfs/xfs_sb.h ${hdrdest}/fs/xfs/libxfs/xfs_sb.h + # Add objtool binary, needed to build external modules with dkms + mkdir -p ${hdrdest}/tools/objtool + cp tools/objtool/objtool ${hdrdest}/tools/objtool + # Copy in Kconfig files for i in $(find . -name "Kconfig*"); do mkdir -p ${hdrdest}/$(echo $i | sed 's|/Kconfig.*||')