Eric S. Raymond wrote: > Keith Owens <[EMAIL PROTECTED]>: > >>On Mon, 12 Nov 2001 12:53:49 -0500, >>"Eric S. Raymond" <[EMAIL PROTECTED]> wrote: >> >>>I understand what you're trying to do, but not why CML2 has to be involved. >>>What tests or operations do you need CML2 to be able to spport on lists, >>>and what action do you want to trigger? >>> >>I need a variable out of both CML1 and CML2 that contains a list. That >>list will vary from one architecture to another and possibly from one >>kernel to another (old HIGHMEM would have been in the list, new HIGHMEM >>is not). The simplest way of defining a list is a string variable >>containing white space separated names. I just want CML2 to let me >>derive a variable from a string expression. >> > > OK. I can do that. How are you going to condition the value on an > architecture, though? Is your derivation going to look something like this? > > derive MYVAR from (X86 ? "a" : (PPC ? "b" : (ARM ? "c" : "x")))
A little syntactic sugar would serve: derive MYVAR from "a" if X86 derive MYVAR from "b" if PPC derive MYVAR from "c" if ARM derive MYVAR from "x" Multiple derive statmeents with the same var are merged thus; it is still an error to have more than one unconditional derivation, which in the presence of conditional derivations is made the "else" clause. All this can be compiled away, leaving cmlconfigure unchanges. The default statement could get the same treatment. -- Not to perambulate || John Cowan <[EMAIL PROTECTED]> the corridors || http://www.reutershealth.com during the hours of repose || http://www.ccil.org/~cowan in the boots of ascension. \\ Sign in Austrian ski-resort hotel _______________________________________________ kbuild-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/kbuild-devel