Date: Thu, 11 Jun 2026 20:07:30 +0000 From: Jean-=?utf-8?Q?S=C3=A9bast?==?utf-8?Q?ien P=C3=A9?=dron <dumbbell@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org Cc: Siva Mahadevan <siva@FreeBSD.org> Subject: git: d856d167e806 - 2026Q2 - graphics/drm-612-kmod: new port Message-ID: <6a2b1582.1f71e.2746190d@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch 2026Q2 has been updated by dumbbell: URL: https://cgit.FreeBSD.org/ports/commit/?id=d856d167e806e2260a1a885a6362a9326430cb42 commit d856d167e806e2260a1a885a6362a9326430cb42 Author: Siva Mahadevan <siva@FreeBSD.org> AuthorDate: 2026-05-22 23:24:12 +0000 Commit: Jean-Sébastien Pédron <dumbbell@FreeBSD.org> CommitDate: 2026-06-11 20:06:31 +0000 graphics/drm-612-kmod: new port Reviewed by: dumbbell, emaste Approved by: lwhsu (mentor, implicitly) Differential Revision: https://reviews.freebsd.org/D56888 (cherry picked from commit 9c021c6bac866056943a39062b09d39a177c3021) --- graphics/Makefile | 1 + graphics/drm-515-kmod/Makefile | 8 +++-- graphics/drm-61-kmod/Makefile | 8 +++-- graphics/drm-612-kmod/Makefile | 48 ++++++++++++++++++++++++++++++ graphics/drm-612-kmod/Makefile.version | 5 ++++ graphics/drm-612-kmod/distinfo | 3 ++ graphics/drm-612-kmod/files/pkg-message.in | 22 ++++++++++++++ graphics/drm-612-kmod/pkg-descr | 4 +++ graphics/drm-612-kmod/pkg-plist | 6 ++++ graphics/drm-66-kmod/Makefile | 8 +++-- graphics/drm-kmod/Makefile | 7 +++-- graphics/drm-latest-kmod/Makefile | 6 ++-- 12 files changed, 113 insertions(+), 13 deletions(-) diff --git a/graphics/Makefile b/graphics/Makefile index f92a03ca2f40..664f92f7d490 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -159,6 +159,7 @@ SUBDIR += drm-515-kmod SUBDIR += drm-61-kmod SUBDIR += drm-66-kmod + SUBDIR += drm-612-kmod SUBDIR += drm-kmod SUBDIR += drm-latest-kmod SUBDIR += drm_info diff --git a/graphics/drm-515-kmod/Makefile b/graphics/drm-515-kmod/Makefile index 245598a08d04..9dbba3ebdf19 100644 --- a/graphics/drm-515-kmod/Makefile +++ b/graphics/drm-515-kmod/Makefile @@ -6,7 +6,7 @@ CATEGORIES= graphics kld .include "Makefile.version" MAINTAINER= x11@FreeBSD.org -COMMENT= Direct Rendering Manager GPU drivers +COMMENT= Direct Rendering Manager (DRM) GPU drivers WWW= https://github.com/freebsd/drm-kmod/ LICENSE= BSD2CLAUSE MIT GPLv2 @@ -15,9 +15,11 @@ 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 \ +CONFLICTS_INSTALL= drm-latest-kmod \ + drm-510-kmod \ drm-61-kmod \ - drm-66-kmod + drm-66-kmod \ + drm-612-kmod USES= kmod uidfix compiler:c++11-lang diff --git a/graphics/drm-61-kmod/Makefile b/graphics/drm-61-kmod/Makefile index 26bc501b55bb..62d034e7fc62 100644 --- a/graphics/drm-61-kmod/Makefile +++ b/graphics/drm-61-kmod/Makefile @@ -6,7 +6,7 @@ CATEGORIES= graphics kld .include "Makefile.version" MAINTAINER= x11@FreeBSD.org -COMMENT= Direct Rendering Manager GPU drivers +COMMENT= Direct Rendering Manager (DRM) GPU drivers WWW= https://github.com/freebsd/drm-kmod/ LICENSE= BSD2CLAUSE MIT GPLv2 @@ -15,9 +15,11 @@ 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 \ +CONFLICTS_INSTALL= drm-latest-kmod \ + drm-510-kmod \ drm-515-kmod \ - drm-66-kmod + drm-66-kmod \ + drm-612-kmod USES= kmod uidfix compiler:c++11-lang diff --git a/graphics/drm-612-kmod/Makefile b/graphics/drm-612-kmod/Makefile new file mode 100644 index 000000000000..c6dc38595bc1 --- /dev/null +++ b/graphics/drm-612-kmod/Makefile @@ -0,0 +1,48 @@ +PORTNAME= drm-612-kmod +DISTVERSION= ${DRM_KMOD_DISTVERSION} +CATEGORIES= graphics kld + +.include "Makefile.version" + +MAINTAINER= x11@FreeBSD.org +COMMENT= Direct Rendering Manager (DRM) GPU drivers +WWW= https://github.com/freebsd/drm-kmod/ + +LICENSE= BSD2CLAUSE MIT GPLv2 +LICENSE_COMB= multi + +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 + +CONFLICTS_INSTALL= drm-latest-kmod \ + drm-515-kmod \ + drm-61-kmod \ + drm-66-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> + +SUB_FILES= pkg-message +SUB_LIST= PORTNAME=${PORTNAME} OPSYS=${OPSYS} OSREL=${OSREL} + +.if ${OPSYS} != FreeBSD +IGNORE= not supported on anything but FreeBSD (missing linuxkpi functionality) +.elif ${OSVERSION} < 1500509 +IGNORE= not supported on FreeBSD < 1500509, no kernel support +.elif 1600000 <= ${OSVERSION} && ${OSVERSION} < 1600018 +IGNORE= not supported on FreeBSD 16 before 1600018, no kernel support +.endif + +MAKE_ENV+= MAKEOBJDIRPREFIX=${WRKSRC}/obj + +pre-build: + ${MKDIR} ${WRKSRC}/obj + (cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} obj) + +.include <bsd.port.mk> diff --git a/graphics/drm-612-kmod/Makefile.version b/graphics/drm-612-kmod/Makefile.version new file mode 100644 index 000000000000..c2b74d18f6a7 --- /dev/null +++ b/graphics/drm-612-kmod/Makefile.version @@ -0,0 +1,5 @@ +# drm-kmod common version definition +# +# This will be included from consumers such as nvidia-drm +DRM_KMOD_DISTVERSION= 6.12.85 +DRM_KMOD_GH_TAGNAME= drm_v6.12.85_1 diff --git a/graphics/drm-612-kmod/distinfo b/graphics/drm-612-kmod/distinfo new file mode 100644 index 000000000000..fcd33beba93e --- /dev/null +++ b/graphics/drm-612-kmod/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1778246100 +SHA256 (freebsd-drm-kmod-6.12.85-drm_v6.12.85_1_GH0.tar.gz) = 418b81a5d83f269ecb6ac3cdab663684614df07ce87d65ebdab74889c0d6be9e +SIZE (freebsd-drm-kmod-6.12.85-drm_v6.12.85_1_GH0.tar.gz) = 44075974 diff --git a/graphics/drm-612-kmod/files/pkg-message.in b/graphics/drm-612-kmod/files/pkg-message.in new file mode 100644 index 000000000000..95465e0ab188 --- /dev/null +++ b/graphics/drm-612-kmod/files/pkg-message.in @@ -0,0 +1,22 @@ +[ +{ type: install + message: <<EOM +The %%PORTNAME%% 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. + +Please note that this package was built for %%OPSYS%% %%OSREL%%. +If this is not your current running version, please rebuild +it from ports to prevent panics when loading the module. +EOM +} +] diff --git a/graphics/drm-612-kmod/pkg-descr b/graphics/drm-612-kmod/pkg-descr new file mode 100644 index 000000000000..37c8f1eb6e1a --- /dev/null +++ b/graphics/drm-612-kmod/pkg-descr @@ -0,0 +1,4 @@ +amdgpu, i915, and radeon DRM drivers modules. +Currently corresponding to Linux 6.12 DRM. +This version is for FreeBSD 15 1500509 +and above, or FreeBSD 16 1600018 and above. diff --git a/graphics/drm-612-kmod/pkg-plist b/graphics/drm-612-kmod/pkg-plist new file mode 100644 index 000000000000..79c8a2a04c13 --- /dev/null +++ b/graphics/drm-612-kmod/pkg-plist @@ -0,0 +1,6 @@ +/%%KMODDIR%%/dmabuf.ko +/%%KMODDIR%%/amdgpu.ko +/%%KMODDIR%%/drm.ko +/%%KMODDIR%%/i915kms.ko +/%%KMODDIR%%/radeonkms.ko +/%%KMODDIR%%/ttm.ko diff --git a/graphics/drm-66-kmod/Makefile b/graphics/drm-66-kmod/Makefile index 17fcea735cd2..e991b1171147 100644 --- a/graphics/drm-66-kmod/Makefile +++ b/graphics/drm-66-kmod/Makefile @@ -6,7 +6,7 @@ CATEGORIES= graphics kld .include "Makefile.version" MAINTAINER= x11@FreeBSD.org -COMMENT= Direct Rendering Manager GPU drivers +COMMENT= Direct Rendering Manager (DRM) GPU drivers WWW= https://github.com/freebsd/drm-kmod/ LICENSE= BSD2CLAUSE MIT GPLv2 @@ -15,9 +15,11 @@ LICENSE_COMB= multi ONLY_FOR_ARCHS= amd64 ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 -CONFLICTS_INSTALL= drm-510-kmod \ +CONFLICTS_INSTALL= drm-latest-kmod \ + drm-510-kmod \ drm-515-kmod \ - drm-61-kmod + drm-61-kmod \ + drm-612-kmod USES= kmod uidfix compiler:c++11-lang diff --git a/graphics/drm-kmod/Makefile b/graphics/drm-kmod/Makefile index 1b23b0ceae03..edbd15243679 100644 --- a/graphics/drm-kmod/Makefile +++ b/graphics/drm-kmod/Makefile @@ -1,9 +1,9 @@ PORTNAME= drm-kmod -PORTVERSION= 20250428 +PORTVERSION= 20260508 CATEGORIES= graphics MAINTAINER= x11@FreeBSD.org -COMMENT= Direct Rendering Manager GPU drivers metaport +COMMENT= Direct Rendering Manager (DRM) GPU drivers metaport WWW= https://github.com/freebsd/drm-kmod USES= metaport @@ -21,6 +21,9 @@ _DRM_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le . elif ${OSVERSION} >= 1400097 && (${ARCH} == i386 || ${ARCH} == aarch64) RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-510-kmod _DRM_ARCHS= aarch64 i386 +. elif ${OSVERSION} >= 1500509 && ${ARCH} == amd64 +RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-612-kmod +_DRM_ARCHS= amd64 . elif ${OSVERSION} >= 1500031 && ${ARCH} == amd64 RUN_DEPENDS+= ${KMODDIR}/drm.ko:graphics/drm-66-kmod _DRM_ARCHS= amd64 diff --git a/graphics/drm-latest-kmod/Makefile b/graphics/drm-latest-kmod/Makefile index 1a41b3fa517d..cebbcd2d9801 100644 --- a/graphics/drm-latest-kmod/Makefile +++ b/graphics/drm-latest-kmod/Makefile @@ -6,7 +6,7 @@ CATEGORIES= graphics kld .include "Makefile.version" MAINTAINER= x11@FreeBSD.org -COMMENT= DRM drivers modules +COMMENT= Direct Rendering Manager (DRM) GPU drivers WWW= https://github.com/freebsd/drm-kmod/ LICENSE= BSD2CLAUSE MIT GPLv2 @@ -17,7 +17,9 @@ ONLY_FOR_ARCHS_REASON= the new KMS components are only supported on amd64 CONFLICTS_INSTALL= drm-510-kmod \ drm-515-kmod \ - drm-61-kmod + drm-61-kmod \ + drm-66-kmod \ + drm-612-kmod USES= kmod uidfix compiler:c++11-langhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a2b1582.1f71e.2746190d>
