video.mk 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. #
  2. # Copyright (C) 2006-2008 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. VIDEO_MENU:=Video Support
  8. define KernelPackage/video-core
  9. SUBMENU:=$(VIDEO_MENU)
  10. TITLE=Video4Linux support
  11. DEPENDS:=@PCI_SUPPORT||USB_SUPPORT
  12. KCONFIG:= \
  13. CONFIG_VIDEO_DEV \
  14. CONFIG_VIDEO_V4L1=y \
  15. CONFIG_VIDEO_CAPTURE_DRIVERS=y \
  16. CONFIG_V4L_USB_DRIVERS=y
  17. endef
  18. define KernelPackage/video-core/2.4
  19. FILES:=$(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX)
  20. AUTOLOAD:=$(call AutoLoad,60,videodev)
  21. endef
  22. ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.29)),1)
  23. define KernelPackage/video-core/2.6
  24. FILES:= \
  25. $(LINUX_DIR)/drivers/media/video/v4l2-common.$(LINUX_KMOD_SUFFIX) \
  26. $(LINUX_DIR)/drivers/media/video/v4l1-compat.$(LINUX_KMOD_SUFFIX) \
  27. $(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX)
  28. AUTOLOAD:=$(call AutoLoad,60, \
  29. v4l1-compat \
  30. videodev \
  31. v4l2-common \
  32. )
  33. endef
  34. else
  35. define KernelPackage/video-core/2.6
  36. FILES:= \
  37. $(LINUX_DIR)/drivers/media/video/v4l2-common.$(LINUX_KMOD_SUFFIX) \
  38. $(LINUX_DIR)/drivers/media/video/v4l1-compat.$(LINUX_KMOD_SUFFIX) \
  39. $(LINUX_DIR)/drivers/media/video/compat_ioctl32.$(LINUX_KMOD_SUFFIX) \
  40. $(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX)
  41. AUTOLOAD:=$(call AutoLoad,60, \
  42. v4l1-compat \
  43. videodev \
  44. v4l2-common \
  45. compat_ioctl32 \
  46. )
  47. endef
  48. endif
  49. define KernelPackage/video-core/description
  50. Kernel modules for Video4Linux support
  51. endef
  52. $(eval $(call KernelPackage,video-core))
  53. define KernelPackage/video-cpia2
  54. SUBMENU:=$(VIDEO_MENU)
  55. TITLE:=CPIA2 video driver
  56. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  57. KCONFIG:=CONFIG_VIDEO_CPIA2
  58. FILES:=$(LINUX_DIR)/drivers/media/video/cpia2/cpia2.$(LINUX_KMOD_SUFFIX)
  59. AUTOLOAD:=$(call AutoLoad,70,cpia2)
  60. endef
  61. define KernelPackage/video-cpia2/description
  62. Kernel modules for supporting CPIA2 USB based cameras.
  63. endef
  64. $(eval $(call KernelPackage,video-cpia2))
  65. define KernelPackage/video-konica
  66. SUBMENU:=$(VIDEO_MENU)
  67. TITLE:=Konica USB webcam support
  68. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-video +kmod-video-core
  69. KCONFIG:=CONFIG_USB_KONICAWC
  70. FILES:=$(LINUX_DIR)/drivers/media/video/usbvideo/konicawc.$(LINUX_KMOD_SUFFIX)
  71. AUTOLOAD:=$(call AutoLoad,70,konicawc)
  72. endef
  73. define KernelPackage/video-konica/description
  74. Kernel support for webcams based on a Konica chipset. This is known to
  75. work with the Intel YC76 webcam.
  76. endef
  77. $(eval $(call KernelPackage,video-konica))
  78. define KernelPackage/video-ov511
  79. SUBMENU:=$(VIDEO_MENU)
  80. TITLE:=OV511 USB webcam support
  81. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  82. KCONFIG:=CONFIG_VIDEO_OV511
  83. FILES:=$(LINUX_DIR)/drivers/media/video/ov511.$(LINUX_KMOD_SUFFIX)
  84. AUTOLOAD:=$(call AutoLoad,70,ov511)
  85. endef
  86. define KernelPackage/video-ov511/description
  87. Kernel modules for supporting OmniVision OV511 USB webcams.
  88. endef
  89. $(eval $(call KernelPackage,video-ov511))
  90. define KernelPackage/video-ovcamchip
  91. SUBMENU:=$(VIDEO_MENU)
  92. TITLE:=OV6xxx/OV7xxx Camera Chip support
  93. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-i2c-core +kmod-video-core
  94. KCONFIG:=CONFIG_VIDEO_OVCAMCHIP
  95. FILES:=$(LINUX_DIR)/drivers/media/video/ovcamchip/ovcamchip.$(LINUX_KMOD_SUFFIX)
  96. AUTOLOAD:=$(call AutoLoad,70,ovcamchip)
  97. endef
  98. define KernelPackage/video-ovcamchip/description
  99. Kernel modules for supporting OmniVision OV6xxx and OV7xxx series of
  100. camera chips.
  101. endef
  102. $(eval $(call KernelPackage,video-ovcamchip))
  103. define KernelPackage/video-sn9c102
  104. SUBMENU:=$(VIDEO_MENU)
  105. TITLE:=SN9C102 Camera Chip support
  106. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  107. KCONFIG:=CONFIG_USB_SN9C102
  108. FILES:=$(LINUX_DIR)/drivers/media/video/sn9c102/sn9c102.$(LINUX_KMOD_SUFFIX)
  109. AUTOLOAD:=$(call AutoLoad,70,sn9c102)
  110. endef
  111. define KernelPackage/video-sn9c102/description
  112. Kernel modules for supporting SN9C102
  113. camera chips.
  114. endef
  115. $(eval $(call KernelPackage,video-sn9c102))
  116. define KernelPackage/video-pwc
  117. SUBMENU:=$(VIDEO_MENU)
  118. TITLE:=Philips USB webcam support
  119. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  120. KCONFIG:= \
  121. CONFIG_USB_PWC \
  122. CONFIG_USB_PWC_DEBUG=n
  123. FILES:=$(LINUX_DIR)/drivers/media/video/pwc/pwc.$(LINUX_KMOD_SUFFIX)
  124. AUTOLOAD:=$(call AutoLoad,70,pwc)
  125. endef
  126. define KernelPackage/video-pwc/description
  127. Kernel modules for supporting Philips USB based cameras.
  128. endef
  129. $(eval $(call KernelPackage,video-pwc))
  130. define KernelPackage/video-uvc
  131. SUBMENU:=$(VIDEO_MENU)
  132. TITLE:=USB Video Class (UVC) support
  133. DEPENDS:=@LINUX_2_6 @!LINUX_2_6_25 @!LINUX_2_6_24 @!LINUX_2_6_23 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  134. KCONFIG:= \
  135. CONFIG_USB_VIDEO_CLASS \
  136. CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
  137. FILES:=$(LINUX_DIR)/drivers/media/video/uvc/uvcvideo.$(LINUX_KMOD_SUFFIX)
  138. AUTOLOAD:=$(call AutoLoad,90,uvcvideo)
  139. endef
  140. define KernelPackage/video-uvc/description
  141. Kernel modules for supporting USB Video Class (UVC) devices.
  142. endef
  143. $(eval $(call KernelPackage,video-uvc))