various changes for kernel video support: * move kernel video related modules to...
[oweals/openwrt.git] / package / kernel / modules / video.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 VIDEO_MENU:=Video Support
10
11 define KernelPackage/video-core
12   SUBMENU:=$(VIDEO_MENU)
13   TITLE=Video4Linux support
14   KCONFIG:= \
15         CONFIG_VIDEO_DEV \
16         CONFIG_VIDEO_V4L1=y \
17         CONFIG_VIDEO_CAPTURE_DRIVERS=y \
18         CONFIG_V4L_USB_DRIVERS=y 
19 endef
20
21 define KernelPackage/video-core/2.4
22   FILES:=$(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX)
23   AUTOLOAD:=$(call AutoLoad,60,videodev)
24 endef
25
26 define KernelPackage/video-core/2.6
27   FILES:= \
28         $(LINUX_DIR)/drivers/media/video/v4l2-common.$(LINUX_KMOD_SUFFIX) \
29         $(LINUX_DIR)/drivers/media/video/v4l1-compat.$(LINUX_KMOD_SUFFIX) \
30         $(LINUX_DIR)/drivers/media/video/compat_ioctl32.$(LINUX_KMOD_SUFFIX) \
31         $(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX)
32   AUTOLOAD:=$(call AutoLoad,60, \
33         v4l2-common \
34         v4l1-compat \
35         compat_ioctl32 \
36         videodev \
37   )
38 endef
39
40 define KernelPackage/video-core/description
41  Kernel modules for Video4Linux support
42 endef
43
44 $(eval $(call KernelPackage,video-core))
45
46
47 define KernelPackage/video-pwc
48   SUBMENU:=$(VIDEO_MENU)
49   TITLE:=Philips webcam support
50   DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
51   KCONFIG:= \
52         CONFIG_USB_PWC \
53         CONFIG_USB_PWC_DEBUG=n
54   FILES:=$(LINUX_DIR)/drivers/media/video/pwc/pwc.$(LINUX_KMOD_SUFFIX)
55   AUTOLOAD:=$(call AutoLoad,70,pwc)
56 endef
57
58
59 define KernelPackage/video-pwc/description
60  Kernel modules for supporting Philips USB based cameras.
61 endef
62
63 $(eval $(call KernelPackage,video-pwc))
64
65
66 define KernelPackage/video-cpia2
67   SUBMENU:=$(VIDEO_MENU)
68   TITLE:=CPIA2 video driver
69   DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
70   KCONFIG:=CONFIG_VIDEO_CPIA2
71   FILES:=$(LINUX_DIR)/drivers/media/video/cpia2/cpia2.$(LINUX_KMOD_SUFFIX)
72   AUTOLOAD:=$(call AutoLoad,70,cpia2)
73 endef
74
75 define KernelPackage/video-cpia2/description
76  Kernel modules for supporting CPIA2 USB based cameras.
77 endef
78
79 $(eval $(call KernelPackage,video-cpia2))