Thinning out GENERIC

Justin Hibbits jrh29 at alumni.cwru.edu
Fri Feb 17 22:59:39 UTC 2017


On Fri, Feb 17, 2017 at 4:38 PM, Sean Bruno <sbruno at freebsd.org> wrote:
>
>>> I don't want to remove it from GENERIC.  I want to add the capability to
>>> remove it.  Sorry if that wasn't clear from my subject line, because it
>>> doesn't look clear now that I re-read it.
>>
>> Why not make this conditional on 'vga'?  GENERIC already contains 'device vga'
>> that the VGA-specific bits of 'vt', etc. are dependent on.
>>
>
> A quick hack that seems to do what I want it to do, maybe I should just
> fire this off?
>
> Index: sys/conf/files
> ===================================================================
> --- sys/conf/files      (revision 313900)
> +++ sys/conf/files      (working copy)
> @@ -2401,7 +2401,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 vga
>  dev/pcn/if_pcn.c               optional pcn pci
>  dev/pdq/if_fpa.c               optional fpa pci
>  dev/pdq/pdq.c                  optional nowerror fpa pci
>

vga_pci.c is used by powerpc as well, which doesn't include device vga
in GENERIC*.  Possibly other archs as well would need it.

- Justin


More information about the freebsd-arch mailing list