Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
linux-sgx-driver-dkms: Fix for Linux >= 4.14
diff --git a/PKGBUILD b/PKGBUILD
index 2475da3..388c9fc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkg=linux-sgx-driver
pkgname=$pkg-dkms-git
-pkgver=1.9.r2.gcd51638
+pkgver=1.9_rhel7.4.r11.gb1c4b78
pkgrel=1
pkgdesc="Intel® SGX Linux module - dkms"
arch=('i686' 'x86_64')
@@ -11,7 +11,7 @@ license=('GPL2')
depends=('dkms')
optdepends=('linux-headers: Build the module for Arch kernel'
'linux-lts-headers: Build the module for LTS Arch kernel')
-makedepends=('linux-headers>=4.12' 'linux-headers<4.13' 'linux>=4.12' 'linux<4.13')
+makedepends=('linux-headers>=4.12' 'linux-headers<4.15' 'linux>=4.12' 'linux<4.15')
source=("$pkg::git+https://github.com/01org/linux-sgx-driver.git"
dkms.conf)
@@ -31,7 +31,7 @@ package() {
# Set name and version
sed -e "s/@PKG@/${pkg}/" \
-e "s/@PKGVER@/${pkgver}/" \
- -i "$pkgdir/usr/src/$pkg-$pkgver/dkms.conf"
+ -i "$installDir/dkms.conf"
# Copy sources
cd $srcdir/$pkg
@@ -44,6 +44,9 @@ package() {
do
install -m644 "$f" "${installDir}/$f"
done
+
+ sed -e "s/-O0//" \
+ -i "$installDir/Makefile"
}
md5sums=('SKIP'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.