diff options
author | Arpan Kapoor | 2020-04-10 13:18:40 +0530 |
---|---|---|
committer | Arpan Kapoor | 2020-04-10 13:18:40 +0530 |
commit | d6a94da16eed3f6873507d0096c8711ecf28f6f4 (patch) | |
tree | be40e63b723f3c50cc8eca81ba2de6b4f7d1d3d2 | |
parent | 270d7912afa3d112dc0898c2e013dff294c9332c (diff) | |
download | aur-d6a94da16eed3f6873507d0096c8711ecf28f6f4.tar.gz |
patches for linux 5.6
-rw-r--r-- | .SRCINFO | 36 | ||||
-rw-r--r-- | PKGBUILD | 56 | ||||
-rw-r--r-- | linux-5.6.patch | 85 |
3 files changed, 127 insertions, 50 deletions
@@ -1,7 +1,7 @@ pkgbase = 8188eu-dkms pkgdesc = Driver for Realtek RTL8188EUS (RTL8188EUS, RTL8188ETV) WLAN pkgver = v4.3.0.8_13968 - pkgrel = 12 + pkgrel = 13 url = http://www.realtek.com.tw/ install = 8188eu-dkms.install arch = any @@ -22,23 +22,25 @@ pkgbase = 8188eu-dkms source = linux-5.0.patch source = linux-5.1.patch source = linux-5.2.patch + source = linux-5.6.patch source = no_debug.patch - sha256sums = c5604632f88ab6c68074635c73403a3f612f9f69b52af8fe9b96cf851db7a832 - sha256sums = edaeafe28410017fabb742d6ccdf060a945150fb56e41084adb7b9dd66739e2b - sha256sums = 6f9dcb930203d3e34e75cd52bc3779ace4c601d6fde6cb879288d7cb64ded2c0 - sha256sums = 1201c9d0d52dc4b140f3b20198410ade2ab3e8ed92f90d53ac72a79425126e9b - sha256sums = 5e03c59412f5d7a85e61493681927afc1bac899a7357a99b88e984f1ecb1a512 - sha256sums = b4614962e50f86690cdb30ccde013bb480f29b13b157e8feb05a799b5776369d - sha256sums = a8621280e07d95f6aa7ae1db8a285ba512990e0af3f8f43d54bfb4d0231d2551 - sha256sums = 146a8d3b931861538ee36908e28d8ad774d5de0916e01511f48d84827c59cd99 - sha256sums = 936e1701b72e5ecb6b79eba722da0586cee9aabc323ddc5a69b2c07d885d1fa1 - sha256sums = cd4f16d4a9f2eb6965e3721e6cd7aa70656a50aa2b139e0630342999bac0b2c2 - sha256sums = 18c1aeb9b574c1ecd689435908adbd006bb73f2a723f319e18f044b9c3a3f6dd - sha256sums = eb1eed7298dc9ee8b39e59cc25a5ae03755337564538755d87fc808c493ac267 - sha256sums = 0655f764a9e412ee1cb53b432938f56aa2f26f0ff28617b0b6833530a1bdb388 - sha256sums = d607fc3dc1b0a1364add8a90a15a56e77cea372f02d93b9bb6d13c56d5c0055b - sha256sums = 91c0ab11f0792773d7cba748e31f12f98101c52d732e0ab159c38bfbb53435b7 - sha256sums = 9b8453c15e39cf68ccc1a0d7dfb093439f89e3b2e7c40dd0fa8d0b8aa9956cdd + md5sums = ca8736349079bc2bfedfb862d04a08bb + md5sums = 8af5df9ed717b3bb48df59dac0c8a9c8 + md5sums = 699a2e12d0d9c7272612fe32a7c10810 + md5sums = d973b02dadacb783eacdc1d715843de7 + md5sums = 26316154e211046f6f711efa2848281f + md5sums = 2e3d4ac7b1b856f7d835731b5e5ebafc + md5sums = a0286c3541676f1f43cd02d5e1056bdd + md5sums = 6015156964800281cbe4b580e427a117 + md5sums = a7d7c79bb1a2a1905a4c1b4c184eed77 + md5sums = af75f63a39d075f3e00edf34be5de708 + md5sums = d7166ea97454fed40b2a7d5c6b3695b8 + md5sums = b50c4d78fb03ab6af99f45d04b1890fd + md5sums = a540f87d5f8b08c732d594760696a97f + md5sums = 4730b05761b7bc9b3e970a088fc81c8f + md5sums = 0f23196d2f3be2aff32393c698c10d7a + md5sums = d3d112aec7a0cdccc7161ba1d66b8475 + md5sums = 0b14ee4517f78ada4d471654afd82b79 pkgname = 8188eu-dkms @@ -3,7 +3,7 @@ _pkgname=8188eu pkgname="${_pkgname}-dkms" pkgver=v4.3.0.8_13968 -pkgrel=12 +pkgrel=13 pkgdesc='Driver for Realtek RTL8188EUS (RTL8188EUS, RTL8188ETV) WLAN' arch=('any') url='http://www.realtek.com.tw/' @@ -25,60 +25,50 @@ source=("https://www.dropbox.com/s/afs5d2yfgwurqm2/${_pkgname}-${pkgver}.tar.xz? linux-5.0.patch linux-5.1.patch linux-5.2.patch + linux-5.6.patch no_debug.patch) -sha256sums=('c5604632f88ab6c68074635c73403a3f612f9f69b52af8fe9b96cf851db7a832' - 'edaeafe28410017fabb742d6ccdf060a945150fb56e41084adb7b9dd66739e2b' - '6f9dcb930203d3e34e75cd52bc3779ace4c601d6fde6cb879288d7cb64ded2c0' - '1201c9d0d52dc4b140f3b20198410ade2ab3e8ed92f90d53ac72a79425126e9b' - '5e03c59412f5d7a85e61493681927afc1bac899a7357a99b88e984f1ecb1a512' - 'b4614962e50f86690cdb30ccde013bb480f29b13b157e8feb05a799b5776369d' - 'a8621280e07d95f6aa7ae1db8a285ba512990e0af3f8f43d54bfb4d0231d2551' - '146a8d3b931861538ee36908e28d8ad774d5de0916e01511f48d84827c59cd99' - '936e1701b72e5ecb6b79eba722da0586cee9aabc323ddc5a69b2c07d885d1fa1' - 'cd4f16d4a9f2eb6965e3721e6cd7aa70656a50aa2b139e0630342999bac0b2c2' - '18c1aeb9b574c1ecd689435908adbd006bb73f2a723f319e18f044b9c3a3f6dd' - 'eb1eed7298dc9ee8b39e59cc25a5ae03755337564538755d87fc808c493ac267' - '0655f764a9e412ee1cb53b432938f56aa2f26f0ff28617b0b6833530a1bdb388' - 'd607fc3dc1b0a1364add8a90a15a56e77cea372f02d93b9bb6d13c56d5c0055b' - '91c0ab11f0792773d7cba748e31f12f98101c52d732e0ab159c38bfbb53435b7' - '9b8453c15e39cf68ccc1a0d7dfb093439f89e3b2e7c40dd0fa8d0b8aa9956cdd') +md5sums=('ca8736349079bc2bfedfb862d04a08bb' + '8af5df9ed717b3bb48df59dac0c8a9c8' + '699a2e12d0d9c7272612fe32a7c10810' + 'd973b02dadacb783eacdc1d715843de7' + '26316154e211046f6f711efa2848281f' + '2e3d4ac7b1b856f7d835731b5e5ebafc' + 'a0286c3541676f1f43cd02d5e1056bdd' + '6015156964800281cbe4b580e427a117' + 'a7d7c79bb1a2a1905a4c1b4c184eed77' + 'af75f63a39d075f3e00edf34be5de708' + 'd7166ea97454fed40b2a7d5c6b3695b8' + 'b50c4d78fb03ab6af99f45d04b1890fd' + 'a540f87d5f8b08c732d594760696a97f' + '4730b05761b7bc9b3e970a088fc81c8f' + '0f23196d2f3be2aff32393c698c10d7a' + 'd3d112aec7a0cdccc7161ba1d66b8475' + '0b14ee4517f78ada4d471654afd82b79') prepare() { cd "${_pkgname}-${pkgver}" - local i; for i in "${source[@]}"; do + local i;for i in "${source[@]}";do case $i in *.patch) - msg2 "Applying patch ${i}" + echo "Applying patch ${i}" patch -p1 -i "${srcdir}/${i}" esac done - # Disable power saving sed -i 's/^CONFIG_POWER_SAVING \= y/CONFIG_POWER_SAVING = n/' Makefile } package() { cd "${srcdir}" - local install_dir="${pkgdir}/usr/src/${_pkgname}-${pkgver}" - # Copy dkms.conf install -Dm644 dkms.conf "${install_dir}/dkms.conf" - # Blacklist r8188eu install -Dm644 blacklist-r8188eu.conf "${pkgdir}/etc/modprobe.d/r8188eu.conf" - # Set name and version sed -e "s/@_PKGNAME@/${_pkgname}/" -e "s/@PKGVER@/${pkgver}/" -i "${install_dir}/dkms.conf" - # Copy sources cd "${_pkgname}-${pkgver}" - - for d in $(find . -type d); do - install -dm755 "${install_dir}/$d" - done - - for f in $(find . -type f); do - install -m644 "$f" "${install_dir}/$f" - done + for d in $(find . -type d);do install -dm755 "${install_dir}/$d";done + for f in $(find . -type f);do install -m644 "$f" "${install_dir}/$f";done } diff --git a/linux-5.6.patch b/linux-5.6.patch new file mode 100644 index 000000000000..e599fc5d4db4 --- /dev/null +++ b/linux-5.6.patch @@ -0,0 +1,85 @@ +diff --git a/os_dep/linux/rtw_proc.c b/os_dep/linux/rtw_proc.c +index 9ecc542..8e0f7dd 100644 +--- a/os_dep/linux/rtw_proc.c ++++ b/os_dep/linux/rtw_proc.c +@@ -64,7 +64,11 @@ inline struct proc_dir_entry *rtw_proc_create_dir(const char *name, struct proc_ + } + + inline struct proc_dir_entry *rtw_proc_create_entry(const char *name, struct proc_dir_entry *parent, ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) ++ const struct proc_ops *fops, void * data) ++#else + const struct file_operations *fops, void * data) ++#endif + { + struct proc_dir_entry *entry; + +@@ -165,6 +169,14 @@ static ssize_t rtw_drv_proc_write(struct file *file, const char __user *buffer, + return -EROFS; + } + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) ++static const struct proc_ops rtw_drv_proc_fops = { ++ .proc_open = rtw_drv_proc_open, ++ .proc_read = seq_read, ++ .proc_lseek = seq_lseek, ++ .proc_release = single_release, ++ .proc_write = rtw_drv_proc_write, ++#else + static const struct file_operations rtw_drv_proc_fops = { + .owner = THIS_MODULE, + .open = rtw_drv_proc_open, +@@ -172,6 +184,7 @@ static const struct file_operations rtw_drv_proc_fops = { + .llseek = seq_lseek, + .release = single_release, + .write = rtw_drv_proc_write, ++#endif + }; + + int rtw_drv_proc_init(void) +@@ -532,6 +545,14 @@ static ssize_t rtw_adapter_proc_write(struct file *file, const char __user *buff + return -EROFS; + } + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) ++static const struct proc_ops rtw_adapter_proc_fops = { ++ .proc_open = rtw_adapter_proc_open, ++ .proc_read = seq_read, ++ .proc_lseek = seq_lseek, ++ .proc_release = single_release, ++ .proc_write = rtw_adapter_proc_write, ++#else + static const struct file_operations rtw_adapter_proc_fops = { + .owner = THIS_MODULE, + .open = rtw_adapter_proc_open, +@@ -539,6 +560,7 @@ static const struct file_operations rtw_adapter_proc_fops = { + .llseek = seq_lseek, + .release = single_release, + .write = rtw_adapter_proc_write, ++#endif + }; + + int proc_get_odm_dbg_comp(struct seq_file *m, void *v) +@@ -710,6 +732,14 @@ static ssize_t rtw_odm_proc_write(struct file *file, const char __user *buffer, + return -EROFS; + } + ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0)) ++static const struct proc_ops rtw_odm_proc_fops = { ++ .proc_open = rtw_odm_proc_open, ++ .proc_read = seq_read, ++ .proc_lseek = seq_lseek, ++ .proc_release = single_release, ++ .proc_write = rtw_odm_proc_write, ++#else + static const struct file_operations rtw_odm_proc_fops = { + .owner = THIS_MODULE, + .open = rtw_odm_proc_open, +@@ -717,6 +747,7 @@ static const struct file_operations rtw_odm_proc_fops = { + .llseek = seq_lseek, + .release = single_release, + .write = rtw_odm_proc_write, ++#endif + }; + + struct proc_dir_entry *rtw_odm_proc_init(struct net_device *dev) |