Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Mar 2003 21:43:39 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Glenn Johnson <gjohnson@srrc.ars.usda.gov>
Cc:        current@freebsd.org
Subject:   Re: including a kernel config in another
Message-ID:  <20030328213710.A6674@gamplex.bde.org>
In-Reply-To: <20030327222537.GA57796@node1.cluster.srrc.usda.gov>
References:  <20030327222537.GA57796@node1.cluster.srrc.usda.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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