blob: 557924c8b580a54e70d993874f0128bbd7da0488 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
#!/bin/sh
# link drivers sources from CVS or release tarball into your 2.6.x kernel sources;
if test -z $1 || ! test -d $1 ; then
echo
echo " usage: $0 <path_to_kernel_to_patch>"
echo
exit
fi
echo "patching $1..."
cd linux
PWD=`pwd`
for x in `find drivers -type d | grep -v CVS` ; do
mkdir -p -v $1/$x
done
for x in `find Documentation -type d | grep -v CVS` ; do
mkdir -p -v $1/$x
done
for x in `find include -type d | grep -v CVS` ; do
mkdir -p -v $1/$x
done
for x in `find Documentation -type f | grep -v CVS | grep -v .cvsignore` ; do
ln -v -f -s $PWD/$x $1/$x
done
for x in `find drivers -type f | grep -v CVS | grep -v .cvsignore` ; do
ln -v -f -s $PWD/$x $1/$x
done
for x in `find include -type f | grep -v CVS | grep -v .cvsignore` ; do
ln -v -f -s $PWD/$x $1/$x
done
for x in `find Documentation -type l | grep -v CVS | grep -v .cvsignore` ; do
ln -v -f -s $PWD/$x $1/$x
done
for x in `find drivers -type l | grep -v CVS | grep -v .cvsignore` ; do
ln -v -f -s $PWD/$x $1/$x
done
for x in `find include -type l | grep -v CVS | grep -v .cvsignore` ; do
ln -v -f -s $PWD/$x $1/$x
done
cd ..
ln -v -f -s $PWD/v4l/compat.h $1/include/media/compat.h
ln -v -f -s $PWD/v4l/compat.h $1/include/linux/compat.h
ln -v -f -s $PWD/v4l/compat.h $1/drivers/media/common/compat.h
ln -v -f -s $PWD/v4l/compat.h $1/drivers/media/dvb/bt8xx/compat.h
ln -v -f -s $PWD/v4l/compat.h $1/drivers/media/video/compat.h
patch -p0 <<'DIFF'
diff -u -p -r1.10 videodev.h
--- linux/include/linux/videodev.h 9 Oct 2005 03:06:09 -0000 1.10
+++ linux/include/linux/videodev.h 10 Oct 2005 07:54:58 -0000
@@ -1,6 +1,7 @@
#ifndef __LINUX_VIDEODEV_H
#define __LINUX_VIDEODEV_H
+#include "compat.h"
#include <linux/compiler.h>
#include <linux/types.h>
diff -up v4l-kernel.orig/v4l/Makefile v4l-kernel/v4l/Makefile
--- v4l/Makefile 2005-10-10 00:57:41.000000000 -0400
+++ v4l/Makefile 2005-10-10 00:58:26.000000000 -0400
@@ -266,6 +266,7 @@ clean::
find . -name '*.c' -type l -exec rm '{}' \;
find . -name '*.h' -type l -exec rm '{}' \;
-rm -f *~ *.o *.ko *.mod.c
+ @cd ..; patch -p0 -s -R -N < v4l/scripts/makelinks.sh
distclean:: clean
-rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
|