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, Dec 4, 4:19 AM
Unknown Object (File)
Nov 20 2024, 9:05 AM
Unknown Object (File)
Nov 14 2024, 7:39 PM
Unknown Object (File)
Nov 7 2024, 12:07 AM
Unknown Object (File)
Oct 3 2024, 1:43 PM
Unknown Object (File)
Sep 24 2024, 12:52 AM
Unknown Object (File)
Sep 16 2024, 3:49 PM
Unknown Object (File)
Sep 10 2024, 12:11 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.