summaryrefslogtreecommitdiff
path: root/v4l/Makefile
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-06-21 19:54:33 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-06-21 19:54:33 +0000
commit55373c41fb61ed35774cd3b51845af899462fc5a (patch)
treef08402bba30f14495f7d764937524f8c0c78ee58 /v4l/Makefile
parent9d02784b845b5ea6fa97d0b0f76dae5948a6f80a (diff)
downloadmediapointer-dvb-s2-55373c41fb61ed35774cd3b51845af899462fc5a.tar.gz
mediapointer-dvb-s2-55373c41fb61ed35774cd3b51845af899462fc5a.tar.bz2
* Makefile:
- included a make rmmodules for removing modules from memory. it is not perfect, but helps debuging :-) * .bp/2.6/i2c-tuner: - tea filename corrected. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l/Makefile')
-rw-r--r--v4l/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/v4l/Makefile b/v4l/Makefile
index 030c458f1..3268802f4 100644
--- a/v4l/Makefile
+++ b/v4l/Makefile
@@ -124,6 +124,8 @@ inst_cx88 := cx8800.ko cx8801.ko cx88-dvb.ko cx8802.ko
inst_cx88 += cx88-blackbird.ko cx88xx.ko
inst_saa7134 := saa6752hs.ko saa7134.ko saa7134-dvb.ko saa7134-empress.ko
+v4l_modules := $(shell lsmod|cut -d' ' -f1 ) $(patsubst %.ko,%,$(inst-m))
+
# locales seem to cause trouble sometimes.
LC_ALL = POSIX
export LC_ALL
@@ -175,6 +177,23 @@ v4l_install::
-cp -v $(inst-m) $(DEST)
/sbin/depmod -a
+rminstall:
+ -rm -r $(DEST)
+
+ -rm $(addprefix $(KDIR26)/common/, $(inst_common)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/common/, $(addsuffix .gz,$(inst_common))) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/dvb/frontends/, $(inst_frontends)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/dvb/frontends/, $(addsuffix .gz,$(inst_frontends))) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/, $(inst_video)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/, $(addsuffix .gz,$(inst_video))) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/cx88/, $(inst_cx88)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/cx88/, $(addsuffix .gz,$(inst_cx88))) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/saa7134/, $(inst_saa7134)) 2>/dev/null
+ -rm $(addprefix $(KDIR26)/video/saa7134/, $(addsuffix .gz,$(inst_saa7134))) 2>/dev/null
+
+rmmodules:
+ rmmod -w $(shell echo "$(v4l_modules)"|sed s,' ','\n',g|sed s,'-','_',g|sort|uniq -d)
+
clean::
-rm -f *~ *.o *.ko *.mod.c
-rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd