mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-19 03:06:35 +00:00
kernel: modules: video: adapt for kernel 6.6
Adapt video kmods for building under kernel 6.6: * Add drm_exec.ko and drm_suballoc_helper.ko for kmod-drm as they are added since 6.6 and 6.4 * Add uvc.ko for kmod-video-uvc as related contents was split as a new module since 6.3 Signed-off-by: Tan Zien <nabsdh9@gmail.com> Signed-off-by: Weijie Gao <hackpascal@gmail.com>
This commit is contained in:
parent
85ede9291b
commit
5b08b56007
@ -246,11 +246,15 @@ define KernelPackage/drm
|
|||||||
HIDDEN:=1
|
HIDDEN:=1
|
||||||
DEPENDS:=+kmod-dma-buf +kmod-i2c-core +PACKAGE_kmod-backlight:kmod-backlight \
|
DEPENDS:=+kmod-dma-buf +kmod-i2c-core +PACKAGE_kmod-backlight:kmod-backlight \
|
||||||
+kmod-fb
|
+kmod-fb
|
||||||
KCONFIG:=CONFIG_DRM
|
KCONFIG:=CONFIG_DRM \
|
||||||
|
CONFIG_DRM_EXEC@ge6.6 \
|
||||||
|
CONFIG_DRM_SUBALLOC_HELPER@ge6.4
|
||||||
FILES:= \
|
FILES:= \
|
||||||
$(LINUX_DIR)/drivers/gpu/drm/drm.ko \
|
$(LINUX_DIR)/drivers/gpu/drm/drm.ko \
|
||||||
$(LINUX_DIR)/drivers/gpu/drm/drm_panel_orientation_quirks.ko
|
$(LINUX_DIR)/drivers/gpu/drm/drm_panel_orientation_quirks.ko \
|
||||||
AUTOLOAD:=$(call AutoLoad,05,drm)
|
$(LINUX_DIR)/drivers/gpu/drm/drm_exec.ko@ge6.6 \
|
||||||
|
$(LINUX_DIR)/drivers/gpu/drm/drm_suballoc_helper.ko@ge6.4
|
||||||
|
AUTOLOAD:=$(call AutoLoad,05,drm_exec@ge6.6 drm_suballoc_helper@ge6.4 drm)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define KernelPackage/drm/description
|
define KernelPackage/drm/description
|
||||||
@ -262,7 +266,7 @@ $(eval $(call KernelPackage,drm))
|
|||||||
define KernelPackage/drm-buddy
|
define KernelPackage/drm-buddy
|
||||||
SUBMENU:=$(VIDEO_MENU)
|
SUBMENU:=$(VIDEO_MENU)
|
||||||
TITLE:=A page based buddy allocator
|
TITLE:=A page based buddy allocator
|
||||||
DEPENDS:=@DISPLAY_SUPPORT +kmod-drm @LINUX_6_1
|
DEPENDS:=@DISPLAY_SUPPORT +kmod-drm @LINUX_6_1||LINUX_6_6
|
||||||
KCONFIG:=CONFIG_DRM_BUDDY
|
KCONFIG:=CONFIG_DRM_BUDDY
|
||||||
FILES:= $(LINUX_DIR)/drivers/gpu/drm/drm_buddy.ko
|
FILES:= $(LINUX_DIR)/drivers/gpu/drm/drm_buddy.ko
|
||||||
AUTOLOAD:=$(call AutoProbe,drm_buddy)
|
AUTOLOAD:=$(call AutoProbe,drm_buddy)
|
||||||
@ -277,7 +281,7 @@ $(eval $(call KernelPackage,drm-buddy))
|
|||||||
define KernelPackage/drm-display-helper
|
define KernelPackage/drm-display-helper
|
||||||
SUBMENU:=$(VIDEO_MENU)
|
SUBMENU:=$(VIDEO_MENU)
|
||||||
TITLE:=DRM helpers for display adapters drivers
|
TITLE:=DRM helpers for display adapters drivers
|
||||||
DEPENDS:=@DISPLAY_SUPPORT +kmod-drm-kms-helper @LINUX_6_1
|
DEPENDS:=@DISPLAY_SUPPORT +kmod-drm-kms-helper @LINUX_6_1||LINUX_6_6
|
||||||
KCONFIG:=CONFIG_DRM_DISPLAY_HELPER
|
KCONFIG:=CONFIG_DRM_DISPLAY_HELPER
|
||||||
FILES:=$(LINUX_DIR)/drivers/gpu/drm/display/drm_display_helper.ko
|
FILES:=$(LINUX_DIR)/drivers/gpu/drm/display/drm_display_helper.ko
|
||||||
AUTOLOAD:=$(call AutoProbe,drm_display_helper)
|
AUTOLOAD:=$(call AutoProbe,drm_display_helper)
|
||||||
@ -349,7 +353,8 @@ define KernelPackage/drm-amdgpu
|
|||||||
CONFIG_DRM_AMD_DC=y \
|
CONFIG_DRM_AMD_DC=y \
|
||||||
CONFIG_DEBUG_KERNEL_DC=n
|
CONFIG_DEBUG_KERNEL_DC=n
|
||||||
FILES:=$(LINUX_DIR)/drivers/gpu/drm/amd/amdgpu/amdgpu.ko \
|
FILES:=$(LINUX_DIR)/drivers/gpu/drm/amd/amdgpu/amdgpu.ko \
|
||||||
$(LINUX_DIR)/drivers/gpu/drm/scheduler/gpu-sched.ko
|
$(LINUX_DIR)/drivers/gpu/drm/scheduler/gpu-sched.ko \
|
||||||
|
$(LINUX_DIR)/drivers/gpu/drm/amd/amdxcp/amdxcp.ko@ge6.5
|
||||||
AUTOLOAD:=$(call AutoProbe,amdgpu)
|
AUTOLOAD:=$(call AutoProbe,amdgpu)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -557,9 +562,10 @@ $(eval $(call KernelPackage,video-pwc))
|
|||||||
define KernelPackage/video-uvc
|
define KernelPackage/video-uvc
|
||||||
TITLE:=USB Video Class (UVC) support
|
TITLE:=USB Video Class (UVC) support
|
||||||
DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-video-videobuf2 +kmod-input-core
|
DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-video-videobuf2 +kmod-input-core
|
||||||
KCONFIG:= CONFIG_USB_VIDEO_CLASS
|
KCONFIG:= CONFIG_USB_VIDEO_CLASS CONFIG_UVC_COMMON@ge6.3
|
||||||
FILES:=$(LINUX_DIR)/drivers/media/$(V4L2_USB_DIR)/uvc/uvcvideo.ko
|
FILES:=$(LINUX_DIR)/drivers/media/$(V4L2_USB_DIR)/uvc/uvcvideo.ko \
|
||||||
AUTOLOAD:=$(call AutoProbe,uvcvideo)
|
$(LINUX_DIR)/drivers/media/common/uvc.ko@ge6.3
|
||||||
|
AUTOLOAD:=$(call AutoProbe,uvc@ge6.3 uvcvideo)
|
||||||
$(call AddDepends/camera)
|
$(call AddDepends/camera)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user