Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=kernelbump.git;a=commitdiff;h=031e9de2c49d82518632d5704c07f0af1b08a8b3

commit 031e9de2c49d82518632d5704c07f0af1b08a8b3
Author: DeX77 <[email protected]>
Date:   Mon May 1 16:27:18 2017 +0200

r8168-8.044.02-4-x86_64

* fix build

diff --git a/source/network-extra/r8168/FrugalBuild 
b/source/network-extra/r8168/FrugalBuild
index 0da9f3d..810f9aa 100644
--- a/source/network-extra/r8168/FrugalBuild
+++ b/source/network-extra/r8168/FrugalBuild
@@ -14,12 +14,10 @@ up2date="Fwcat '$url' | sed -n -r 
's/.*$pkgname-([0-9.]+)[.]tar[.]bz2.*/\1/p'"
# Needs updating for each upgrade.
source=(https://github.com/mtorromeo/r8168/archive/$pkgver.tar.gz \
$pkgname.conf \
-       linux-4.5.patch \
-       makefile.patch)
+       kernel-4.11.patch )
sha1sums=('fc526ae8b87beba7970b903a3b4e17e4ec1d203d' \
'385fab20e1ad896dc6c1ee5c4aff9a6bd9496ee0' \
-          '5a42deba9165d352389422bd8d7084d43142ae3b' \
-          'a674df4fe4b78b54d8b65957ae42f0e35403065e')
+          'fdb258648d6725511c81b8dac992884fe7d95205')

build() {
unset MAKEFLAGS
diff --git a/source/network-extra/r8168/kernel-4.11.patch 
b/source/network-extra/r8168/kernel-4.11.patch
new file mode 100644
index 0000000..9fd8f06
--- /dev/null
+++ b/source/network-extra/r8168/kernel-4.11.patch
@@ -0,0 +1,32 @@
+diff -Naur r8168-8.044.02/Makefile r8168-8.044.02.new/Makefile
+--- r8168-8.044.02/Makefile    2017-02-14 09:28:37.000000000 +0100
++++ r8168-8.044.02.new/Makefile        2017-05-01 16:22:45.000000000 +0200
+@@ -31,7 +31,7 @@
+
+ KFLAG := 2$(shell uname -r | sed -ne 's/^2\.[4]\..*/4/p')x
+
+-all: clean modules install
++all: clean modules
+
+ modules:
+ ifeq ($(KFLAG),24x)
+diff -Naur r8168-8.044.02/src/r8168_n.c r8168-8.044.02.new/src/r8168_n.c
+--- r8168-8.044.02/src/r8168_n.c       2017-02-14 09:28:37.000000000 +0100
++++ r8168-8.044.02.new/src/r8168_n.c   2017-05-01 16:23:22.000000000 +0200
+@@ -4407,7 +4407,7 @@
+                 features &= ~NETIF_F_ALL_TSO;
+         if (dev->mtu > ETH_DATA_LEN) {
+                 features &= ~NETIF_F_ALL_TSO;
+-                features &= ~NETIF_F_ALL_CSUM;
++                features &= ~NETIF_F_CSUM_MASK;
+         }
+         spin_unlock_irqrestore(&tp->lock, flags);
+
+@@ -25732,7 +25732,6 @@
+                         if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
+                                 rtl8168_rx_skb(tp, skb);
+
+-                        dev->last_rx = jiffies;
+                         RTLDEV->stats.rx_bytes += pkt_size;
+                         RTLDEV->stats.rx_packets++;
+                 }
diff --git a/source/network-extra/r8168/linux-4.5.patch 
b/source/network-extra/r8168/linux-4.5.patch
deleted file mode 100644
index ad8195a..0000000
--- a/source/network-extra/r8168/linux-4.5.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/r8168_n.c b/src/r8168_n.c
-index d197630..b47419d 100755
---- a/src/r8168_n.c
-+++ b/src/r8168_n.c
-@@ -4209,7 +4209,7 @@ static netdev_features_t rtl8168_fix_features(struct 
net_device *dev,
-         spin_lock_irqsave(&tp->lock, flags);
-         if (dev->mtu > ETH_DATA_LEN) {
-                 features &= ~NETIF_F_ALL_TSO;
--                features &= ~NETIF_F_ALL_CSUM;
-+                features &= ~NETIF_F_CSUM_MASK;
-         }
-         spin_unlock_irqrestore(&tp->lock, flags);
-
diff --git a/source/network-extra/r8168/makefile.patch 
b/source/network-extra/r8168/makefile.patch
deleted file mode 100644
index beeb7f0..0000000
--- a/source/network-extra/r8168/makefile.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ur a/Makefile b/Makefile
---- a/Makefile 2015-04-30 16:17:44.000000000 +0200
-+++ b/Makefile 2015-05-26 15:03:54.987731288 +0200
-@@ -31,7 +31,7 @@
-
- KFLAG := 2$(shell uname -r | sed -ne 's/^2\.[4]\..*/4/p')x
-
--all: clean modules install
-+all: clean modules
-
- modules:
- ifeq ($(KFLAG),24x)
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to