Thinning out GENERIC

Warner Losh imp at bsdimp.com
Mon Feb 13 17:51:38 UTC 2017


[[ It isn't just GENERIC, it's in every single kernel ]]

On Sun, Feb 12, 2017 at 7:59 AM, Sean Bruno <sbruno at freebsd.org> wrote:
> Index: sys/conf/files
> ===================================================================
> --- sys/conf/files      (revision 313683)
> +++ sys/conf/files      (working copy)
> @@ -2419,7 +2419,7 @@
>  dev/pci/pci_user.c             optional pci
>  dev/pci/pcib_if.m              standard
>  dev/pci/pcib_support.c         standard
> -dev/pci/vga_pci.c              optional pci
> +#dev/pci/vga_pci.c             optional pci
>  dev/pcn/if_pcn.c               optional pcn pci
>  dev/pdq/if_fea.c               optional fea eisa
>  dev/pdq/if_fpa.c               optional fpa pci
>
> I'm playing around with small x86 builds and wanted to come up with a
> knob that disables the vga_pci driver.  Obviously I still want pci(4) to
> be enabled, but I definitely do not need the vga interfaces for
> anything.  Any suggestions?

You could make it dependent on vt or sc as well as pci, no?

Warner


More information about the freebsd-arch mailing list