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)
Tue, Oct 14, 3:10 AM
Unknown Object (File)
Thu, Oct 2, 2:04 PM
Unknown Object (File)
Sat, Sep 27, 10:35 AM
Unknown Object (File)
Sep 11 2025, 1:26 AM
Unknown Object (File)
Sep 11 2025, 1:26 AM
Unknown Object (File)
Sep 7 2025, 1:29 PM
Unknown Object (File)
Sep 6 2025, 3:24 AM
Unknown Object (File)
Sep 4 2025, 1:54 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.