Page MenuHomeFreeBSD

build: kern: support per-KERNCONF LOCAL_MODULES overrides
Needs ReviewPublic

Authored by kevans on Feb 12 2021, 8:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 19, 5:36 AM
Unknown Object (File)
Sun, Aug 16, 4:14 AM
Unknown Object (File)
Thu, Aug 13, 5:43 PM
Unknown Object (File)
Thu, Aug 13, 3:53 AM
Unknown Object (File)
Aug 8 2026, 7:18 PM
Unknown Object (File)
Aug 4 2026, 8:34 PM
Unknown Object (File)
Aug 2 2026, 12:43 AM
Unknown Object (File)
Jul 31 2026, 5:51 PM

Details

Reviewers
imp
jhb
Summary

It may be the case that one wants to build multiple KERNCONFs in one
buildkernel with some different LOCAL_MODULES options; e.g., build
machine configs likely don't need drm-kmod from ports.

This lets us configure LOCAL_MODULES_DIR_${KERNCONF} and/or
LOCAL_MODULES_${KERNCONF} as needed to override whatever global defaults
may be supplied.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36940
Build 33829: arc lint + arc unit

Event Timeline

kevans created this revision.

Thank you so much for this. I thought of doing it myself.

Did you try setting LOCAL_MODULES or LOCAL_MODULES_DIR in a kernel config via makeoptions? You can set things like NO_MODULES=yes and MODULES_OVERRIDE in kernel config files via makeoptions.

In D28626#642816, @jhb wrote:

Did you try setting LOCAL_MODULES or LOCAL_MODULES_DIR in a kernel config via makeoptions? You can set things like NO_MODULES=yes and MODULES_OVERRIDE in kernel config files via makeoptions.

I was trying to avoid creating a custom config just for that; build machine runs GENERIC-NODEBUG while everything else runs GENERIC or MINIMAL.