Skip to content
Snippets Groups Projects
Commit 85455137 authored by Seblu's avatar Seblu
Browse files

Fix external modules compilation since 4.14.x

parent c9cd236d
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ arch=('x86_64') ...@@ -9,7 +9,7 @@ arch=('x86_64')
license=('GPL2') license=('GPL2')
url='http://www.kernel.org' url='http://www.kernel.org'
options=('!strip') options=('!strip')
makedepends=('kmod' 'git' 'make' 'gcc' 'bc' 'sed') makedepends=('glibc' 'libelf' 'kmod' 'git' 'make' 'gcc' 'bc' 'sed')
depends=('linux-firmware' 'kernel-install-hook') depends=('linux-firmware' 'kernel-install-hook')
install=linux-seblu.install install=linux-seblu.install
_repourl='git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git' _repourl='git+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'
...@@ -200,6 +200,11 @@ install_sources() { ...@@ -200,6 +200,11 @@ install_sources() {
[[ "${i##*/}" != x86 ]] && rm -rf "$i" [[ "${i##*/}" != x86 ]] && rm -rf "$i"
done done
# add objtool for external module building when enabled VALIDATION_STACK option
# this is adding dependencty to glibc and libelf to the kernel package
install -d "$kernsrc/tools/objtool"
cp tools/objtool/objtool "$kernsrc/tools/objtool"
# fix permissions # fix permissions
chown -R root:root "$kernsrc" chown -R root:root "$kernsrc"
find "$kernsrc" -type d -exec chmod 755 {} \; find "$kernsrc" -type d -exec chmod 755 {} \;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment