aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-11-01 14:47:14 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2022-11-01 14:47:14 +0100
commit633f3e1118580db313faf93c67d5b89231687bc3 (patch)
treefe37fef8056b4d019f79ee3266e3f85d41bfb1c3 /package
parent75c576d4c4763785c665e3211b17868b3ed8e819 (diff)
downloadupstream-633f3e1118580db313faf93c67d5b89231687bc3.tar.gz
upstream-633f3e1118580db313faf93c67d5b89231687bc3.tar.bz2
upstream-633f3e1118580db313faf93c67d5b89231687bc3.zip
kernel: Add kmod-drm-ttm-helper
Add a package for drm_ttm_helper.ko. CONFIG_DRM_TTM_HELPER is compiled into the kernel on armvirt/64, x86/64, x86/generic and x86/legacy because also some DRM drivers are compiled into the kernel. On x86/geode it is not compiled into the kernel, but kmod-drm-amdgpu and kmod-drm-radeon depend on it. This fixes the x86/geode build. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/linux/modules/video.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index 258414df45..83f48ac849 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -256,6 +256,20 @@ endef
$(eval $(call KernelPackage,drm-ttm))
+
+define KernelPackage/drm-ttm-helper
+ SUBMENU:=$(VIDEO_MENU)
+ TITLE:=Helpers for ttm-based gem objects
+ HIDDEN:=1
+ DEPENDS:=@DISPLAY_SUPPORT +kmod-drm-ttm
+ KCONFIG:=CONFIG_DRM_TTM_HELPER
+ FILES:=$(LINUX_DIR)/drivers/gpu/drm/drm_ttm_helper.ko
+ AUTOLOAD:=$(call AutoProbe,drm_ttm_helper)
+endef
+
+$(eval $(call KernelPackage,drm-ttm-helper))
+
+
define KernelPackage/drm-kms-helper
SUBMENU:=$(VIDEO_MENU)
TITLE:=CRTC helpers for KMS drivers
@@ -278,7 +292,7 @@ define KernelPackage/drm-amdgpu
SUBMENU:=$(VIDEO_MENU)
TITLE:=AMDGPU DRM support
DEPENDS:=@TARGET_x86 @DISPLAY_SUPPORT +kmod-backlight +kmod-drm-ttm \
- +kmod-drm-kms-helper +kmod-i2c-algo-bit +amdgpu-firmware
+ +kmod-drm-ttm-helper +kmod-drm-kms-helper +kmod-i2c-algo-bit +amdgpu-firmware
KCONFIG:=CONFIG_DRM_AMDGPU \
CONFIG_DRM_AMDGPU_SI=y \
CONFIG_DRM_AMDGPU_CIK=y \
@@ -376,7 +390,7 @@ define KernelPackage/drm-radeon
SUBMENU:=$(VIDEO_MENU)
TITLE:=Radeon DRM support
DEPENDS:=@TARGET_x86 @DISPLAY_SUPPORT +kmod-backlight +kmod-drm-kms-helper \
- +kmod-drm-ttm +kmod-i2c-algo-bit +radeon-firmware
+ +kmod-drm-ttm +kmod-drm-ttm-helper +kmod-i2c-algo-bit +radeon-firmware
KCONFIG:=CONFIG_DRM_RADEON
FILES:=$(LINUX_DIR)/drivers/gpu/drm/radeon/radeon.ko
AUTOLOAD:=$(call AutoProbe,radeon)