summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Gathoye2019-01-16 12:04:26 +0100
committerWilliam Gathoye2019-01-16 12:06:48 +0100
commit38fdfbf2c04ee5576427eefffc6525ab581da7d5 (patch)
treef7214edeb827f23fd45f991d0ba0a2aab2891285
parent9db36516a3eca829237f0d283e95e2bac259e646 (diff)
downloadaur-38fdfbf2c04ee5576427eefffc6525ab581da7d5.tar.gz
Fix for kernel 4.20 as internal structures have changed
-rw-r--r--.SRCINFO4
-rw-r--r--0003-linux-4.20.patch15
-rw-r--r--PKGBUILD11
3 files changed, 26 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 333ce5432afa..99ca3eeaf976 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = asix-ax88179-dkms
pkgdesc = A kernel module for ASIX AX88178A AX88179 USB 3.0 network adapters
pkgver = 1.19.0
- pkgrel = 2
+ pkgrel = 3
url = http://www.asix.com.tw/
arch = i686
arch = x86_64
@@ -11,10 +11,12 @@ pkgbase = asix-ax88179-dkms
source = asix-ax88179-dkms.conf
source = 0001-No-date-time.patch
source = 0002-b2b128.patch
+ source = 0003-linux-4.20.patch
sha512sums = 4868203e7a2574fc1760c604dc0f6d8a6890e4d65912bfc1e47bcef2fd72f422e791441cd65e58737b10edb5e04a40cf1e10585ae8b9f385adc729fb34b7fb8a
sha512sums = c22d3ec8bea598580681c6a9e2ae6b3d2118547a739ee717d4576653426ace7ec2406012d162ec6424244c360a2b9b7a185dbf3eebba6c0065efedfb54de23ba
sha512sums = 74a730f2ccfabf54c600391ee9a54ad3977b730c141c9ca9e7b1740c0d93161595a71312b4e3067411bde2f7d7f2a1cb9fb9e982a6ccfc0a4fbfa86829f6c346
sha512sums = a31cab0b3e0fa027acbf629aec7294d591d6dd01928de800bd915e78c75be7be0fe7603b6c69ed90f5a6fefe30ecf6a953fa154cccb03b9cb3e070e7566394f8
+ sha512sums = 8eb7b69b413f38599cbd8708e160f9ee3583334098cdf75a85225a6b26f45d35d10bc95cf0dccfa28616c466173f12c342bfd7ad7199f30bd666cf9c4717eb0a
pkgname = asix-ax88179-dkms
diff --git a/0003-linux-4.20.patch b/0003-linux-4.20.patch
new file mode 100644
index 000000000000..3a78095a46a7
--- /dev/null
+++ b/0003-linux-4.20.patch
@@ -0,0 +1,15 @@
+*** a/ax88179_178a.c 2018-01-02 09:37:42.000000000 +0100
+--- b/ax88179_178a.c 2019-01-16 12:00:01.200486283 +0100
+***************
+*** 813,820 ****
+--- 813,822 ----
+ .set_wol = ax88179_set_wol,
+ .get_eeprom_len = ax88179_get_eeprom_len,
+ .get_eeprom = ax88179_get_eeprom,
++ #if LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0)
+ .get_settings = ax88179_get_settings,
+ .set_settings = ax88179_set_settings,
++ #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4,20,0) */
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 3, 0)
+ .set_tx_csum = ax88179_set_tx_csum,
+ .get_tx_csum = ax88179_get_tx_csum,
diff --git a/PKGBUILD b/PKGBUILD
index 4aae8726714a..4289e60e3bd9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=asix-ax88179-dkms
pkgver=1.19.0
-pkgrel=2
+pkgrel=3
pkgdesc="A kernel module for ASIX AX88178A AX88179 USB 3.0 network adapters"
arch=('i686' 'x86_64')
@@ -23,14 +23,16 @@ _modname='ax88179_178a'
source=(
"https://www.asix.com.tw/FrootAttach/driver/${_filename}.tar.bz2"
"${pkgname}.conf"
- "0001-No-date-time.patch"
- "0002-b2b128.patch"
+ '0001-No-date-time.patch'
+ '0002-b2b128.patch'
+ '0003-linux-4.20.patch'
)
sha512sums=(
'4868203e7a2574fc1760c604dc0f6d8a6890e4d65912bfc1e47bcef2fd72f422e791441cd65e58737b10edb5e04a40cf1e10585ae8b9f385adc729fb34b7fb8a'
'c22d3ec8bea598580681c6a9e2ae6b3d2118547a739ee717d4576653426ace7ec2406012d162ec6424244c360a2b9b7a185dbf3eebba6c0065efedfb54de23ba'
'74a730f2ccfabf54c600391ee9a54ad3977b730c141c9ca9e7b1740c0d93161595a71312b4e3067411bde2f7d7f2a1cb9fb9e982a6ccfc0a4fbfa86829f6c346'
'a31cab0b3e0fa027acbf629aec7294d591d6dd01928de800bd915e78c75be7be0fe7603b6c69ed90f5a6fefe30ecf6a953fa154cccb03b9cb3e070e7566394f8'
+ '74e5b9bfe73e6ff2a4a370ddf690462d3490e4d996ef1fe1f63bf5093ce70f63e309b60256e46d6085b694c2c5a6f8a811556497deba98292cd85708e5066589'
)
prepare() {
@@ -46,6 +48,9 @@ prepare() {
# specific versions of the kernel.
patch -p1 < "${srcdir}/0002-b2b128.patch"
+ # Linux kernel internals changed since Linux 4.20.
+ patch -p1 < "${srcdir}/0003-linux-4.20.patch"
+
# Use a DKMS build against the right kernel release
sed -i "${srcdir}/${_filename}/Makefile" \
-e '/#KDIR/d' \