Subject: Re: port-sparc/5220: after autoconfig changes, impossible to build sun4c-only kernel
To: Jason R Thorpe <thorpej@nas.nasa.gov>
From: Todd Vierling <tv@NetBSD.ORG>
List: netbsd-bugs
Date: 03/27/1998 18:30:36
On Fri, 27 Mar 1998, Jason R Thorpe wrote:
: For every driver that has multiple attachments, the file needs to
: be split like so (example is clock.c):
:
: Mostek clock common code: clock.c
: mainbus attachment: clock_mainbus.c
: obio attachment: clock_obio.c
That's a lot of source bloat for what it's worth. Wouldn't it be easier to
set the busses to have `needs-flag' in files.sparc, and #if-conditionalize
the appropriate code? With needs-flag and use of the proper
config-generated .h file, as long as you do the proper "make depend", it
will rebuild those files that change with these flags when appropriate.
--
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)