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_at_besplex:/usr/src/sys/i386/conf> cat FOOBAR % include FOO % ttyp0:bde_at_besplex:/usr/src/sys/i386/conf> cat FOO % machine i386 % cpu I486_CPU % ident FOO % ttyp0:bde_at_besplex:/usr/src/sys/i386/conf> config FOOBAR % config: FOO:1: syntax error % ttyp0:bde_at_besplex:/usr/src/sys/i386/conf> config FOO % Kernel build directory is ../compile/FOO % Don't forget to do a ``make depend'' % ttyp0:bde_at_besplex:/usr/src/sys/i386/conf> exit % % Script done on Tue Feb 25 14:16:23 2003 % %%% % % Bruce BruceReceived on Fri Mar 28 2003 - 01:43:48 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:02 UTC