blob: fa747cd4fe4ed7f3b924ebaad17798850063bed2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#
# ivtv build rules
#
CONFIG_VIDEO_IVTV := $(if $(wildcard $(src)/ivtv-svnversion.h),m)
CONFIG_VIDEO_CX88_IVTV := $(if $(wildcard $(src)/cx88-ivtv.c),m)
ifeq ($(CONFIG_VIDEO_IVTV),m)
-include $(obj)/ivtv/driver/Kbuild
endif
obj-$(CONFIG_VIDEO_CX88_IVTV) += cx88-ivtv.o
ivtv-install::
@echo -e "\nInstalling $(KDIR26)/video/ivtv files:"
@install -d $(KDIR26)/video/ivtv
@files='ivtv.ko ivtv-fb.ko cx88-ivtv.ko '; for i in $$files;do if [ -e $$i ]; then echo -n "$$i "; install -m 644 -c $$i $(KDIR26)/video/ivtv; fi; done; echo;
/sbin/depmod -a ${KERNELRELEASE}
ivtv-rminstall::
@echo -e "\nRemoving old $(KDIR26)/video/ivtv files:"
@files='ivtv.ko ivtv-fb.ko cx88-ivtv.ko '; for i in $$files;do if [ -e $(KDIR26)/video/ivtv/$$i ]; then echo -n "$$i "; rm $(KDIR26)/video/ivtv/$$i; fi; done; for i in $$files;do if [ -e $(KDIR26)/video/ivtv/$$i.gz ]; then echo -n "$$i.gz "; rm $(KDIR26)/video/ivtv/$$i.gz; fi; done; echo;
|