From: Koen Vandeputte Date: Wed, 8 Feb 2023 15:29:19 +0000 (+0100) Subject: kernel: add support for videobuf-dma X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f1a9240f0b6c3a5e167c7624ab781bca9a1b6010;p=openwrt%2Fstaging%2Fstintel.git kernel: add support for videobuf-dma This adds support for videobuf2-dma driver. This module contains following flavors: - Contiguous - Scatter/Gather Drivers using this can enable 1 of the, or both, depending on their needs. Due to this, a FILES catch-all is required for the videobuf-dma objects as depending on requirements, only 1 of them could get generated. Signed-off-by: Koen Vandeputte --- diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index d6bacbbf12..68a1d32e76 100644 --- a/package/kernel/linux/modules/video.mk +++ b/package/kernel/linux/modules/video.mk @@ -1067,3 +1067,21 @@ endef $(eval $(call KernelPackage,video-mem2mem)) +define KernelPackage/video-dma + SUBMENU:=$(VIDEO_MENU) + TITLE:=Video DMA support + HIDDEN:=1 + DEPENDS:=+kmod-video-videobuf2 + KCONFIG:= \ + CONFIG_VIDEOBUF2_DMA_CONTIG \ + CONFIG_VIDEOBUF2_DMA_SG + FILES:= $(LINUX_DIR)/drivers/media/common/videobuf2/videobuf2-dma-*.ko + AUTOLOAD:=$(call AutoLoad,66,videobuf2-dma-contig videobuf2-dma-sg) + $(call AddDepends/video) +endef + +define KernelPackage/video-dma/description + Video DMA support +endef + +$(eval $(call KernelPackage,video-dma))