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.
This commit is contained in:
Helmut Pozimski 2017-11-19 09:33:14 +01:00 committed by Juan RP
parent 2e96f494cc
commit ae8b45b593
1 changed files with 5 additions and 1 deletions

View File

@ -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 <xtraeme@voidlinux.eu>"
@ -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.*||')