On Thu, Nov 29, 2001 at 12:53:42PM -0500, Eric S. Raymond wrote:
> Tom Rini <[EMAIL PROTECTED]>:
> > On Thu, Nov 29, 2001 at 12:16:45PM -0500, Eric S. Raymond wrote:
> >  
> > > I think I may have a better idea.  Let the default be a ? : name-valued
> > > expression.  So your format choice could look something like this:
> > > 
> > > choices kernel_format
> > >   VMLINUX VMLINUZ IMAGE ZIMAGE BZIMAGE
> > >   default ((X86 or IA64 or SPARC) ? VMLINUZ : BZIMAGE)
> > 
> > I don't know....  What about other defaults?  If 'vmlinuz' == 'zImage',
> > this might be OK, otherwise we'd need something like:
> > choices kernel_format
> >     VMLINUX VMLINUZ IMAGE ZIMAGE BZIMAGE ZIMAGE.INITRD
> >     default ((X86 or IA64 or SPARC) ? VMLINUZ : (PPC) ? ZIMAGE : BZIMAGE)
> > unless PPC suppress ZIMAGE.INITRD
> > 
> > If I'm reading that right (and I don't know, wouldn't it be
> > default ((IA64 or SPARC) ? VMLINUZ : BZIMAGE), ia64/sparc do vmlinuz,
> > else bzImage).
> 
> I'm not understanding your objection.  Is it to the specific rule above,
> or the proposed mechanism?

I'm just pointing out that we'll end up with somelike really long and
ugly since there'll be at least 3 'defaults' and probably more.  If you
think it's better to have lots of the test ? a : b's nested instead of
making these things architecutre-specific, that's fine I suppose.

> -- 
>               <a href="http://www.tuxedo.org/~esr/";>Eric S. Raymond</a>
> 
> "Government is not reason, it is not eloquence, it is force; like fire, a
> troublesome servant and a fearful master. Never for a moment should it be left
> to irresponsible action."
>       -- George Washington, in a speech of January 7, 1790

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/

_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to