MFH: r562318 r562380 r562485

graphics/drm-fbsd13-kmod: Add new port

This is the drm port for FreeBSD 13.
Now that stable/13 is branched we can create it.

main (14-CURRENT) users still need to use either drm-current-kmod or
drm-devel-kmod

Fix PKGBASE collision

graphics/drm-fbsd13-kmod: Update comment

This is only supported on FreeBSD 13.

Reported by:	rene
This commit is contained in:
Emmanuel Vadot 2021-01-24 16:11:39 +00:00
parent 15aab9e21b
commit a6d3007d77
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2021Q1/; revision=562487
6 changed files with 2376 additions and 0 deletions

View File

@ -140,6 +140,7 @@
SUBDIR += drm-devel-kmod
SUBDIR += drm-fbsd11.2-kmod
SUBDIR += drm-fbsd12.0-kmod
SUBDIR += drm-fbsd13-kmod
SUBDIR += drm-kmod
SUBDIR += drm_info
SUBDIR += dspdfviewer

View File

@ -0,0 +1,81 @@
# Created by: Johannes Dieterich <jmd@FreeBSD.org>
# $FreeBSD$
PORTNAME= drm-fbsd13-kmod
PORTVERSION= 5.4.62.g20210122
CATEGORIES= graphics kld
MAINTAINER= x11@FreeBSD.org
COMMENT= DRM modules for the linuxkpi-based KMS components
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
RUN_DEPENDS= gpu-firmware-kmod>=g20200914:graphics/gpu-firmware-kmod
CONFLICTS_INSTALL= drm-current-kmod \
drm-devel-kmod \
drm-fbsd11.2-kmod \
drm-fbsd12.0-kmod
OPTIONS_DEFINE= DEBUG SOURCE
OPTIONS_DEFAULT= SOURCE
SOURCE_DESC= Install kernel module sources
OPTIONS_SUB= yes
USES= kmod uidfix compiler:c++11-lang
USE_GITHUB= yes
GH_ACCOUNT= freebsd
GH_PROJECT= drm-kmod
GH_TAGNAME= drm_v5.4.62_10
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && (${OSVERSION} < 1300136 || ${OSVERSION} >= 1400000)
IGNORE= only supported on FreeBSD 13.
.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
KMODSRC= ${STAGEDIR}${PREFIX}/sys/modules/${PORTNAME}
SRCDIRS= amd drivers drm i915 include linuxkpi radeon ttm
PLIST_SUB+= KMODSRC="sys/modules/${PORTNAME}"
MAKE_ENV+= MAKEOBJDIRPREFIX=${WRKSRC}/obj
pre-build:
${MKDIR} ${WRKSRC}/obj
(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj)
post-install-SOURCE-on:
${MKDIR} ${KMODSRC}
${INSTALL_DATA} ${WRKSRC}/Makefile ${KMODSRC}
${INSTALL_DATA} ${WRKSRC}/kconfig.mk ${KMODSRC}
.for dir in ${SRCDIRS}
cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${KMODSRC}
.endfor
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1611331421
SHA256 (freebsd-drm-kmod-5.4.62.g20210122-drm_v5.4.62_10_GH0.tar.gz) = 28996612d6006e439a65be060316445108775679fac8e1ab37e083b9aa0050b8
SIZE (freebsd-drm-kmod-5.4.62.g20210122-drm_v5.4.62_10_GH0.tar.gz) = 18824383

View File

@ -0,0 +1,6 @@
amdgpu, i915, and radeon DRM modules for the linuxkpi-based KMS components.
Currently corresponding to Linux 4.16 DRM.
This version is for FreeBSD CURRENT.
amdgpu and radeonkms are known to fail with EFI boot.
WWW: https://github.com/FreeBSDDesktop/kms-drm

View File

@ -0,0 +1,21 @@
[
{ type: install
message: <<EOM
The experimental drm-current-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 (similar to amdgpu).
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.
Older generations are supported by the legacy kms modules (radeonkms /
i915kms) in base or by installing graphics/drm-legacy-kmod.
EOM
}
]

File diff suppressed because it is too large Load Diff