x86: video: add amdgpu DRM kernel package

build amdgpu kernel as modules so it will find the firmware files

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
openwrt-19.07
Lucian Cristian 2019-02-06 13:38:05 +02:00 committed by Hauke Mehrtens
parent cb3798cf3f
commit 2f239c02a0
1 changed files with 22 additions and 0 deletions

View File

@ -178,6 +178,28 @@ endef
$(eval $(call KernelPackage,drm)) $(eval $(call KernelPackage,drm))
define KernelPackage/drm-amdgpu
SUBMENU:=$(VIDEO_MENU)
TITLE:=AMDGPU DRM support
DEPENDS:=@DISPLAY_SUPPORT +kmod-drm +kmod-i2c-algo-bit +amdgpu-firmware
KCONFIG:=CONFIG_DRM_AMDGPU \
CONFIG_DRM_AMDGPU_SI=y \
CONFIG_DRM_AMDGPU_CIK=y \
CONFIG_DRM_AMD_DC=y \
CONFIG_DEBUG_KERNEL_DC=n
FILES:=$(LINUX_DIR)/drivers/gpu/drm/amd/amdgpu/amdgpu.ko \
$(LINUX_DIR)/drivers/gpu/drm/scheduler/gpu-sched.ko@ge4.15 \
$(LINUX_DIR)/drivers/gpu/drm/amd/lib/chash.ko@ge4.15
AUTOLOAD:=$(call AutoProbe,amdgpu)
endef
define KernelPackage/drm-amdgpu/description
Direct Rendering Manager (DRM) support for AMDGPU Cards
endef
$(eval $(call KernelPackage,drm-amdgpu))
define KernelPackage/drm-imx define KernelPackage/drm-imx
SUBMENU:=$(VIDEO_MENU) SUBMENU:=$(VIDEO_MENU)
TITLE:=Freescale i.MX DRM support TITLE:=Freescale i.MX DRM support