Last active
March 7, 2019 11:42
-
-
Save b1tninja/18b65b21eb849af32e3a4a20ba4be545 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Tomás Pinho <me(at)tomaspinho(dot)com> | |
pkgname=rtl8821ce-dkms-git | |
_pkgbase=rtl8821ce | |
pkgver=1.0.0.r28.g960279a | |
pkgrel=2 | |
pkgdesc="rtl8821CE driver with firmware" | |
arch=('i686' 'x86_64') | |
url="https://github.com/tomaspinho/rtl8821ce" | |
license=('GPL2') | |
depends=('dkms') | |
makedepends=('git' 'bc') | |
conflicts=("${_pkgbase}") | |
source=("git+https://github.com/tomaspinho/rtl8821ce.git") | |
# 'dkms.conf') | |
sha256sums=('SKIP') | |
# '3f401c2a8c862af919b1fdaaa4270ef18f674725035c9769590d529b9aa5c078') | |
prepare() { | |
cd ${_pkgbase} | |
patch -p1 << INLINEPATCHEND | |
commit 6ef8c81ce5e254558efca0d0fca7d8df883bb67f | |
gpg: Signature made Thu 07 Mar 2019 02:59:05 AM PST | |
gpg: using RSA key F6CC1F4DF325EACBBE2532481F299543498470BA | |
gpg: issuer "justincapella@gmail.com" | |
gpg: Good signature from "Justin Capella <justincapella@gmail.com>" [ultimate] | |
Author: Justin Capella <justincapella@gmail.com> | |
Date: Thu Mar 7 02:59:05 2019 -0800 | |
Kernel macro changed | |
diff --git a/os_dep/linux/rtw_android.c b/os_dep/linux/rtw_android.c | |
index 9c85dfb..3c0cbf0 100644 | |
--- a/os_dep/linux/rtw_android.c | |
+++ b/os_dep/linux/rtw_android.c | |
@@ -626,7 +626,7 @@ int rtw_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd) | |
goto exit; | |
} | |
- if (!access_ok(VERIFY_READ, priv_cmd.buf, priv_cmd.total_len)) { | |
+ if (!access_ok(priv_cmd.buf, priv_cmd.total_len)) { | |
RTW_INFO("%s: failed to access memory\n", __FUNCTION__); | |
ret = -EFAULT; | |
goto exit; | |
INLINEPATCHEND | |
} | |
pkgver() { | |
cd ${srcdir}/rtl8821ce | |
printf '%s.r%s.g%s' '1.0.0' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | |
} | |
package() { | |
cd ${srcdir}/rtl8821ce | |
mkdir -p ${pkgdir}/usr/src/${_pkgbase}-${pkgver} | |
cp -pr * ${pkgdir}/usr/src/${_pkgbase}-${pkgver} | |
#cp ${srcdir}/dkms.conf ${pkgdir}/usr/src/${_pkgbase}-${pkgver} | |
# Set name and version | |
sed -e "s/@_PKGBASE@/${_pkgbase}-dkms/" \ | |
-e "s/@PKGVER@/${pkgver}/" \ | |
-i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment