Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2001 14:23:47 -0700
From:      Dima Dorfman <dima@unixfreak.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        hackers@FreeBSD.org
Subject:   Re: Two Junior Kernel Hacker tasks.. 
Message-ID:  <20010622212347.287CB3E28@bazooka.unixfreak.org>
In-Reply-To: <XFMail.010622105201.jhb@FreeBSD.org>; from jhb@FreeBSD.org on "Fri, 22 Jun 2001 10:52:01 -0700 (PDT)"

next in thread | previous in thread | raw e-mail | index | archive | help
John Baldwin <jhb@FreeBSD.org> writes:
> 1) Split sys/i386/conf/NOTES up into MI and MD parts.  The MI portion would
>    become sys/conf/NOTES and would contain all the machine independent
>    options and devices.  The MD options and devices would live in
>    sys/${MACHINE_ARCH}/conf/NOTES.  This would include altering the
>    sys/${MACHINE_ARCH}/conf/Makefile's (based on the LINT: target in the
>    i386 Makefile) to concatenate the MI and MD NOTES files together to
>    feed to makelint.pl to build LINT.  This addresses problems with not having
>    a place for non-i386 kernel options/devices that aren't in GENERIC for
>    example.

OpenBSD (and I think NetBSD) solve this problem by having an 'include'
directive in the kernel config file.  E.g., in
sys/arch/i386/conf/GENRIC (the MD config file):

	machine i386
	...
	include "../../../conf/GENREIC"		# <-- MI config file
	...

I think this is much more general than just splitting NOTES.  Is there
any reason we shouldn't do this?  I'd be willing to implement
'include' in config(8).

Thanks,

					Dima Dorfman
					dima@unixfreak.org

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




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