From owner-freebsd-current@FreeBSD.ORG Fri Mar 28 02:43:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CFB837B401 for ; Fri, 28 Mar 2003 02:43:48 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 036D343FBD for ; Fri, 28 Mar 2003 02:43:47 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id VAA17203; Fri, 28 Mar 2003 21:43:40 +1100 Date: Fri, 28 Mar 2003 21:43:39 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Glenn Johnson In-Reply-To: <20030327222537.GA57796@node1.cluster.srrc.usda.gov> Message-ID: <20030328213710.A6674@gamplex.bde.org> References: <20030327222537.GA57796@node1.cluster.srrc.usda.gov> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-26.7 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: current@freebsd.org Subject: Re: including a kernel config in another X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2003 10:43:49 -0000 On Thu, 27 Mar 2003, Glenn Johnson wrote: > I would like to include a kernel config file in another, as is done with > the SMP config file and how it includes the GENERIC config file. When > I try this with including any config file other than GENERIC, I get a > syntax error. IS GENERIC the only config that can be included or am I > doing something wrong? "include" in config files is buggy. Here is some saved mail about it. % On Tue, 25 Feb 2003, Bruce Evans wrote: % % > On Mon, 24 Feb 2003, David O'Brien wrote: % > % > > On Mon, Feb 24, 2003 at 12:55:04PM +1100, Bruce Evans wrote: % > > > BTW, I've noticed the following defects in `include': % > > > - doesn't work if nested. % > > % > > Hum... I have my own i386 kernel config that includes SMP, which in turn % > > includes GENERIC. Is this the type of nested includes you're referring % > > to? % > % > It was, but this seems to have been pilot error (I got a syntax error, % > which was probably from not changing myKERNEL.core in the include % > statement). % % More testing showed that it wasn't pilot error. Including GENERIC nested % worked in all cases that I tried, but including the core of my kernel % failed in all cases that I tried. I reduced the failure to the following. % Even non-nested includes are broken in some cases: % % %%% % Script started on Tue Feb 25 14:16:01 2003 % ttyp0:bde@besplex:/usr/src/sys/i386/conf> cat FOOBAR % include FOO % ttyp0:bde@besplex:/usr/src/sys/i386/conf> cat FOO % machine i386 % cpu I486_CPU % ident FOO % ttyp0:bde@besplex:/usr/src/sys/i386/conf> config FOOBAR % config: FOO:1: syntax error % ttyp0:bde@besplex:/usr/src/sys/i386/conf> config FOO % Kernel build directory is ../compile/FOO % Don't forget to do a ``make depend'' % ttyp0:bde@besplex:/usr/src/sys/i386/conf> exit % % Script done on Tue Feb 25 14:16:23 2003 % %%% % % Bruce Bruce