Due to a previous issue described here I had to delve for the first time into building/installing a new kernel. As I understand it, there are three ways to define how modules are being built. The most prescriptive option is
My question is whether this list is meant to reflect only dynamic modules that can be loaded via loader.conf or
For example if MYKERNEL includes:
Will I need to include
MODULES_OVERRIDE
, which allows one to define exactly the number of modules that will be built during make buildkernel
. This is set in make.conf. Here is an example that I have been testing:
Code:
MODULES_OVERRIDE=
zfs \
cryptodev \
i2c/controllers/ichsmb \
i2c/controllers/intpm \
i2c/smbus \
usb/uhid \
usb/ums \
usb/usbhid \
hid/hidbus \
usb/wmt \
filemon
My question is whether this list is meant to reflect only dynamic modules that can be loaded via loader.conf or
kldload
, or should it also include modules that are linked statically to whatever is set in MYKERNEL config file?For example if MYKERNEL includes:
Code:
device em # Intel PRO/1000 Gigabit Ethernet Family
Will I need to include
em
also in the above MODULES_OVERRIDE
list?