X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/bc9e103c3272c4279d6a596709d7efb724ab25cb..7f220e31ce33fa0a9472406e48d6760e5ed8e0bf:/package/kernel/modules/video.mk diff --git a/package/kernel/modules/video.mk b/package/kernel/modules/video.mk index b148afc0e..892f045b4 100644 --- a/package/kernel/modules/video.mk +++ b/package/kernel/modules/video.mk @@ -18,24 +18,21 @@ define KernelPackage/video-core 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 \ + CONFIG_V4L_PCI_DRIVERS=y \ + CONFIG_V4L_PLATFORM_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 @@ -302,6 +299,21 @@ endef $(eval $(call KernelPackage,video-gspca-ov534)) +define KernelPackage/video-gspca-ov534-9 + TITLE:=ov534-9 webcam support + KCONFIG:=CONFIG_USB_GSPCA_OV534_9 + FILES:=$(LINUX_DIR)/drivers/media/video/gspca/gspca_ov534_9.ko + AUTOLOAD:=$(call AutoLoad,75,gspca_ov534_9) + $(call AddDepends/video-gspca) +endef + +define KernelPackage/video-gspca-ov534-9/description + The OV534-9 USB Camera Driver (ov534_9) kernel module. +endef + +$(eval $(call KernelPackage,video-gspca-ov534-9)) + + define KernelPackage/video-gspca-pac207 TITLE:=pac207 webcam support KCONFIG:=CONFIG_USB_GSPCA_PAC207