mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 19:36:28 -04:00
graphics/drm-515-kmod: Add new port
This port track drm code from Linux 5.15.25 Only FreeBSD-CURRENT is supported for now. Sponsored by: Beckhoff Automation GmbH & Co. KG
This commit is contained in:
parent
507c3b3b70
commit
e86cd62dba
7 changed files with 86 additions and 1 deletions
|
@ -145,6 +145,7 @@
|
|||
SUBDIR += drawing
|
||||
SUBDIR += drawpile
|
||||
SUBDIR += drm-510-kmod
|
||||
SUBDIR += drm-515-kmod
|
||||
SUBDIR += drm-fbsd12.0-kmod
|
||||
SUBDIR += drm-kmod
|
||||
SUBDIR += drm_info
|
||||
|
|
|
@ -13,7 +13,7 @@ LICENSE_COMB= multi
|
|||
ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le
|
||||
ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64, i386, aarch64, and powerpc64
|
||||
|
||||
CONFLICTS_INSTALL= drm-devel-kmod drm-current-kmod drm-54-kmod
|
||||
CONFLICTS_INSTALL= drm-515-kmod
|
||||
|
||||
USES= kmod uidfix compiler:c++11-lang
|
||||
|
||||
|
|
53
graphics/drm-515-kmod/Makefile
Normal file
53
graphics/drm-515-kmod/Makefile
Normal file
|
@ -0,0 +1,53 @@
|
|||
PORTNAME= drm-515-kmod
|
||||
PORTVERSION= 5.15.25
|
||||
CATEGORIES= graphics kld
|
||||
|
||||
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= aarch64 amd64 i386 powerpc64 powerpc64le
|
||||
ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64, i386, aarch64, and powerpc64
|
||||
|
||||
CONFLICTS_INSTALL= drm-510-kmod
|
||||
|
||||
USES= kmod uidfix compiler:c++11-lang
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= freebsd
|
||||
GH_PROJECT= drm-kmod
|
||||
GH_TAGNAME= drm_v5.15.25
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400081
|
||||
IGNORE= not supported on older than 14.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>
|
3
graphics/drm-515-kmod/distinfo
Normal file
3
graphics/drm-515-kmod/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1676642447
|
||||
SHA256 (freebsd-drm-kmod-5.15.25-drm_v5.15.25_GH0.tar.gz) = 50c36652a8c6b60799c2499e12eec6efc01b02459ae07e4d177580bfb56d63ed
|
||||
SIZE (freebsd-drm-kmod-5.15.25-drm_v5.15.25_GH0.tar.gz) = 26082555
|
3
graphics/drm-515-kmod/pkg-descr
Normal file
3
graphics/drm-515-kmod/pkg-descr
Normal file
|
@ -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.
|
18
graphics/drm-515-kmod/pkg-message
Normal file
18
graphics/drm-515-kmod/pkg-message
Normal file
|
@ -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
|
||||
}
|
||||
]
|
7
graphics/drm-515-kmod/pkg-plist
Normal file
7
graphics/drm-515-kmod/pkg-plist
Normal file
|
@ -0,0 +1,7 @@
|
|||
/%%KMODDIR%%/dmabuf.ko
|
||||
%%AMDGPU%%/%%KMODDIR%%/amdgpu.ko
|
||||
/%%KMODDIR%%/drm.ko
|
||||
%%I915%%/%%KMODDIR%%/i915kms.ko
|
||||
/%%KMODDIR%%/linuxkpi_gplv2.ko
|
||||
/%%KMODDIR%%/radeonkms.ko
|
||||
/%%KMODDIR%%/ttm.ko
|
Loading…
Add table
Reference in a new issue