lkml.org 
[lkml]   [2000]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: PATCH - kbuild documentation.
Date
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
> + use MIX_OBJS as follows:
> +
> + active-objs := $(sort $(obj-y) $(obj-m))
> + L_OBJS := $(obj-y)
> + M_OBJS := $(obj-m)
> + MIX_OBJS := $(filter $(export-objs), $(active-objs))
> +
> + which is clearly shorted and arguably clearer.

What if you have

obj-$(CONFIG_FOO) += foo.o foobar.o
obj-$(CONFIG_BAR) += bar.o foobar.o

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?
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King rmk@arm.linux.org.uk --- ---
| | | | http://www.arm.linux.org.uk/personal/aboutme.html / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.064 / U:0.596 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site