On 2014-06-09 06:16, Masahiro Yamada wrote: > -# hostprogs-y := tools/build may have been specified. Retrieve directory > -host-objdirs := $(dir $(__hostprogs)) > -# directory of .o files from prog-objs notation > -host-objdirs += $(dir $(foreach f,$(host-cmulti), $($(f)-objs))) > -# directory of .o files from prog-cxxobjs notation > -host-objdirs += $(dir $(foreach f,$(host-cxxmulti), $($(f)-cxxobjs))) > +# hostprogs-y := tools/build may have been specified. > +# Retrieve also directory of .o files from prog-objs or prog-cxxobjs notation > +host-objdirs := $(dir \ > + $(foreach f, $(__hostprogs), $(f) $($(f)-objs) $($(f)-cxxobjs))) You could also use the $(host-cobjs) and $(host-cxxobjs) variables defined earlier and write host-objdirs := $(dir $(__hostprogs) $(host-cobjs) $(host-cxxobjs)) Michal -- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html