Added r8169 driver for kernel 3.6.

This commit is contained in:
Florian Pose
2014-10-27 13:38:51 +01:00
parent 95bb74e7de
commit 8e5d96ba5e
4 changed files with 14204 additions and 1 deletions
+3 -1
View File
@@ -134,7 +134,9 @@ noinst_HEADERS = \
r8169-3.2-ethercat.c \
r8169-3.2-orig.c \
r8169-3.4-ethercat.c \
r8169-3.4-orig.c
r8169-3.4-orig.c \
r8169-3.6-ethercat.c \
r8169-3.6-orig.c
EXTRA_DIST = \
Kbuild.in
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
set -x
KERNELDIR=/data/kernel/linux-3.6.11
PREVER=3.4
KERNELVER=3.6
for f in $KERNELDIR/drivers/net/ethernet/realtek/{8139too,r8169}.c; do
echo $f
b=$(basename $f)
o=${b/\./-$KERNELVER-orig.}
e=${b/\./-$KERNELVER-ethercat.}
cp -v $f $o
chmod 644 $o
cp -v $o $e
op=${b/\./-$PREVER-orig.}
ep=${b/\./-$PREVER-ethercat.}
diff -u $op $ep | patch -p1 $e
done