Re: HEADSUP: drm-current-kmod now installs sources

John Baldwin <[email protected]>
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <e946d570-8366-0da4-b66f-a8d948e5931f__25961.321154476$1566233382$gmane$org@FreeBSD.org>
On 8/16/19 5:33 PM, Rozhuk Ivan wrote:
> On Fri, 16 Aug 2019 17:23:08 -0700
> John Baldwin <[email protected]> wrote:
> 
>>> I use better way:
>>> /etc/make.conf:
>>> # Modules to build with kernel.
>>> PORTS_MODULES+= graphics/drm-fbsd12.0-kmod
>>> graphics/gpu-firmware-kmod  
>>
>> This doesn't work for folks who use pre-built packages.
>>
> 
> I update mine /usr/src via rsync from other mine server, so any
> changes made by port or me or ... will lost.
> 
> Probably there is must be some solution like special folder where
> ports can store some file with port name, that automaticly go to
> PORTS_MODULES on build kernel.
> And probably pkg can do with this something for "folks who use pre-built packages".

That is what this framework does.  Ports install a Makefile to
/usr/local/sys/modules/<packagename>/Makefile.  That makefile is invoked during
the 'modules' stages of buildkernel and installkernel.  In the case of
drm-current-kmod, the port installs sources into subdirectories of
/usr/local/sys/modules/drm-current-kmod and installs a top-level Makefile
in /usr/local/sys/modules/drm-current-kmod/Makefile that uses bsd.subdir.mk
to recurse into those subdirectories.

Currently, LOCAL_MODULES is automatically populated to a list of the
directories in /usr/local/sys/modules and the debate is about when
LOCAL_MODULES should be auto-populated or not.

-- 
John Baldwin
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-x11
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.