diff --git a/graphics/drm-510-kmod/Makefile b/graphics/drm-510-kmod/Makefile index c772517a383e..02fa8713eed5 100644 --- a/graphics/drm-510-kmod/Makefile +++ b/graphics/drm-510-kmod/Makefile @@ -1,54 +1,54 @@ PORTNAME= drm-510-kmod PORTVERSION= 5.10.163 -PORTREVISION= 2 +PORTREVISION= 3 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-515-kmod USES= kmod uidfix compiler:c++11-lang USE_GITHUB= yes GH_ACCOUNT= freebsd GH_PROJECT= drm-kmod GH_TAGNAME= drm_v5.10.163_2 .include .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1301000 IGNORE= not supported on older than 13.1, 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 diff --git a/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c b/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c new file mode 100644 index 000000000000..389f8ebfeed0 --- /dev/null +++ b/graphics/drm-510-kmod/files/patch-drivers_gpu_drm_drm__os__freebsd.c @@ -0,0 +1,18 @@ +--- drivers/gpu/drm/drm_os_freebsd.c.bak 2022-11-05 15:37:52.826643000 -0400 ++++ drivers/gpu/drm/drm_os_freebsd.c 2022-11-05 15:38:25.740620000 -0400 +@@ -202,11 +202,15 @@ + #if __FreeBSD_version >= 1301505 + #if __FreeBSD_version >= 1400058 + DRIVER_MODULE(iicbus, drmn, iicbus_driver, NULL, NULL); ++#if defined(__amd64__) || defined(__aarch64__) || defined(__i386__) + DRIVER_MODULE(acpi_iicbus, drmn, acpi_iicbus_driver, NULL, NULL); ++#endif + #else + DRIVER_MODULE(iicbus, drmn, iicbus_driver, iicbus_devclass, NULL, NULL); ++#if defined(__amd64__) || defined(__aarch64__) || defined(__i386__) + DRIVER_MODULE(acpi_iicbus, drmn, acpi_iicbus_driver, iicbus_devclass, NULL, + NULL); ++#endif + #endif + MODULE_DEPEND(drmn, iicbus, IICBUS_MINVER, IICBUS_PREFVER, IICBUS_MAXVER); + MODULE_DEPEND(drmn, iic, 1, 1, 1);