<div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 29, 2019 at 9:19 AM Richard Purdie <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 2019-10-25 at 23:49 -0700, Armin Kuster wrote:<br>
> From: Michael Ho <<a href="mailto:Michael.Ho@bmw.de" target="_blank">Michael.Ho@bmw.de</a>><br>
> <br>
> The find_program command will fail if it is used on a tool that is<br>
> listed in<br>
> ASSUME_PROVIDED. This is because these tools are in the hosttools<br>
> directory<br>
> which is not listed in CMAKE_FIND_ROOT_PATH so cmake will not find<br>
> them.<br>
> <br>
> Adding the directory HOSTTOOLS_DIR to the CMAKE_FIND_ROOT_PATH<br>
> variable fixes<br>
> the initial issue of needing to search for tools in ASSUME_PROVIDED.<br>
> <br>
> Note that this change alone does not fix the issue because<br>
> find_program will<br>
> by default only look into the subdirectories bin and usr/bin under<br>
> the paths<br>
> in CMAKE_FIND_ROOT_PATH to find the programs and the hosttools<br>
> directory has<br>
> instead the symlinks directly present without these subdirectories.<br>
> <br>
> Set CMAKE_PROGRAM_PATH to by default include the root directory so<br>
> find_program can search the hosttools directory without needing the<br>
> prefix<br>
> directories.<br>
> <br>
> Signed-off-by: Ross Burton <<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>><br>
> (cherry picked from commit 7847f431cd8db59fce8c9401a603c4b0678ee16d)<br>
> Signed-off-by: Armin Kuster <<a href="mailto:akuster808@gmail.com" target="_blank">akuster808@gmail.com</a>><br>
<br>
Given the fallout in meta-oe, I don't plan to take this.<br>
</blockquote><div dir="auto"> </div><div dir="auto">+1</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Cheers,<br>
<br>
Richard<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div></div>