From 181b4de02dfb2abde70b658f49d5a131c6daf960 Mon Sep 17 00:00:00 2001 From: lean Date: Sat, 12 Feb 2022 20:38:22 +0800 Subject: [PATCH] x86: add support for NVIDIA Cuda Video Cards DRM --- package/kernel/linux/modules/video.mk | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk index 348b6f24e..def394a7d 100644 --- a/package/kernel/linux/modules/video.mk +++ b/package/kernel/linux/modules/video.mk @@ -406,6 +406,27 @@ endef $(eval $(call KernelPackage,drm-radeon)) +define KernelPackage/drm-nouveau + SUBMENU:=$(VIDEO_MENU) + TITLE:=nouveau DRM support + DEPENDS:=@TARGET_x86 @DISPLAY_SUPPORT +kmod-drm-kms-helper + KCONFIG:=CONFIG_DRM_NOUVEAU \ + NOUVEAU_DEBUG=5 \ + NOUVEAU_DEBUG_DEFAULT=3 \ + NOUVEAU_DEBUG_MMU=n \ + DRM_NOUVEAU_BACKLIGHT=y + FILES:=\ + $(LINUX_DIR)/drivers/gpu/drm/nouveau/nouveau.ko \ + $(LINUX_DIR)/drivers/platform/x86/wmi.ko + AUTOLOAD:=$(call AutoProbe,nouveau) +endef + +define KernelPackage/drm-nouveau/description + Direct Rendering Manager (DRM) support for NVIDIA Cuda Video Cards +endef + +$(eval $(call KernelPackage,drm-nouveau)) + # # Video Capture #