Page MenuHomeFreeBSD

[conf] reduce kernel size if there is no iflib & usb
Needs ReviewPublic

Authored by mizhka on May 27 2019, 8:56 PM.

Details

Reviewers
adrian
Summary

This patch is going to reduce kernel size if USB and IFLIB support are not required. As "option usb" and "option iflib" are valid options, all related files could be included in kernel only if options are defined.

This is initial draft (tested only mips32 and only options off), more testing (amd64 generic, options on/off) is required.
Reviews from USB/IFLIB developers are welcome!

Test Plan

This is initial draft (tested only mips32 and only options off), more testing (amd64 generic, options on/off) is required.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

mizhka created this revision.May 27 2019, 8:56 PM

I like this; but yeah we're going to need to add options iflib everywhere else to make the defaults work. Can you do that?

hm, the iflib bits are already in -head?