<div dir="ltr">ping</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 1, 2018 at 1:22 PM, Martin Jansa <span dir="ltr">&lt;<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Chen Qi &lt;<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;<br>
<br>
Add tools required by testimage to HOSTTOOLS only when testimage is<br>
inherited. These tools, as described in the comment, are only required<br>
by the testimage task. So this change should not have negtive effect.<br>
This would also solve build error on hosts which miss some tool such as scp.<br>
<br>
Cherry-picked from rocko 8ca61a5464743ff85b6d2688611275<wbr>0d6ddd13e0<br>
<br>
Signed-off-by: Chen Qi &lt;<a href="mailto:Qi.Chen@windriver.com">Qi.Chen@windriver.com</a>&gt;<br>
Signed-off-by: Ross Burton &lt;<a href="mailto:ross.burton@intel.com">ross.burton@intel.com</a>&gt;<br>
Signed-off-by: Richard Purdie &lt;<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@<wbr>linuxfoundation.org</a>&gt;<br>
Signed-off-by: Martin Jansa &lt;<a href="mailto:Martin.Jansa@gmail.com">Martin.Jansa@gmail.com</a>&gt;<br>
---<br>
 meta/conf/bitbake.conf | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf<br>
index 2dac3a1481..f3994fc642 100644<br>
--- a/meta/conf/bitbake.conf<br>
+++ b/meta/conf/bitbake.conf<br>
@@ -469,7 +469,7 @@ HOSTTOOLS += &quot; \<br>
 &quot;<br>
<br>
 # Tools needed to run testimage runtime image testing<br>
-HOSTTOOLS += &quot;ip ping ps scp ssh stty&quot;<br>
+HOSTTOOLS += &quot;${@[&#39;&#39;, &#39;ip ping ps scp ssh stty&#39;][bb.data.inherits_class(<wbr>&#39;testimage&#39;, d)]}&quot;<br>
<br>
 # Link to these if present<br>
 HOSTTOOLS_NONFATAL += &quot;aws ccache gcc-ar gpg ld.bfd ld.gold nc sftp socat sudo&quot;<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.15.1<br>
<br>
</font></span></blockquote></div><br></div>