devices/update.sh
author Florian Pose <fp@igh-essen.com>
Tue, 28 Oct 2014 15:59:52 +0100
branchstable-1.5
changeset 2586 5b89b4e38cdc
parent 2585 26480934a057
child 2587 afd76ee3aa87
permissions -rwxr-xr-x
Added all drivers for kernel 3.12.
#!/bin/bash

set -x

KERNELDIR=/data/kernel/linux-3.12.26
PREVER=3.10
KERNELVER=3.12

for f in $KERNELDIR/drivers/net/ethernet/{realtek/8139too,realtek/r8169,intel/e100}.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
    hg add $o $e
done