summaryrefslogtreecommitdiff
path: root/v4l/scripts/merge-pvrusb2.sh
blob: 2852feefda164107f5e9f50152307407a2e5407d (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
#!/bin/sh

PWD=`pwd`
CWD=$PWD

cd ../v4l_experimental/pvrusb2
PVRUSB2=$PWD

echo creating pvrusb2 symbolic links...

for x in `find . -type f -name '*.[c,h]'` ; do
	ln -f -s $PVRUSB2/$x $CWD/$x
done

cd $CWD
patch -p1 <<'DIFF'
--- v4l.orig/Make.config
+++ v4l/Make.config
@@ -17,7 +17,7 @@
 
 CONFIG_VIDEO_ADV_DEBUG	:= y
 
-CONFIG_VIDEO_PVRUSB2	:= n
+CONFIG_VIDEO_PVRUSB2	:= m
 
 # doesn't build on older kernels
 
--- v4l.orig/Makefile
+++ v4l/Makefile
@@ -464,6 +464,7 @@
 	@find . -name '*.c' -type l -exec rm '{}' \;
 	@find . -name '*.h' -type l -exec rm '{}' \;
 	-rm -f *~ *.o *.ko .*.o.cmd .*.ko.cmd *.mod.c av7110_firm.h fdump
+	patch -R -p1 < scripts/merge-pvrusb2.sh
 
 distclean:: clean
 	-rm -f .version .*.o.flags .*.o.d