summaryrefslogtreecommitdiff
path: root/v4l/scripts/unmerge-trees.sh
blob: 5bb2ea45d85d7a6cf858ab73d8f1d40a431f657e (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/sh

echo removing symlinks
rm dvb-pll.c 2> /dev/null
rm dvb-pll.h 2> /dev/null
rm mt352.c 2> /dev/null
rm mt352.h 2> /dev/null
rm mt352_priv.h 2> /dev/null
rm cx22702.c 2> /dev/null
rm cx22702.h 2> /dev/null
rm lgdt330x.c 2> /dev/null
rm lgdt330x.h 2> /dev/null
rm lgdt330x_priv.h 2> /dev/null
rm or51132.c 2> /dev/null
rm or51132.h 2> /dev/null
rm tda1004x.c 2> /dev/null
rm tda1004x.h 2> /dev/null
rm sp887x.c 2> /dev/null
rm sp887x.h 2> /dev/null
rm nxt6000.c 2> /dev/null
rm nxt6000.h 2> /dev/null
rm nxt6000_priv.h 2> /dev/null
rm cx24110.c 2> /dev/null
rm cx24110.h 2> /dev/null
rm or51211.c 2> /dev/null
rm or51211.h 2> /dev/null
rm bt878.c 2> /dev/null
rm bt878.h 2> /dev/null
rm dvb-bt8xx.c 2> /dev/null
rm dvb-bt8xx.h 2> /dev/null
rm dst.c 2> /dev/null
rm dst_ca.c 2> /dev/null
rm dst_ca.h 2> /dev/null
rm dst_common.h 2> /dev/null
rm dst_priv.h 2> /dev/null
rm dvbdev.h 2> /dev/null
rm dmxdev.h 2> /dev/null
rm dvb_demux.h 2> /dev/null
rm dvb_net.h 2> /dev/null
rm dvb_frontend.h 2> /dev/null
cd ..
for x in `find linux -type l` ; do 
    rm -rf $x 2> /dev/null
done
cd v4l
patch -p2 <<'DIFF'
diff -up v4l-kernel/v4l/Make.config v4l-kernel.orig/v4l/Make.config
--- v4l-kernel/v4l/Make.config	2005-10-08 17:46:08.000000000 -0400
+++ v4l-kernel.orig/v4l/Make.config	2005-10-08 17:31:57.000000000 -0400
@@ -31,7 +31,5 @@ endif
 ifeq ($(need_dvb),yes)
  CONFIG_VIDEO_CX88_DVB	:= m
  CONFIG_VIDEO_SAA7134_DVB := m
- CONFIG_DVB_BT8XX       := m
- CONFIG_DVB_FRONTENDS    := m
 endif
 
diff -up v4l-kernel/v4l/Makefile v4l-kernel.orig/v4l/Makefile
--- v4l-kernel/v4l/Makefile	2005-10-08 17:45:48.000000000 -0400
+++ v4l-kernel.orig/v4l/Makefile	2005-10-08 17:31:57.000000000 -0400
@@ -69,7 +69,6 @@ ifeq ($(VERSION).$(PATCHLEVEL),2.6)
 endif
 
 # for DVB
-EXTRA_CFLAGS += -DDVB_CVS=1
 EXTRA_CFLAGS += -I$(srctree)/drivers/media/dvb/dvb-core/
 EXTRA_CFLAGS += -I$(srctree)/drivers/media/dvb/frontends/
 ifeq ($(CONFIG_VIDEO_CX88_DVB),m)
@@ -174,7 +173,7 @@ links::
 
 	ln -sf ../linux/drivers/media/common/ir-common.c .
 
-install:: rminstall dvb-install
+install:: rminstall
 	@echo -e "\nInstalling new V4L modules at corresponding Kernel dir..."
 
 	@strip --strip-debug $(inst-m)
@@ -234,7 +233,7 @@ dvb-rminstall::
 		$(addprefix $(KDIR26)/dvb/frontends/, $(addsuffix .gz,$(inst_frontends))) 2>/dev/null
 	@echo
 
-rminstall:: dvb-rminstall
+rminstall::
 	@echo -e "\nEliminating old V4L modules (errors on this step is not a problem).."
 
 	-@rm -r $(DEST) \
@@ -255,7 +254,7 @@ rminstall:: dvb-rminstall
 rmmodules::
 	rmmod -w $(shell echo "$(v4l_modules)"|sed s,' ','\n',g|sed s,'-','_',g|sort|uniq -d)
 
-clean:: unmerge-trees
+clean::
 	find . -name '*.c' -type l -exec rm '{}' \;
 	find . -name '*.h' -type l -exec rm '{}' \;
 	-rm -f *~ *.o *.ko *.mod.c