X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/ae57d8838ce086c44a95b54816191ed9e92545b2..9949bd00f10764c8d32e8202c538a57388abeda0:/package/kernel/modules/video.mk?ds=inline diff --git a/package/kernel/modules/video.mk b/package/kernel/modules/video.mk index 92a5205c6..7a6eb31a2 100644 --- a/package/kernel/modules/video.mk +++ b/package/kernel/modules/video.mk @@ -11,31 +11,26 @@ VIDEO_MENU:=Video Support define KernelPackage/video-core SUBMENU:=$(VIDEO_MENU) TITLE=Video4Linux support - DEPENDS:=@PCI_SUPPORT||USB_SUPPORT + DEPENDS:=@PCI_SUPPORT||USB_SUPPORT +!TARGET_etrax:kmod-i2c-core KCONFIG:= \ CONFIG_MEDIA_SUPPORT=m \ CONFIG_VIDEO_DEV \ CONFIG_VIDEO_V4L1=y \ CONFIG_VIDEO_ALLOW_V4L1=y \ CONFIG_VIDEO_CAPTURE_DRIVERS=y \ - CONFIG_V4L_USB_DRIVERS=y -endef - -define KernelPackage/video-core/2.4 - FILES:=$(LINUX_DIR)/drivers/media/video/videodev.ko - AUTOLOAD:=$(call AutoLoad,60,videodev) -endef - -define KernelPackage/video-core/2.6 + CONFIG_V4L_USB_DRIVERS=y +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1) + FILES:= \ + $(LINUX_DIR)/drivers/media/video/v4l2-common.ko \ + $(LINUX_DIR)/drivers/media/video/videodev.ko + AUTOLOAD:=$(call AutoLoad,60, videodev v4l2-common) +else FILES:= \ $(LINUX_DIR)/drivers/media/video/v4l2-common.ko \ $(LINUX_DIR)/drivers/media/video/v4l1-compat.ko \ $(LINUX_DIR)/drivers/media/video/videodev.ko - AUTOLOAD:=$(call AutoLoad,60, \ - v4l1-compat \ - videodev \ - v4l2-common \ - ) + AUTOLOAD:=$(call AutoLoad,60, v4l1-compat videodev v4l2-common) +endif endef define KernelPackage/video-core/description @@ -85,9 +80,9 @@ $(eval $(call KernelPackage,video-konica)) define KernelPackage/video-ov511 -$(call AddDepends/video,@USB_SUPPORT +kmod-usb-core) TITLE:=OV511 USB webcam support - KCONFIG:=CONFIG_VIDEO_OV511 + DEPENDS:=@USB_SUPPORT +kmod-usb-core + KCONFIG:=CONFIG_USB_OV511 FILES:=$(LINUX_DIR)/drivers/media/video/ov511.ko AUTOLOAD:=$(call AutoLoad,70,ov511) $(call AddDepends/video) @@ -102,8 +97,8 @@ $(eval $(call KernelPackage,video-ov511)) define KernelPackage/video-ovcamchip -$(call AddDepends/video,@USB_SUPPORT +kmod-i2c-core) TITLE:=OV6xxx/OV7xxx Camera Chip support + DEPENDS:=@USB_SUPPORT +kmod-usb-core KCONFIG:=CONFIG_VIDEO_OVCAMCHIP FILES:=$(LINUX_DIR)/drivers/media/video/ovcamchip/ovcamchip.ko AUTOLOAD:=$(call AutoLoad,70,ovcamchip) @@ -120,8 +115,8 @@ $(eval $(call KernelPackage,video-ovcamchip)) define KernelPackage/video-sn9c102 -$(call AddDepends/video,@USB_SUPPORT +kmod-usb-core) TITLE:=SN9C102 Camera Chip support + DEPENDS:=@USB_SUPPORT +kmod-usb-core KCONFIG:=CONFIG_USB_SN9C102 FILES:=$(LINUX_DIR)/drivers/media/video/sn9c102/sn9c102.ko AUTOLOAD:=$(call AutoLoad,70,gspca_sn9c20x) @@ -138,8 +133,8 @@ $(eval $(call KernelPackage,video-sn9c102)) define KernelPackage/video-pwc -$(call AddDepends/video,@USB_SUPPORT +kmod-usb-core) TITLE:=Philips USB webcam support + DEPENDS:=@USB_SUPPORT +kmod-usb-core KCONFIG:= \ CONFIG_USB_PWC \ CONFIG_USB_PWC_DEBUG=n @@ -156,12 +151,13 @@ endef $(eval $(call KernelPackage,video-pwc)) define KernelPackage/video-uvc -$(call AddDepends/video,@USB_SUPPORT +kmod-usb-core) TITLE:=USB Video Class (UVC) support + DEPENDS:=@USB_SUPPORT +kmod-usb-core KCONFIG:= CONFIG_USB_VIDEO_CLASS FILES:=$(LINUX_DIR)/drivers/media/video/uvc/uvcvideo.ko AUTOLOAD:=$(call AutoLoad,90,uvcvideo) $(call AddDepends/video) + $(call AddDepends/input) endef