kernel: modules: video: select drm-exec and drm-suballoc-helper for AMDGPU
authorRobert Marko <robimarko@gmail.com>
Fri, 15 Mar 2024 11:50:43 +0000 (12:50 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 15 Mar 2024 14:25:03 +0000 (15:25 +0100)
drm-amdgpu and drm-radeon require drm-exec and/or drm-suballoc-helper in
6.6, so since we have them packaged separately include them when required.

Fixes: 5b08b5600720 ("kernel: modules: video: adapt for kernel 6.6")
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/linux/modules/video.mk

index 1e12ffbb4081bda2d60a31cc5601a7bbeeca6d0b..16c4f51f5b1c375dd8efc5e163ca58babe20efcd 100644 (file)
@@ -374,7 +374,8 @@ define KernelPackage/drm-amdgpu
   TITLE:=AMDGPU DRM support
   DEPENDS:=@TARGET_x86 @DISPLAY_SUPPORT +kmod-backlight +kmod-drm-ttm \
        +kmod-drm-ttm-helper +kmod-drm-kms-helper +kmod-i2c-algo-bit +amdgpu-firmware \
-       +kmod-drm-display-helper +kmod-drm-buddy +kmod-acpi-video
+       +kmod-drm-display-helper +kmod-drm-buddy +kmod-acpi-video \
+       +LINUX_6_6:kmod-drm-exec +LINUX_6_6:kmod-drm-suballoc-helper
   KCONFIG:=CONFIG_DRM_AMDGPU \
        CONFIG_DRM_AMDGPU_SI=y \
        CONFIG_DRM_AMDGPU_CIK=y \
@@ -475,7 +476,7 @@ define KernelPackage/drm-radeon
   TITLE:=Radeon DRM support
   DEPENDS:=@TARGET_x86 @DISPLAY_SUPPORT +kmod-backlight +kmod-drm-kms-helper \
        +kmod-drm-ttm +kmod-drm-ttm-helper +kmod-i2c-algo-bit +radeon-firmware \
-       +kmod-drm-display-helper +kmod-acpi-video
+       +kmod-drm-display-helper +kmod-acpi-video +LINUX_6_6:kmod-drm-suballoc-helper
   KCONFIG:=CONFIG_DRM_RADEON
   FILES:=$(LINUX_DIR)/drivers/gpu/drm/radeon/radeon.ko
   AUTOLOAD:=$(call AutoProbe,radeon)