<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 1 September 2016 at 12:34, Pietro <span dir="ltr"><<a href="mailto:pulsarpietro@posteo.net" target="_blank">pulsarpietro@posteo.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">Maciej Borzęcki<br>
<<a href="mailto:maciej.borzecki@rndity.com">maciej.borzecki@rndity.com</a>> writes:<br>
<br>
> On Thu, Sep 1, 2016 at 10:40 AM, Pietro <<a href="mailto:pulsarpietro@posteo.net">pulsarpietro@posteo.net</a>> wrote:<br>
>> Maciej Borzęcki<br>
>> <<a href="mailto:maciej.borzecki@rndity.com">maciej.borzecki@rndity.com</a>> writes:<br>
>><br>
>>> On Wed, Aug 31, 2016 at 6:44 PM, Pietro <<a href="mailto:pulsarpietro@posteo.net">pulsarpietro@posteo.net</a>> wrote:<br>
>>>> Hi all,<br>
>>>><br>
>>>> I am new to the Yocto building system and I could be talking nonsense. I<br>
>>>> used to work with buildroot time ago and I remember there is an area<br>
>>>> where compiled software/packages/tools previously built are "staged" and<br>
>>>> used when building other packages.<br>
>>>><br>
>>>> Is there something like that available with Yocto ? Specifically I would<br>
>>>> like to add a package which uses the Google Protocol Buffer, I do not have<br>
>>>> administrator rights on the machine and I can't install the packages I<br>
>>>> need system wise.<br>
>>>><br>
>>>> Is it possible to add recipes and use them at building time without<br>
>>>> including them in the image being generated ?<br>
>>>><br>
>>>> A good example for that would be the protoc, the protocol buffer description<br>
>>>> file compiler.<br>
>>>><br>
>>><br>
>>> There is a recipe for protobuf in meta-oe (2.6.1). All you need to do,<br>
>>> is include meta-oe in your layers (bblayers.conf) and have<br>
>>> protobuf-native listed in DEPENDS inside your package recipe.<br>
>>><br>
>>> The protoc compiler will be available in the PATH when package is<br>
>>> being built, so autotools checks like AC_CHECK_PROG/AC_PATH_PROG<br>
>>> should be able to find it.<br>
>>><br>
>>> Cheers,<br>
>>> --<br>
>>> Maciej Borzecki<br>
>>> RnDity<br>
>> Thanks a lot.<br>
>><br>
>> I have added the DEPENDS line and it indeed downloads and build the some<br>
>> protobuf related stuff, where did you get the dependency name from ?<br>
>> I can't see the protobuf-native as a recipe in the meta-oe website :<br>
>><br>
>> <a href="https://layers.openembedded.org/layerindex/branch/master/layer/meta-oe/" rel="noreferrer" target="_blank">https://layers.openembedded.<wbr>org/layerindex/branch/master/<wbr>layer/meta-oe/</a><br>
><br>
> It's just a mechanism that allows for building the native (i.e. for<br>
> the host) packages, and these are autmatically named ${PN}-native.<br>
> There should a BBCLASSEXTEND = "..native.." stanza inside the protobuf<br>
> recipe that enables this feature.<br>
><br>
>><br>
>> I have just realised that GRPC (<a href="http://www.grpc.io/" rel="noreferrer" target="_blank">http://www.grpc.io/</a>) is needed for my<br>
>> project, it is a library which uses the protobuffers, is there a<br>
>> recipe/package which provides them around or do I need to create my own<br>
>> recipe ?<br>
><br>
> You can try searching for a recipe at <a href="http://layers.openembedded.org" rel="noreferrer" target="_blank">http://layers.openembedded.org</a><br>
> If there's none, try to write your own. This might be a good changes<br>
> to get yourself acquainted with `devtool` tool that will help you in<br>
> the process.<br>
><br>
>><br>
>> I would like to check the root filesystem being generated as part of the<br>
>> build process, where is it ?<br>
>><br>
><br>
> ${TMPDIR}/<machine>_<distro?>/<wbr><imagename>/../rootfs<br>
><br>
> for instance, for my current build:<br>
><br>
> tmp/work/vexpress_qemu-poky-<wbr>linux-gnueabi/core-image-<wbr>minimal/1.0-r0/rootfs<br>
><br>
> --<br>
> Maciej Borzecki<br>
> RnDity<br>
<br>
</div></div>Thanks, much appreciated.<br>
<br>
Do you know where the software which is not included in the image - such<br>
us protoc - is it stored ?<br></blockquote><div><br></div><div>The sysroots are in ${TMPDIR}/sysroots/: The native sysroot (probably x86_64-linux) will be one of those. </div><div><br></div><div>The corresponding protobuf work directory will be in ${TMPDIR}/work/<target_system>/protobuf<br></div><div><br></div><div>See the Yocto dev manual and reference manual for more details about these.</div><div><a href="http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html">http://www.yoctoproject.org/docs/current/dev-manual/dev-manual.html</a><br></div><div><a href="http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html">http://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html</a><br></div><div><br></div><div>HTH,</div><div> Jussi</div></div></div></div>