<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 &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>&gt; 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>
&gt; From: Michael Ho &lt;<a href="mailto:Michael.Ho@bmw.de" target="_blank">Michael.Ho@bmw.de</a>&gt;<br>
&gt; <br>
&gt; The find_program command will fail if it is used on a tool that is<br>
&gt; listed in<br>
&gt; ASSUME_PROVIDED. This is because these tools are in the hosttools<br>
&gt; directory<br>
&gt; which is not listed in CMAKE_FIND_ROOT_PATH so cmake will not find<br>
&gt; them.<br>
&gt; <br>
&gt; Adding the directory HOSTTOOLS_DIR to the CMAKE_FIND_ROOT_PATH<br>
&gt; variable fixes<br>
&gt; the initial issue of needing to search for tools in ASSUME_PROVIDED.<br>
&gt; <br>
&gt; Note that this change alone does not fix the issue because<br>
&gt; find_program will<br>
&gt; by default only look into the subdirectories bin and usr/bin under<br>
&gt; the paths<br>
&gt; in CMAKE_FIND_ROOT_PATH to find the programs and the hosttools<br>
&gt; directory has<br>
&gt; instead the symlinks directly present without these subdirectories.<br>
&gt; <br>
&gt; Set CMAKE_PROGRAM_PATH to by default include the root directory so<br>
&gt; find_program can search the hosttools directory without needing the<br>
&gt; prefix<br>
&gt; directories.<br>
&gt; <br>
&gt; Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;<br>
&gt; (cherry picked from commit 7847f431cd8db59fce8c9401a603c4b0678ee16d)<br>
&gt; Signed-off-by: Armin Kuster &lt;<a href="mailto:akuster808@gmail.com" target="_blank">akuster808@gmail.com</a>&gt;<br>
<br>
Given the fallout in meta-oe, I don&#39;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>