Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRM drivers tracking 6.1-lts Linux version. Big thanks to dumbbell@ and wulf@ for working on this update. Sponsored by: Beckhoff Automation GmbH & Co. KG
- Loading branch information
Showing
9 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
PORTNAME= drm-61-kmod | ||
PORTVERSION= ${DRM_KMOD_DISTVERSION} | ||
CATEGORIES= graphics kld | ||
|
||
.include "Makefile.version" | ||
|
||
MAINTAINER= x11@FreeBSD.org | ||
COMMENT= DRM drivers modules | ||
WWW= https://github.com/freebsd/drm-kmod/ | ||
|
||
LICENSE= BSD2CLAUSE MIT GPLv2 | ||
LICENSE_COMB= multi | ||
|
||
ONLY_FOR_ARCHS= amd64 powerpc64 powerpc64le | ||
ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 and powerpc64 | ||
|
||
CONFLICTS_INSTALL= drm-510-kmod \ | ||
drm-61-kmod | ||
|
||
USES= kmod uidfix compiler:c++11-lang | ||
|
||
USE_GITHUB= yes | ||
GH_ACCOUNT= freebsd | ||
GH_PROJECT= drm-kmod | ||
GH_TAGNAME= ${DRM_KMOD_GH_TAGNAME} | ||
|
||
.include <bsd.port.options.mk> | ||
|
||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500008 | ||
IGNORE= not supported on older than 15.0, 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+= I915="" | ||
.elif ${ARCH} == "i386" | ||
PLIST_SUB+= AMDGPU="@comment " | ||
PLIST_SUB+= I915="" | ||
.elif ${ARCH} == "aarch64" || ${ARCH:Mpowerpc*} | ||
PLIST_SUB+= AMDGPU="" | ||
PLIST_SUB+= I915="@comment " | ||
.else | ||
PLIST_SUB+= AMDGPU="@comment " | ||
PLIST_SUB+= I915="@comment " | ||
.endif | ||
|
||
MAKE_ENV+= MAKEOBJDIRPREFIX=${WRKSRC}/obj | ||
|
||
pre-build: | ||
${MKDIR} ${WRKSRC}/obj | ||
(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj) | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# drm-kmod common version definition | ||
# | ||
# This will be included from consumers such as nvidia-drm | ||
DRM_KMOD_DISTVERSION= 6.1.69 | ||
DRM_KMOD_GH_TAGNAME= drm_v6.1.69 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
TIMESTAMP = 1704471820 | ||
SHA256 (freebsd-drm-kmod-6.1.69-drm_v6.1.69_GH0.tar.gz) = 2327b60eb403f07c9782894cff70de04920cb14a70efc565d68d4b5ad12bc5cb | ||
SIZE (freebsd-drm-kmod-6.1.69-drm_v6.1.69_GH0.tar.gz) = 37088102 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
amdgpu, i915, and radeon DRM drivers modules. | ||
Currently corresponding to Linux 5.15 DRM. | ||
This version is for FreeBSD 14.0 and above. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ type: install | ||
message: <<EOM | ||
The drm-515-kmod port can be enabled for amdgpu (for AMD | ||
GPUs starting with the HD7000 series / Tahiti) or i915kms (for Intel | ||
APUs starting with HD3000 / Sandy Bridge) through kld_list in | ||
/etc/rc.conf. radeonkms for older AMD GPUs can be loaded and there are | ||
some positive reports if EFI boot is NOT enabled. | ||
|
||
For amdgpu: kld_list="amdgpu" | ||
For Intel: kld_list="i915kms" | ||
For radeonkms: kld_list="radeonkms" | ||
|
||
Please ensure that all users requiring graphics are members of the | ||
"video" group. | ||
EOM | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/%%KMODDIR%%/dmabuf.ko | ||
/%%KMODDIR%%/linuxkpi_video.ko | ||
%%AMDGPU%%/%%KMODDIR%%/amdgpu.ko | ||
/%%KMODDIR%%/drm.ko | ||
%%I915%%/%%KMODDIR%%/i915kms.ko | ||
/%%KMODDIR%%/radeonkms.ko | ||
/%%KMODDIR%%/ttm.ko |