<div dir="ltr">Hi,<div><br></div><div>Thanks for your response.</div><div><br></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">BR</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Mans Zigher</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-03-27 11:03 GMT+02:00 Burton, Ross <span dir="ltr">&lt;<a href="mailto:ross.burton@intel.com" target="_blank">ross.burton@intel.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The main problem is that protoc isn&#39;t in the protobuf packages, but<br>
protobuf-compiler (as can be seen with oe-pkgdata-util list-pkg-files<br>
-p protobuf).<br>
<br>
Add nativesdk-protobuf-compiler to TOOLCHAIN_HOST_TASK.  You&#39;ll also<br>
want to use _append instead of += so you don&#39;t remove more than you<br>
add.<br>
<br>
Ross<br>
<div class="HOEnZb"><div class="h5"><br>
On 27 March 2018 at 09:25, Måns Zigher &lt;<a href="mailto:mans.zigher@gmail.com">mans.zigher@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have package that require protobuf and the compiler protoc. I have<br>
&gt; included the following<br>
&gt;<br>
&gt; DEPENDS += &quot; protobuf protobuf-native&quot;<br>
&gt;<br>
&gt; and<br>
&gt;<br>
&gt; RDEPENDS_${PN} += &quot; protobuf&quot;<br>
&gt;<br>
&gt; The build works as intended the problem now is that the protoc is not<br>
&gt; included in the SDK. In the Yocto ref manual I found the following<br>
&gt; description for TOOLCHAIN_HOST_TASK<br>
&gt;<br>
&gt; &quot;This variable lists packages the OpenEmbedded build system uses when<br>
&gt; building an SDK, which contains a cross-development environment. The<br>
&gt; packages specified by this variable are part of the toolchain set that runs<br>
&gt; on the SDKMACHINE, and each package should usually have the prefix<br>
&gt; nativesdk-.&quot;<br>
&gt;<br>
&gt; So I have also in by image bb-file included the following<br>
&gt;<br>
&gt; TOOLCHAIN_HOST_TASK += &quot; nativesdk-protobuf&quot;<br>
&gt;<br>
&gt; The build passed without any errors but the protoc is still not included in<br>
&gt; the native sdk. It  is form some reason included in the target part. I would<br>
&gt; really appreciate if you could en-light me on this topic on how to include a<br>
&gt; package in the sdk.<br>
&gt;<br>
&gt; BR<br>
&gt; Mans Zigher<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><span class="HOEnZb"><font color="#888888">&gt; --<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
&gt;<br>
</font></span></blockquote></div><br></div>