Date: Sun, 20 Aug 2023 19:57:16 +0200 From: Sergio Carlavilla <carlavilla@freebsd.org> To: Gleb Popov <arrowd@freebsd.org> Cc: dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org, ports-committers@freebsd.org Subject: Re: git: 4754e9fd33c4 - main - graphics/nvidia-drm-[510,515]-kmod: Add the port. Message-ID: <CAFwocyM6Pd9xRM_UZR9o8a843=Rpx6ZhwfP1jg%2BPm%2By0a1NAZw@mail.gmail.com> In-Reply-To: <202308201754.37KHsQnL076373@gitrepo.freebsd.org> References: <202308201754.37KHsQnL076373@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a932c006035e7e25 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 20 Aug 2023 at 19:54, Gleb Popov <arrowd@freebsd.org> wrote: > The branch main has been updated by arrowd: > > URL: > https://cgit.FreeBSD.org/ports/commit/?id=3D4754e9fd33c4fae0359a272d72d9a= a7fe75c7a82 > > commit 4754e9fd33c4fae0359a272d72d9aa7fe75c7a82 > Author: Austin Shafer <ashafer@badland.io> > AuthorDate: 2023-08-18 14:31:22 +0000 > Commit: Gleb Popov <arrowd@FreeBSD.org> > CommitDate: 2023-08-20 17:54:07 +0000 > > graphics/nvidia-drm-[510,515]-kmod: Add the port. > > This port provides the nvidia-drm.ko kernel module, as ported here: > https://github.com/amshafer/nvidia-driver > > This module implements the DRM API, which is commonly used for PRIME > and > Wayland setups. > > Differential Revision: https://reviews.freebsd.org/D41497 > > Reviewed by: arrowd > --- > graphics/Makefile | 3 ++ > graphics/nvidia-drm-510-kmod/Makefile | 10 +++++++ > graphics/nvidia-drm-510-kmod/distinfo | 5 ++++ > .../files/20-nvidia-drm-outputclass.conf.in | 8 ++++++ > graphics/nvidia-drm-510-kmod/pkg-descr | 3 ++ > graphics/nvidia-drm-515-kmod/Makefile | 10 +++++++ > graphics/nvidia-drm-515-kmod/distinfo | 5 ++++ > .../files/20-nvidia-drm-outputclass.conf.in | 8 ++++++ > graphics/nvidia-drm-515-kmod/pkg-descr | 3 ++ > graphics/nvidia-drm-kmod/Makefile | 25 ++++++++++++++++= + > graphics/nvidia-drm-kmod/Makefile.common | 32 > ++++++++++++++++++++++ > graphics/nvidia-drm-kmod/pkg-descr | 1 + > 12 files changed, 113 insertions(+) > > diff --git a/graphics/Makefile b/graphics/Makefile > index 8a01b3895276..c1910b63b806 100644 > --- a/graphics/Makefile > +++ b/graphics/Makefile > @@ -593,6 +593,9 @@ > SUBDIR +=3D npretty > SUBDIR +=3D nsxiv > SUBDIR +=3D nurbs++ > + SUBDIR +=3D nvidia-drm-510-kmod > + SUBDIR +=3D nvidia-drm-515-kmod > + SUBDIR +=3D nvidia-drm-kmod > SUBDIR +=3D nvidia-texture-tools > SUBDIR +=3D ocaml-cairo > SUBDIR +=3D ocaml-images > diff --git a/graphics/nvidia-drm-510-kmod/Makefile > b/graphics/nvidia-drm-510-kmod/Makefile > new file mode 100644 > index 000000000000..13b2c26c6c3f > --- /dev/null > +++ b/graphics/nvidia-drm-510-kmod/Makefile > @@ -0,0 +1,10 @@ > +PORTNAME=3D nvidia-drm-510-kmod > +PORTVERSION=3D ${NVIDIA_DISTVERSION} > +CATEGORIES=3D graphics > + > +RUN_DEPENDS+=3D ${KMODDIR}/drm.ko:graphics/drm-510-kmod > + > +.include "${.CURDIR}/../drm-510-kmod/Makefile.version" > +.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common" > + > +.include <bsd.port.mk> > diff --git a/graphics/nvidia-drm-510-kmod/distinfo > b/graphics/nvidia-drm-510-kmod/distinfo > new file mode 100644 > index 000000000000..3b60248b1ff9 > --- /dev/null > +++ b/graphics/nvidia-drm-510-kmod/distinfo > @@ -0,0 +1,5 @@ > +TIMESTAMP =3D 1692304583 > +SHA256 > (amshafer-nvidia-driver-535.98-nvidia-drm-510-kmod-535.98_GH0.tar.gz) =3D > c11fb17f9f8cddc11ec699c63bbc288bd1124537dd7ae698538ebd8bb399e225 > +SIZE > (amshafer-nvidia-driver-535.98-nvidia-drm-510-kmod-535.98_GH0.tar.gz) =3D > 185499361 > +SHA256 (freebsd-drm-kmod-drm_v5.10.163_6_GH0.tar.gz) =3D > 342eb5073f318d18667c605e639bd85e48de3be25861d8a730d0ca3dd7ba7726 > +SIZE (freebsd-drm-kmod-drm_v5.10.163_6_GH0.tar.gz) =3D 20096515 > diff --git a/graphics/nvidia-drm-510-kmod/files/ > 20-nvidia-drm-outputclass.conf.in b/graphics/nvidia-drm-510-kmod/files/ > 20-nvidia-drm-outputclass.conf.in > new file mode 100644 > index 000000000000..15496138f63a > --- /dev/null > +++ b/graphics/nvidia-drm-510-kmod/files/20-nvidia-drm-outputclass.conf.i= n > @@ -0,0 +1,8 @@ > +Section "OutputClass" > + Identifier "nvidia" > + MatchDriver "nvidia-drm" > + Driver "nvidia" > + Option "PrimaryGPU" "yes" > + ModulePath "%%LOCALBASE%%/lib/nvidia/xorg" > + ModulePath "%%LOCALBASE%%/lib/xorg/modules" > +EndSection > diff --git a/graphics/nvidia-drm-510-kmod/pkg-descr > b/graphics/nvidia-drm-510-kmod/pkg-descr > new file mode 100644 > index 000000000000..64ec67472ed7 > --- /dev/null > +++ b/graphics/nvidia-drm-510-kmod/pkg-descr > @@ -0,0 +1,3 @@ > +FreeBSD port of Linux's nvidia-drm.ko Kernel module. > + > +This version is compatible with drm.ko 5.10. > diff --git a/graphics/nvidia-drm-515-kmod/Makefile > b/graphics/nvidia-drm-515-kmod/Makefile > new file mode 100644 > index 000000000000..c20e7d25f126 > --- /dev/null > +++ b/graphics/nvidia-drm-515-kmod/Makefile > @@ -0,0 +1,10 @@ > +PORTNAME=3D nvidia-drm-515-kmod > +PORTVERSION=3D ${NVIDIA_DISTVERSION} > +CATEGORIES=3D graphics > + > +RUN_DEPENDS+=3D ${KMODDIR}/drm.ko:graphics/drm-515-kmod > + > +.include "${.CURDIR}/../drm-515-kmod/Makefile.version" > +.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common" > + > +.include <bsd.port.mk> > diff --git a/graphics/nvidia-drm-515-kmod/distinfo > b/graphics/nvidia-drm-515-kmod/distinfo > new file mode 100644 > index 000000000000..ea026477bc17 > --- /dev/null > +++ b/graphics/nvidia-drm-515-kmod/distinfo > @@ -0,0 +1,5 @@ > +TIMESTAMP =3D 1692308433 > +SHA256 > (amshafer-nvidia-driver-535.98-nvidia-drm-515-kmod-535.98_GH0.tar.gz) =3D > 973bb7d81e894767f1e9e5cbe394be15289084098d782fb4adb3758a8face51c > +SIZE > (amshafer-nvidia-driver-535.98-nvidia-drm-515-kmod-535.98_GH0.tar.gz) =3D > 185499765 > +SHA256 (freebsd-drm-kmod-drm_v5.15.25_5_GH0.tar.gz) =3D > bd5eb5a39cd46f532d0310958bfc2870da1c1a003e92874f18f7f88c8baac6a5 > +SIZE (freebsd-drm-kmod-drm_v5.15.25_5_GH0.tar.gz) =3D 26084713 > diff --git a/graphics/nvidia-drm-515-kmod/files/ > 20-nvidia-drm-outputclass.conf.in b/graphics/nvidia-drm-515-kmod/files/ > 20-nvidia-drm-outputclass.conf.in > new file mode 100644 > index 000000000000..15496138f63a > --- /dev/null > +++ b/graphics/nvidia-drm-515-kmod/files/20-nvidia-drm-outputclass.conf.i= n > @@ -0,0 +1,8 @@ > +Section "OutputClass" > + Identifier "nvidia" > + MatchDriver "nvidia-drm" > + Driver "nvidia" > + Option "PrimaryGPU" "yes" > + ModulePath "%%LOCALBASE%%/lib/nvidia/xorg" > + ModulePath "%%LOCALBASE%%/lib/xorg/modules" > +EndSection > diff --git a/graphics/nvidia-drm-515-kmod/pkg-descr > b/graphics/nvidia-drm-515-kmod/pkg-descr > new file mode 100644 > index 000000000000..598cb9411e54 > --- /dev/null > +++ b/graphics/nvidia-drm-515-kmod/pkg-descr > @@ -0,0 +1,3 @@ > +FreeBSD port of Linux's nvidia-drm.ko Kernel module. > + > +This version is compatible with drm.ko 5.15. > diff --git a/graphics/nvidia-drm-kmod/Makefile > b/graphics/nvidia-drm-kmod/Makefile > new file mode 100644 > index 000000000000..cc226f22dbf2 > --- /dev/null > +++ b/graphics/nvidia-drm-kmod/Makefile > @@ -0,0 +1,25 @@ > +PORTNAME=3D nvidia-drm-kmod > +PORTVERSION=3D ${NVIDIA_DISTVERSION} > +CATEGORIES=3D graphics kld > + > +MAINTAINER=3D ashafer@badland.io > +COMMENT=3D NVIDIA DRM Kernel Module > +WWW=3D https://github.com/amshafer/nvidia-driver > + > +USES=3D metaport > + > +.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version" > +.include <bsd.port.pre.mk> > + > +# Only supported on FreeBSD 13.1+ > +.if ${OPSYS} !=3D FreeBSD > +IGNORE=3D not supported on anything but FreeBSD (missing > linuxkpi functionality) > +.else > +. if ${OSVERSION} >=3D 1301000 > +RUN_DEPENDS+=3D ${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-510-kmod > +. else > +IGNORE=3D not supported for this FreeBSD version > +. endif > +.endif > + > +.include <bsd.port.post.mk> > diff --git a/graphics/nvidia-drm-kmod/Makefile.common > b/graphics/nvidia-drm-kmod/Makefile.common > new file mode 100644 > index 000000000000..f97266bc03e1 > --- /dev/null > +++ b/graphics/nvidia-drm-kmod/Makefile.common > @@ -0,0 +1,32 @@ > +# Common rules for nvidia-drm-*-kmod ports > + > +MAINTAINER=3D ashafer@badland.io > +COMMENT=3D NVIDIA DRM Kernel Module > +WWW=3D https://github.com/amshafer/nvidia-driver > + > +ONLY_FOR_ARCHS=3D amd64 > +USES=3D kmod uidfix > + > +SUB_FILES=3D 20-nvidia-drm-outputclass.conf > + > +RUN_DEPENDS+=3D ${KMODDIR}/nvidia.ko:x11/nvidia-driver > + > +.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version" > + > +LICENSE_FILE=3D ${WRKSRC}/nvidia/doc/license.txt > + > +NVIDIA_GH_TAGNAME=3D ${PORTNAME}-${PORTVERSION} > +USE_GITHUB=3D yes > +GH_ACCOUNT=3D amshafer freebsd:drm > +GH_PROJECT=3D nvidia-driver drm-kmod:drm > +GH_TAGNAME:=3D ${NVIDIA_GH_TAGNAME} ${DRM_KMOD_GH_TAGNAME}:drm > + > +PLIST_FILES=3D ${KMODDIR}/nvidia-drm.ko \ > + share/X11/xorg.conf.d/20-nvidia-drm-outputclass.conf > + > +MAKE_ENV+=3D DRMKMODDIR=3D${WRKDIR}/drm-kmod-${DRM_KMOD_GH_TAGNAME}/ > +WRKSRC_SUBDIR=3D nvidia/src/nvidia-drm/ > + > +post-install: > + ${MKDIR} ${STAGEDIR}${PREFIX}/share/X11/xorg.conf.d/ > + ${INSTALL_DATA} ${WRKDIR}/20-nvidia-drm-outputclass.conf > ${STAGEDIR}${PREFIX}/share/X11/xorg.conf.d/ > diff --git a/graphics/nvidia-drm-kmod/pkg-descr > b/graphics/nvidia-drm-kmod/pkg-descr > new file mode 100644 > index 000000000000..9fea5fd244d8 > --- /dev/null > +++ b/graphics/nvidia-drm-kmod/pkg-descr > @@ -0,0 +1 @@ > +FreeBSD port of Linux's nvidia-drm.ko Kernel module. > Nice to have this port! I=E2=80=99ll document it in the handbook :) --000000000000a932c006035e7e25 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div>On Sun, 20 Aug 2023 at 19:54, Gleb Popov <<a href=3D"mailto:arrowd@= freebsd.org">arrowd@freebsd.org</a>> wrote:<br></div><div><div class=3D"= gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px = 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border= -left-color:rgb(204,204,204)">The branch main has been updated by arrowd:<b= r> <br> URL: <a href=3D"https://cgit.FreeBSD.org/ports/commit/?id=3D4754e9fd33c4fae= 0359a272d72d9aa7fe75c7a82" rel=3D"noreferrer" target=3D"_blank">https://cgi= t.FreeBSD.org/ports/commit/?id=3D4754e9fd33c4fae0359a272d72d9aa7fe75c7a82</= a><br> <br> commit 4754e9fd33c4fae0359a272d72d9aa7fe75c7a82<br> Author:=C2=A0 =C2=A0 =C2=A0Austin Shafer <<a href=3D"mailto:ashafer@badl= and.io" target=3D"_blank">ashafer@badland.io</a>><br> AuthorDate: 2023-08-18 14:31:22 +0000<br> Commit:=C2=A0 =C2=A0 =C2=A0Gleb Popov <arrowd@FreeBSD.org><br> CommitDate: 2023-08-20 17:54:07 +0000<br> <br> =C2=A0 =C2=A0 graphics/nvidia-drm-[510,515]-kmod: Add the port.<br> <br> =C2=A0 =C2=A0 This port provides the nvidia-drm.ko kernel module, as ported= here:<br> =C2=A0 =C2=A0 <a href=3D"https://github.com/amshafer/nvidia-driver" rel=3D"= noreferrer" target=3D"_blank">https://github.com/amshafer/nvidia-driver</a>= <br> <br> =C2=A0 =C2=A0 This module implements the DRM API, which is commonly used fo= r PRIME and<br> =C2=A0 =C2=A0 Wayland setups.<br> <br> =C2=A0 =C2=A0 Differential Revision: <a href=3D"https://reviews.freebsd.org= /D41497" rel=3D"noreferrer" target=3D"_blank">https://reviews.freebsd.org/D= 41497</a><br> <br> =C2=A0 =C2=A0 Reviewed by:=C2=A0 =C2=A0 arrowd<br> ---<br> =C2=A0graphics/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 = 3 ++<br> =C2=A0graphics/nvidia-drm-510-kmod/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | 10 +++++++<br> =C2=A0graphics/nvidia-drm-510-kmod/distinfo=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 |=C2=A0 5 ++++<br> =C2=A0.../files/<a href=3D"http://20-nvidia-drm-outputclass.conf.in" rel=3D= "noreferrer" target=3D"_blank">20-nvidia-drm-outputclass.conf.in</a>=C2=A0 = =C2=A0 =C2=A0 =C2=A0 |=C2=A0 8 ++++++<br> =C2=A0graphics/nvidia-drm-510-kmod/pkg-descr=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0|=C2=A0 3 ++<br> =C2=A0graphics/nvidia-drm-515-kmod/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 | 10 +++++++<br> =C2=A0graphics/nvidia-drm-515-kmod/distinfo=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 |=C2=A0 5 ++++<br> =C2=A0.../files/<a href=3D"http://20-nvidia-drm-outputclass.conf.in" rel=3D= "noreferrer" target=3D"_blank">20-nvidia-drm-outputclass.conf.in</a>=C2=A0 = =C2=A0 =C2=A0 =C2=A0 |=C2=A0 8 ++++++<br> =C2=A0graphics/nvidia-drm-515-kmod/pkg-descr=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0|=C2=A0 3 ++<br> =C2=A0graphics/nvidia-drm-kmod/Makefile=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 25 +++++++++++++++++<br> =C2=A0graphics/nvidia-drm-kmod/Makefile.common=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0| 32 ++++++++++++++++++++++<br> =C2=A0graphics/nvidia-drm-kmod/pkg-descr=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 1 +<br> =C2=A012 files changed, 113 insertions(+)<br> <br> diff --git a/graphics/Makefile b/graphics/Makefile<br> index 8a01b3895276..c1910b63b806 100644<br> --- a/graphics/Makefile<br> +++ b/graphics/Makefile<br> @@ -593,6 +593,9 @@<br> =C2=A0 =C2=A0 =C2=A0SUBDIR +=3D npretty<br> =C2=A0 =C2=A0 =C2=A0SUBDIR +=3D nsxiv<br> =C2=A0 =C2=A0 =C2=A0SUBDIR +=3D nurbs++<br> +=C2=A0 =C2=A0 SUBDIR +=3D nvidia-drm-510-kmod<br> +=C2=A0 =C2=A0 SUBDIR +=3D nvidia-drm-515-kmod<br> +=C2=A0 =C2=A0 SUBDIR +=3D nvidia-drm-kmod<br> =C2=A0 =C2=A0 =C2=A0SUBDIR +=3D nvidia-texture-tools<br> =C2=A0 =C2=A0 =C2=A0SUBDIR +=3D ocaml-cairo<br> =C2=A0 =C2=A0 =C2=A0SUBDIR +=3D ocaml-images<br> diff --git a/graphics/nvidia-drm-510-kmod/Makefile b/graphics/nvidia-drm-51= 0-kmod/Makefile<br> new file mode 100644<br> index 000000000000..13b2c26c6c3f<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-510-kmod/Makefile<br> @@ -0,0 +1,10 @@<br> +PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 nvidia-drm-510-kmod<br> +PORTVERSION=3D=C2=A0 =C2=A0${NVIDIA_DISTVERSION}<br> +CATEGORIES=3D=C2=A0 =C2=A0 graphics<br> +<br> +RUN_DEPENDS+=3D=C2=A0 ${KMODDIR}/drm.ko:graphics/drm-510-kmod<br> +<br> +.include "${.CURDIR}/../drm-510-kmod/Makefile.version"<br> +.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common"<br> +<br> +.include <<a href=3D"http://bsd.port.mk" rel=3D"noreferrer" target=3D"_= blank">bsd.port.mk</a>><br> diff --git a/graphics/nvidia-drm-510-kmod/distinfo b/graphics/nvidia-drm-51= 0-kmod/distinfo<br> new file mode 100644<br> index 000000000000..3b60248b1ff9<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-510-kmod/distinfo<br> @@ -0,0 +1,5 @@<br> +TIMESTAMP =3D 1692304583<br> +SHA256 (amshafer-nvidia-driver-535.98-nvidia-drm-510-kmod-535.98_GH0.tar.g= z) =3D c11fb17f9f8cddc11ec699c63bbc288bd1124537dd7ae698538ebd8bb399e225<br> +SIZE (amshafer-nvidia-driver-535.98-nvidia-drm-510-kmod-535.98_GH0.tar.gz)= =3D 185499361<br> +SHA256 (freebsd-drm-kmod-drm_v5.10.163_6_GH0.tar.gz) =3D 342eb5073f318d186= 67c605e639bd85e48de3be25861d8a730d0ca3dd7ba7726<br> +SIZE (freebsd-drm-kmod-drm_v5.10.163_6_GH0.tar.gz) =3D 20096515<br> diff --git a/graphics/nvidia-drm-510-kmod/files/<a href=3D"http://20-nvidia= -drm-outputclass.conf.in" rel=3D"noreferrer" target=3D"_blank">20-nvidia-dr= m-outputclass.conf.in</a> b/graphics/nvidia-drm-510-kmod/files/<a href=3D"h= ttp://20-nvidia-drm-outputclass.conf.in" rel=3D"noreferrer" target=3D"_blan= k">20-nvidia-drm-outputclass.conf.in</a><br> new file mode 100644<br> index 000000000000..15496138f63a<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-510-kmod/files/<a href=3D"http://20-nvidia-drm-ou= tputclass.conf.in" rel=3D"noreferrer" target=3D"_blank">20-nvidia-drm-outpu= tclass.conf.in</a><br> @@ -0,0 +1,8 @@<br> +Section "OutputClass"<br> +=C2=A0 =C2=A0 Identifier "nvidia"<br> +=C2=A0 =C2=A0 MatchDriver "nvidia-drm"<br> +=C2=A0 =C2=A0 Driver "nvidia"<br> +=C2=A0 =C2=A0 Option "PrimaryGPU" "yes"<br> +=C2=A0 =C2=A0 ModulePath "%%LOCALBASE%%/lib/nvidia/xorg"<br> +=C2=A0 =C2=A0 ModulePath "%%LOCALBASE%%/lib/xorg/modules"<br> +EndSection<br> diff --git a/graphics/nvidia-drm-510-kmod/pkg-descr b/graphics/nvidia-drm-5= 10-kmod/pkg-descr<br> new file mode 100644<br> index 000000000000..64ec67472ed7<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-510-kmod/pkg-descr<br> @@ -0,0 +1,3 @@<br> +FreeBSD port of Linux's nvidia-drm.ko Kernel module.<br> +<br> +This version is compatible with drm.ko 5.10.<br> diff --git a/graphics/nvidia-drm-515-kmod/Makefile b/graphics/nvidia-drm-51= 5-kmod/Makefile<br> new file mode 100644<br> index 000000000000..c20e7d25f126<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-515-kmod/Makefile<br> @@ -0,0 +1,10 @@<br> +PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 nvidia-drm-515-kmod<br> +PORTVERSION=3D=C2=A0 =C2=A0${NVIDIA_DISTVERSION}<br> +CATEGORIES=3D=C2=A0 =C2=A0 graphics<br> +<br> +RUN_DEPENDS+=3D=C2=A0 ${KMODDIR}/drm.ko:graphics/drm-515-kmod<br> +<br> +.include "${.CURDIR}/../drm-515-kmod/Makefile.version"<br> +.include "${.CURDIR}/../nvidia-drm-kmod/Makefile.common"<br> +<br> +.include <<a href=3D"http://bsd.port.mk" rel=3D"noreferrer" target=3D"_= blank">bsd.port.mk</a>><br> diff --git a/graphics/nvidia-drm-515-kmod/distinfo b/graphics/nvidia-drm-51= 5-kmod/distinfo<br> new file mode 100644<br> index 000000000000..ea026477bc17<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-515-kmod/distinfo<br> @@ -0,0 +1,5 @@<br> +TIMESTAMP =3D 1692308433<br> +SHA256 (amshafer-nvidia-driver-535.98-nvidia-drm-515-kmod-535.98_GH0.tar.g= z) =3D 973bb7d81e894767f1e9e5cbe394be15289084098d782fb4adb3758a8face51c<br> +SIZE (amshafer-nvidia-driver-535.98-nvidia-drm-515-kmod-535.98_GH0.tar.gz)= =3D 185499765<br> +SHA256 (freebsd-drm-kmod-drm_v5.15.25_5_GH0.tar.gz) =3D bd5eb5a39cd46f532d= 0310958bfc2870da1c1a003e92874f18f7f88c8baac6a5<br> +SIZE (freebsd-drm-kmod-drm_v5.15.25_5_GH0.tar.gz) =3D 26084713<br> diff --git a/graphics/nvidia-drm-515-kmod/files/<a href=3D"http://20-nvidia= -drm-outputclass.conf.in" rel=3D"noreferrer" target=3D"_blank">20-nvidia-dr= m-outputclass.conf.in</a> b/graphics/nvidia-drm-515-kmod/files/<a href=3D"h= ttp://20-nvidia-drm-outputclass.conf.in" rel=3D"noreferrer" target=3D"_blan= k">20-nvidia-drm-outputclass.conf.in</a><br> new file mode 100644<br> index 000000000000..15496138f63a<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-515-kmod/files/<a href=3D"http://20-nvidia-drm-ou= tputclass.conf.in" rel=3D"noreferrer" target=3D"_blank">20-nvidia-drm-outpu= tclass.conf.in</a><br> @@ -0,0 +1,8 @@<br> +Section "OutputClass"<br> +=C2=A0 =C2=A0 Identifier "nvidia"<br> +=C2=A0 =C2=A0 MatchDriver "nvidia-drm"<br> +=C2=A0 =C2=A0 Driver "nvidia"<br> +=C2=A0 =C2=A0 Option "PrimaryGPU" "yes"<br> +=C2=A0 =C2=A0 ModulePath "%%LOCALBASE%%/lib/nvidia/xorg"<br> +=C2=A0 =C2=A0 ModulePath "%%LOCALBASE%%/lib/xorg/modules"<br> +EndSection<br> diff --git a/graphics/nvidia-drm-515-kmod/pkg-descr b/graphics/nvidia-drm-5= 15-kmod/pkg-descr<br> new file mode 100644<br> index 000000000000..598cb9411e54<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-515-kmod/pkg-descr<br> @@ -0,0 +1,3 @@<br> +FreeBSD port of Linux's nvidia-drm.ko Kernel module.<br> +<br> +This version is compatible with drm.ko 5.15.<br> diff --git a/graphics/nvidia-drm-kmod/Makefile b/graphics/nvidia-drm-kmod/M= akefile<br> new file mode 100644<br> index 000000000000..cc226f22dbf2<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-kmod/Makefile<br> @@ -0,0 +1,25 @@<br> +PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 nvidia-drm-kmod<br> +PORTVERSION=3D=C2=A0 =C2=A0${NVIDIA_DISTVERSION}<br> +CATEGORIES=3D=C2=A0 =C2=A0 graphics kld<br> +<br> +MAINTAINER=3D=C2=A0 =C2=A0 <a href=3D"mailto:ashafer@badland.io" target=3D= "_blank">ashafer@badland.io</a><br> +COMMENT=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0NVIDIA DRM Kernel Module<br> +WWW=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"https://github.c= om/amshafer/nvidia-driver" rel=3D"noreferrer" target=3D"_blank">https://git= hub.com/amshafer/nvidia-driver</a><br> +<br> +USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 metaport<br> +<br> +.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version"<b= r> +.include <<a href=3D"http://bsd.port.pre.mk" rel=3D"noreferrer" target= =3D"_blank">bsd.port.pre.mk</a>><br> +<br> +# Only supported on FreeBSD 13.1+<br> +.if ${OPSYS} !=3D FreeBSD<br> +IGNORE=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 not suppo= rted on anything but FreeBSD (missing linuxkpi functionality)<br> +.else<br> +.=C2=A0 if ${OSVERSION} >=3D 1301000<br> +RUN_DEPENDS+=3D=C2=A0 ${KMODDIR}/nvidia-drm.ko:graphics/nvidia-drm-510-kmo= d<br> +.=C2=A0 else<br> +IGNORE=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 not suppo= rted for this FreeBSD version<br> +.=C2=A0 endif<br> +.endif<br> +<br> +.include <<a href=3D"http://bsd.port.post.mk" rel=3D"noreferrer" target= =3D"_blank">bsd.port.post.mk</a>><br> diff --git a/graphics/nvidia-drm-kmod/Makefile.common b/graphics/nvidia-drm= -kmod/Makefile.common<br> new file mode 100644<br> index 000000000000..f97266bc03e1<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-kmod/Makefile.common<br> @@ -0,0 +1,32 @@<br> +# Common rules for nvidia-drm-*-kmod ports<br> +<br> +MAINTAINER=3D=C2=A0 =C2=A0 <a href=3D"mailto:ashafer@badland.io" target=3D= "_blank">ashafer@badland.io</a><br> +COMMENT=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0NVIDIA DRM Kernel Module<br> +WWW=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a href=3D"https://github.c= om/amshafer/nvidia-driver" rel=3D"noreferrer" target=3D"_blank">https://git= hub.com/amshafer/nvidia-driver</a><br> +<br> +ONLY_FOR_ARCHS=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 amd64<br> +USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 kmod uidfix<br> +<br> +SUB_FILES=3D=C2=A0 =C2=A0 =C2=A020-nvidia-drm-outputclass.conf<br> +<br> +RUN_DEPENDS+=3D=C2=A0 ${KMODDIR}/nvidia.ko:x11/nvidia-driver<br> +<br> +.include "${.CURDIR}/../../x11/nvidia-driver/Makefile.version"<b= r> +<br> +LICENSE_FILE=3D=C2=A0 ${WRKSRC}/nvidia/doc/license.txt<br> +<br> +NVIDIA_GH_TAGNAME=3D=C2=A0 =C2=A0 =C2=A0${PORTNAME}-${PORTVERSION}<br> +USE_GITHUB=3D=C2=A0 =C2=A0 yes<br> +GH_ACCOUNT=3D=C2=A0 =C2=A0 amshafer freebsd:drm<br> +GH_PROJECT=3D=C2=A0 =C2=A0 nvidia-driver drm-kmod:drm<br> +GH_TAGNAME:=3D=C2=A0 =C2=A0${NVIDIA_GH_TAGNAME} ${DRM_KMOD_GH_TAGNAME}:drm= <br> +<br> +PLIST_FILES=3D=C2=A0 =C2=A0${KMODDIR}/nvidia-drm.ko \<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0share/X11/xorg.conf= .d/20-nvidia-drm-outputclass.conf<br> +<br> +MAKE_ENV+=3D=C2=A0 =C2=A0 =C2=A0DRMKMODDIR=3D${WRKDIR}/drm-kmod-${DRM_KMOD= _GH_TAGNAME}/<br> +WRKSRC_SUBDIR=3D nvidia/src/nvidia-drm/<br> +<br> +post-install:<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0${MKDIR} ${STAGEDIR}${PREFIX}/share/X11/xorg.co= nf.d/<br> +=C2=A0 =C2=A0 =C2=A0 =C2=A0${INSTALL_DATA} ${WRKDIR}/20-nvidia-drm-outputc= lass.conf ${STAGEDIR}${PREFIX}/share/X11/xorg.conf.d/<br> diff --git a/graphics/nvidia-drm-kmod/pkg-descr b/graphics/nvidia-drm-kmod/= pkg-descr<br> new file mode 100644<br> index 000000000000..9fea5fd244d8<br> --- /dev/null<br> +++ b/graphics/nvidia-drm-kmod/pkg-descr<br> @@ -0,0 +1 @@<br> +FreeBSD port of Linux's nvidia-drm.ko Kernel module.</blockquote><bloc= kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-= width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(20= 4,204,204)"><br> </blockquote></div></div><div dir=3D"auto">Nice to have this port!</div><di= v dir=3D"auto"><br></div><div dir=3D"auto">I=E2=80=99ll document it in the = handbook :)</div> --000000000000a932c006035e7e25--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFwocyM6Pd9xRM_UZR9o8a843=Rpx6ZhwfP1jg%2BPm%2By0a1NAZw>