add graphics/drm-devel-kmod
Add graphics/drm-devel-kmod, development version of the lkpi based DRM graphics drivers. This version is experimental, and for recent CURRENT only. This version currently corresponds to Linux 5.0 DRM drivers, and should give better support for more recent Intel and AMD GPUs. Please note that this port is copied from drm-current-kmod, rather than resurrected from the old drm-devel-kmod port, that's because drm-current-kmod was created by copying the old drm-devel-kmod when that went to a more stable version. Big thank you to everyone who has worked on this, and johalun in particuar, who has done most of the heavy lifting. Approved by: jmd (maintainer, implicit) MFH: 2019Q2 (implicit, drm-drivers blanket) Sponsored by: B3 Init
This commit is contained in:
parent
1e7f493e96
commit
f6964e25c6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=502165
5 changed files with 100 additions and 0 deletions
64
graphics/drm-devel-kmod/Makefile
Normal file
64
graphics/drm-devel-kmod/Makefile
Normal file
|
@ -0,0 +1,64 @@
|
|||
# Created by: Johannes Dieterich <jmd@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= drm-devel-kmod
|
||||
PORTVERSION= 5.0.g20190520
|
||||
CATEGORIES= graphics kld
|
||||
|
||||
MAINTAINER= jmd@FreeBSD.org
|
||||
COMMENT= DRM modules for the linuxkpi-based KMS components (development version)
|
||||
|
||||
LICENSE= BSD2CLAUSE MIT GPLv2
|
||||
LICENSE_COMB= multi
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 i386 powerpc64
|
||||
ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64, i386 and powerpc64
|
||||
|
||||
RUN_DEPENDS= gpu-firmware-kmod>=g20180319:graphics/gpu-firmware-kmod
|
||||
|
||||
CONFLICTS_INSTALL= drm-current-kmod \
|
||||
drm-fbsd11.2-kmod \
|
||||
drm-fbsd12.0-kmod \
|
||||
drm-legacy-kmod
|
||||
|
||||
OPTIONS_DEFINE= DEBUG
|
||||
|
||||
USES= kmod uidfix compiler:c++11-lang
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= FreeBSDDesktop
|
||||
GH_PROJECT= kms-drm
|
||||
GH_TAGNAME= 4d4b2ba
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300029
|
||||
IGNORE= not supported on older CURRENT, no kernel support
|
||||
.endif
|
||||
.if ${OPSYS} != FreeBSD
|
||||
IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality)
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
PLIST_SUB+= AMDGPU=""
|
||||
PLIST_SUB+= AMDKFD=""
|
||||
PLIST_SUB+= I915=""
|
||||
PLIST_SUB+= VMWGFX=""
|
||||
.elif ${ARCH} == "i386"
|
||||
PLIST_SUB+= AMDGPU="@comment "
|
||||
PLIST_SUB+= AMDKFD="@comment "
|
||||
PLIST_SUB+= I915=""
|
||||
PLIST_SUB+= VMWGFX=""
|
||||
.elif ${ARCH} == "powerpc64"
|
||||
PLIST_SUB+= AMDGPU=""
|
||||
PLIST_SUB+= AMDKFD="@comment "
|
||||
PLIST_SUB+= I915="@comment "
|
||||
PLIST_SUB+= VMWGFX="@comment "
|
||||
.else
|
||||
PLIST_SUB+= AMDGPU="@comment "
|
||||
PLIST_SUB+= AMDKFD="@comment "
|
||||
PLIST_SUB+= I915="@comment "
|
||||
PLIST_SUB+= VMWGFX="@comment "
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
3
graphics/drm-devel-kmod/distinfo
Normal file
3
graphics/drm-devel-kmod/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1558375618
|
||||
SHA256 (FreeBSDDesktop-kms-drm-5.0.g20190520-4d4b2ba_GH0.tar.gz) = 5a2fad2bf1cecdcad30e7d58b5e9f5fc500b8f51a8966ffe35066246d47ff5fe
|
||||
SIZE (FreeBSDDesktop-kms-drm-5.0.g20190520-4d4b2ba_GH0.tar.gz) = 14590222
|
6
graphics/drm-devel-kmod/pkg-descr
Normal file
6
graphics/drm-devel-kmod/pkg-descr
Normal file
|
@ -0,0 +1,6 @@
|
|||
amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components.
|
||||
Currently corresponding to Linux 5.0 DRM.
|
||||
This version is the development version and only works on FreeBSD CURRENT.
|
||||
amdgpu and radeonkms are known to fail with EFI boot.
|
||||
|
||||
WWW: https://github.com/FreeBSDDesktop/kms-drm
|
19
graphics/drm-devel-kmod/pkg-message
Normal file
19
graphics/drm-devel-kmod/pkg-message
Normal file
|
@ -0,0 +1,19 @@
|
|||
The experimental drm-devel-kmod port can be enabled for amdgpu (for AMD
|
||||
GPUs starting with the HD7000 series / Tahiti), radeonkms for older AMD GPUs
|
||||
or i915kms (for Intel APUs starting with HD3000 / Sandy Bridge, possibly even
|
||||
older) through kld_list in /etc/rc.conf.
|
||||
|
||||
For amdgpu and radeonkms, there have been reports of issues when using UEFI
|
||||
firmware boot. You might need to disable the console by adding
|
||||
hw.syscons.disable=1 to /boot/loader.conf . Please note that this will
|
||||
disable the console until the graphics driver is loaded.
|
||||
|
||||
For amdgpu: kld_list="amdgpu"
|
||||
For Intel: kld_list="/boot/modules/i915kms.ko"
|
||||
For radeonkms: kld_list="/boot/modules/radeonkms.ko"
|
||||
|
||||
Please ensure that all users requiring graphics are members of the
|
||||
"video" group.
|
||||
|
||||
Older generations are supported by the legacy kms modules by installing
|
||||
graphics/drm-legacy-kmod.
|
8
graphics/drm-devel-kmod/pkg-plist
Normal file
8
graphics/drm-devel-kmod/pkg-plist
Normal file
|
@ -0,0 +1,8 @@
|
|||
%%AMDGPU%%/%%KMODDIR%%/amdgpu.ko
|
||||
%%AMDKFD%%/%%KMODDIR%%/amdkfd.ko
|
||||
/%%KMODDIR%%/drm.ko
|
||||
%%I915%%/%%KMODDIR%%/i915kms.ko
|
||||
/%%KMODDIR%%/linuxkpi_gplv2.ko
|
||||
/%%KMODDIR%%/radeonkms.ko
|
||||
/%%KMODDIR%%/ttm.ko
|
||||
%%VMWGFX%%/%%KMODDIR%%/vmwgfx.ko
|
Loading…
Reference in a new issue