Re: [KBUILD] Re: PATCH - kbuild documentation.

2000-11-30 Thread Peter Samuelson
[Neil Brown <[EMAIL PROTECTED]>] > O_OBJS := $(shell echo $(obj-y) | tr ' ' '\n' | cat -n | sort -u +1 | sort -n | cut >-f2) Clever. I like pipelines too. Here is a one-fork equivalent, untested: nodups = $(shell g=' '; for f in $(1); do case $$g in (*" $$f "*) ;; (*) g="$$g$$f "; echo $$

Re: PATCH - kbuild documentation.

2000-11-30 Thread Neil Brown
On Thursday November 30, [EMAIL PROTECTED] wrote: > Neil Brown writes: > > + An example for libraries from drivers/acorn/scsi/Makefile: > > This is no longer true; you'll have to find another example. > > > + As ordering is not so important in libraries, this still uses > > + LX_OBJS and M

Re: [KBUILD] Re: PATCH - kbuild documentation.

2000-11-30 Thread Christoph Hellwig
On Thu, Nov 30, 2000 at 12:36:28AM +, Russell King wrote: > and CONFIG_FOO=y and CONFIG_BAR=m? What about CONFIG_FOO=y and > CONFIG_BAR=y? Do we still support this method? If not, what is the > recommended way of doing this sort of stuff? To do this you need to extend the scheme a little b

Re: PATCH - kbuild documentation.

2000-11-29 Thread Russell King
Neil Brown writes: > + An example for libraries from drivers/acorn/scsi/Makefile: This is no longer true; you'll have to find another example. > + As ordering is not so important in libraries, this still uses > + LX_OBJS and MX_OBJS, though (presumably) it could be changed to > +

PATCH - kbuild documentation.

2000-11-29 Thread Neil Brown
Linus, I thought I would document what I had learnt about Makefiles in making the initialisation of drivers/md work better. This patch (minus a few typos that I have since found and corrected) was blessed by Michael Chastain on linux-kbuild. Ofcourse, running "make vmlinux" doesn't convert