video.mk 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. define KernelPackage/video-core/2.6
  23. FILES:= \
  24. $(LINUX_DIR)/drivers/media/video/v4l2-common.$(LINUX_KMOD_SUFFIX) \
  25. $(LINUX_DIR)/drivers/media/video/v4l1-compat.$(LINUX_KMOD_SUFFIX) \
  26. $(LINUX_DIR)/drivers/media/video/compat_ioctl32.$(LINUX_KMOD_SUFFIX) \
  27. $(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX)
  28. AUTOLOAD:=$(call AutoLoad,60, \
  29. v4l2-common \
  30. v4l1-compat \
  31. compat_ioctl32 \
  32. videodev \
  33. )
  34. endef
  35. define KernelPackage/video-core/description
  36. Kernel modules for Video4Linux support
  37. endef
  38. $(eval $(call KernelPackage,video-core))
  39. define KernelPackage/video-cpia2
  40. SUBMENU:=$(VIDEO_MENU)
  41. TITLE:=CPIA2 video driver
  42. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  43. KCONFIG:=CONFIG_VIDEO_CPIA2
  44. FILES:=$(LINUX_DIR)/drivers/media/video/cpia2/cpia2.$(LINUX_KMOD_SUFFIX)
  45. AUTOLOAD:=$(call AutoLoad,70,cpia2)
  46. endef
  47. define KernelPackage/video-cpia2/description
  48. Kernel modules for supporting CPIA2 USB based cameras.
  49. endef
  50. $(eval $(call KernelPackage,video-cpia2))
  51. define KernelPackage/video-konica
  52. SUBMENU:=$(VIDEO_MENU)
  53. TITLE:=Konica USB webcam support
  54. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-video +kmod-video-core
  55. KCONFIG:=CONFIG_USB_KONICAWC
  56. FILES:=$(LINUX_DIR)/drivers/media/video/usbvideo/konicawc.$(LINUX_KMOD_SUFFIX)
  57. AUTOLOAD:=$(call AutoLoad,70,konicawc)
  58. endef
  59. define KernelPackage/video-konica/description
  60. Kernel support for webcams based on a Konica chipset. This is known to
  61. work with the Intel YC76 webcam.
  62. endef
  63. $(eval $(call KernelPackage,video-konica))
  64. define KernelPackage/video-ov511
  65. SUBMENU:=$(VIDEO_MENU)
  66. TITLE:=OV511 USB webcam support
  67. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  68. KCONFIG:=CONFIG_VIDEO_OV511
  69. FILES:=$(LINUX_DIR)/drivers/media/video/ov511.$(LINUX_KMOD_SUFFIX)
  70. AUTOLOAD:=$(call AutoLoad,70,ov511)
  71. endef
  72. define KernelPackage/video-ov511/description
  73. Kernel modules for supporting OmniVision OV511 USB webcams.
  74. endef
  75. $(eval $(call KernelPackage,video-ov511))
  76. define KernelPackage/video-ovcamchip
  77. SUBMENU:=$(VIDEO_MENU)
  78. TITLE:=OV6xxx/OV7xxx Camera Chip support
  79. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-i2c-core +kmod-video-core
  80. KCONFIG:=CONFIG_VIDEO_OVCAMCHIP
  81. FILES:=$(LINUX_DIR)/drivers/media/video/ovcamchip/ovcamchip.$(LINUX_KMOD_SUFFIX)
  82. AUTOLOAD:=$(call AutoLoad,70,ovcamchip)
  83. endef
  84. define KernelPackage/video-ovcamchip/description
  85. Kernel modules for supporting OmniVision OV6xxx and OV7xxx series of
  86. camera chips.
  87. endef
  88. $(eval $(call KernelPackage,video-ovcamchip))
  89. define KernelPackage/video-pwc
  90. SUBMENU:=$(VIDEO_MENU)
  91. TITLE:=Philips USB webcam support
  92. DEPENDS:=@LINUX_2_6 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  93. KCONFIG:= \
  94. CONFIG_USB_PWC \
  95. CONFIG_USB_PWC_DEBUG=n
  96. FILES:=$(LINUX_DIR)/drivers/media/video/pwc/pwc.$(LINUX_KMOD_SUFFIX)
  97. AUTOLOAD:=$(call AutoLoad,70,pwc)
  98. endef
  99. define KernelPackage/video-pwc/description
  100. Kernel modules for supporting Philips USB based cameras.
  101. endef
  102. $(eval $(call KernelPackage,video-pwc))
  103. define KernelPackage/video-uvc
  104. SUBMENU:=$(VIDEO_MENU)
  105. TITLE:=USB Video Class (UVC) support
  106. DEPENDS:=@LINUX_2_6 @!LINUX_2_6_25 @!LINUX_2_6_24 @!LINUX_2_6_23 @USB_SUPPORT +kmod-usb-core +kmod-video-core
  107. KCONFIG:= \
  108. CONFIG_USB_VIDEO_CLASS \
  109. CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
  110. FILES:=$(LINUX_DIR)/drivers/media/video/uvc/uvcvideo.$(LINUX_KMOD_SUFFIX)
  111. AUTOLOAD:=$(call AutoLoad,90,uvcvideo)
  112. endef
  113. define KernelPackage/video-uvc/description
  114. Kernel modules for supporting USB Video Class (UVC) devices.
  115. endef
  116. $(eval $(call KernelPackage,video-uvc))