branch | stable-1.5 |
changeset 2562 | e842688ccc5e |
parent 2546 | 2fa43746d972 |
child 2584 | 0e3d989ff233 |
2561:4839e81d2bdd | 2562:e842688ccc5e |
---|---|
1 #!/bin/bash |
|
2 |
|
3 set -x |
|
4 |
|
5 KERNELDIR=/data/kernel/linux-3.6.11 |
|
6 PREVER=3.4 |
|
7 KERNELVER=3.6 |
|
8 |
|
9 for f in $KERNELDIR/drivers/net/ethernet/intel/e1000e/*.[ch]; do |
|
10 echo $f |
|
11 b=$(basename $f) |
|
12 o=${b/\./-$KERNELVER-orig.} |
|
13 e=${b/\./-$KERNELVER-ethercat.} |
|
14 cp -v $f $o |
|
15 chmod 644 $o |
|
16 cp -v $o $e |
|
17 op=${b/\./-$PREVER-orig.} |
|
18 ep=${b/\./-$PREVER-ethercat.} |
|
19 diff -u $op $ep | patch -p1 $e |
|
20 done |