git: b56921168ac7 - main - graphics/drm-kmod: Default to 5.15 for 14.0+

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Mon, 16 Oct 2023 14:27:57 UTC
The branch main has been updated by manu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b56921168ac7f5e1da4fdc1c0aea2b5b83e20f06

commit b56921168ac7f5e1da4fdc1c0aea2b5b83e20f06
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2023-10-16 14:26:56 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2023-10-16 14:26:56 +0000

    graphics/drm-kmod: Default to 5.15 for 14.0+
    
    Only for amd64 and powerpc, other arches are known to be broken in this version.
    
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
---
 graphics/drm-kmod/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/graphics/drm-kmod/Makefile b/graphics/drm-kmod/Makefile
index ab6ef0f1bbcc..9914b483c6fb 100644
--- a/graphics/drm-kmod/Makefile
+++ b/graphics/drm-kmod/Makefile
@@ -19,9 +19,15 @@ IGNORE=		not supported on anything but FreeBSD (missing linuxkpi functionality)
 .  if ${OSVERSION} < 1300000
 RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-fbsd12.0-kmod
 _DRM_ARCHS=	amd64 i386
-.  elif ${OSVERSION} >= 1301000
+.  elif ${OSVERSION} >= 1301000 && ${OSVERSION} < 1400097
 RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-510-kmod
 _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} >= 1400097
+RUN_DEPENDS+=	${KMODDIR}/drm.ko:graphics/drm-515-kmod
+_DRM_ARCHS=	amd64 powerpc64 powerpc64le
 .  else
 _DRM_ARCHS=
 .  endif