diff options
Diffstat (limited to 'v4l/scripts')
-rw-r--r-- | v4l/scripts/make_kern_diff.sh | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/v4l/scripts/make_kern_diff.sh b/v4l/scripts/make_kern_diff.sh new file mode 100644 index 000000000..6fb815fa7 --- /dev/null +++ b/v4l/scripts/make_kern_diff.sh @@ -0,0 +1,34 @@ +KERNEL=/usr/src/linux-2.6.12-rc5-mm + +KDIR="`find $KERNEL/drivers/media/ -type d|sed s,$KERNEL/,,g`" + +echo $KDIR + +CUR="`pwd`" +mkdir kernel +cd kernel +for d in $KDIR; do + mkdir -p $d + FILES="`ls $KERNEL/$d|grep -v Makefile`" + + for f in $FILES; do + if [ -e $CUR/$f ]; then + echo ln -sf $CUR/$f $d/$f + ln -sf $CUR/$f $d/$f + fi + done +done + +mkdir -p Documentation/video4linux +FILES="`find $CUR/doc/* -type f`" +for f in $FILES; do + echo ln -sf $f Documentation/video4linux/ + ln -sf $f Documentation/video4linux/ + +done + +cd $CUR +# Excludes DVB code from diff +rm -r kernel/drivers/media/dvb + +(export LC_ALL=C;diff -ur /usr/src/linux-2.6.12-rc5-mm kernel/|grep -v Only) |