[Peter Samuelson]
> 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
I just noticed -- if bootdirs-y is empty, this will fail with a syntax
error. Likewise, if utils-y is empty it will do the Wrong Thing. I
don't know if either is possible, but if so:
$(BOOT_TARGETS): sImage vmapus images/vmlinux.gz ....
ifdef utils-y
$(MAKE) -C utils $(utils-y)
endif
ifdef bootdirs-y
for d in $(bootdirs-y); do $(MAKE) -C $$d $@; done
endif
Peter
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/kbuild-devel