Re: [PATCH v2 5/5] kbuild: clean-up and bug fix of scripts/Makefile.host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux