Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2002 10:11:23 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, <cvs-all@FreeBSD.org>, "M. Warner Losh" <imp@bsdimp.com>
Subject:   Re: cvs commit: src/sys/conf NOTES src/sys/i386/conf NOTES
Message-ID:  <20020717100445.H2535-100000@gamplex.bde.org>
In-Reply-To: <XFMail.20020716133214.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 Jul 2002, John Baldwin wrote:

> On 15-Jul-2002 Bruce Evans wrote:
> > On Mon, 15 Jul 2002, John Baldwin wrote:
> >
> >> On 15-Jul-2002 M. Warner Losh wrote:
> >> > In message: <200207151428.g6FESMnY020349@freefall.freebsd.org>
> >> >             John Baldwin <jhb@FreeBSD.org> writes:
> >> >:   ...
> >> >:   Log:
> >> >:   Move ACPI device and options from MI NOTES to the i386 MD NOTES file.
> >> >
> >> > ACPI is also used on ia64, can you copy it there as well please?
> >>
> >> First we need an ia64 NOTES file grasshopper.
> >
> > This is going to cause problems with the simplification of putting
> > almost everything in the MI NOTES.  Almost nothing is 100% MI, so
> > almost everything will end up back in MD NOTES if the MI NOTES is
> > required to work on all arches.
>
> Hence my mail to arch@ about possibly having things like NOTES.acpi,
> NOTES.atkbdc, etc. (same for files.foo and options.foo) that the MD ones
> can include.  For some things like PCI drivers, they can be in the MI
> notes so long as they work on all archs that support PCI.  Perhaps to
> make the atkbdc case easier we should say that that driver depends on
> isa (if it doesn't already).

Someone mentioned ifdefs.  I think they wouldn't scale very well, and
NOTES.foo wouldn't scale much better (there would be lots of little
files to provide sufficient granularity, and enormous ifdefs to decide
when to include them).

Perhaps almost everything could be handled by arch/bus dependencies,
at a cost of making it unclear when things are actually configured.
Most drivers would be in the central NOTES only and would be automagically
not configured if they depend on something that the arch doesn't
support.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020717100445.H2535-100000>