On Fri, Jun 29, 2001 at 07:26:57PM -0500, Peter Samuelson wrote:

> utils-$(CONFIG_FOO) += fooboot
> utils-$(CONFIG_BAR) += barboot bazboot
> 
> bootdirs-$(CONFIG_FOO) += foo
> bootdirs-$(CONFIG_BAR) += bar
> 
> # Targets for booting
> BOOT_TARGETS = zImage zImage.initrd znetboot znetboot.initrd
> $(BOOT_TARGETS): sImage vmapus images/vmlinux.gz ....
>       $(MAKE) -C utils $(utils-y)
>       for d in $(bootdirs-y); do $(MAKE) -C $$d $@; done
> 
> The point here is that you don't use $(subdir-y) for the sub-arch boot
> dirs.

Yes, but I want to use subdir- so that deps get done and handled automagically.
But this does work, thanks!

> If you can assume that CONFIG_FOO and CONFIG_BAR are mutually
> exclusive, you don't need the for loop.

Yes, but CONFIG_FOO can (and does) have multiple dirs it needs to go into.

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

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

Reply via email to