Re: make buildkernel on 14.2 tries to build graphics/drm-510-kmod and fails

From: Tomek CEDRO <tomek_at_cedro.info>
Date: Tue, 24 Jun 2025 10:43:38 UTC
On Tue, Jun 24, 2025 at 2:38 AM Edward Sanford Sutton, III
<mirror176@hotmail.com> wrote:
> On 6/23/25 17:31, Tomek CEDRO wrote:
> > Hello world :-)
> >
> > I am trying to build custom kernel to test a driver, kernel seems to
> > build fine but then a graphics/drm-510-kmod build kicks in and fails.
> > I do not use drm-510-kmod, it is not installed, why it is built here??
> > o_O
>
> Do you have PORTS_MODULES defined (/etc/make.conf /etc/src.conf)? You
> can confirm its definition with the output of:
>
> `make -VPORTS_MODULES -C /usr/src/`

Thanks Edward! Yes it seems to be defined.. but I have no idea where and why?

# make -VPORTS_MODULES -C /usr/src
graphics/drm-510-kmod

# cat /etc/make.conf
DEVELOPER=yes
DEFAULT_VERSIONS+=ssl=libressl
MAKE_JOBS_NUMBER=24
#WITH_DEBUG_PORTS= comms/limesuite
WRKDIRPREFIX=/usr/obj/usr/ports
NO_KERNELCLEAN=1

I can override this only with make -VPORTS_MODULES -C /usr/src PORTS_MODULES=

I do have drm-61-kmod installed as dependency of nvidia-drm-kmod /
nvidia-drm-61-kmod:

 # pkg info -x drm
drm-61-kmod-6.1.128.1402000_5
drm-kmod-20250428
drm_info-2.7.0
libdrm-2.4.123,1
nvidia-drm-61-kmod-570.153.02.1402000_2
nvidia-drm-kmod-570.153.02


Why drm-510-kmod is being built is a mystery :-P

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info