On Thu, 29 Nov 2001 02:46:38 -0500, 
"Eric S. Raymond" <[EMAIL PROTECTED]> wrote:
>Keith Owens <[EMAIL PROTECTED]>:
>> I am having some problems with the kernel format option, every arch
>> needs this option but the choice list and default will vary between
>> architectures.  I am slowly coming to the conclusion that I need
>> kernel_format_x86, kernel_format_ia64 etc. then suppress the entire
>> choice for each arch rather than trying to suppress individual options
>> on a common entry.
>
>Ugh.  That's nasty.  Can you imagine a change in the spec language that
>would make this unnecessary?

The problem is the default which needs to vary from one arch to
another.  i386 defaults to bzImage, ia64 to vmlinuz etc.  The default
choice for one arch may be completely suppressed on another arch.  The
only way I can see round that is to make the default a variable rather
than a string, which introduces its own problems.

The other part of the problem is deciding which kernel format choices
to suppress.  Writing

  unless (ia64 or x86 or sparc or sparc64 or ...) suppress VMLINUZ

is nasty, it really needs the reverse of suppress.  Default to suppress,
select if any of several conditions are true.

  unsuppress VMLINUZ if x86
  unsuppress VMLINUZ if ia64
  unsuppress VMLINUZ if sparc

then the unsuppress commands can be in the arch specific rules.cml,
instead of one big rule that has to be updated for each new arch.

I'm not sure it is worth the effort to change CML2, I can get the same
effect by defining per arch symbols.


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

Reply via email to