[OE-core] Question about how to get package included in SDK

Måns Zigher mans.zigher at gmail.com
Tue Mar 27 09:37:12 UTC 2018


Hi,

Thanks for your response.

BR
Mans Zigher

2018-03-27 11:03 GMT+02:00 Burton, Ross <ross.burton at intel.com>:

> The main problem is that protoc isn't in the protobuf packages, but
> protobuf-compiler (as can be seen with oe-pkgdata-util list-pkg-files
> -p protobuf).
>
> Add nativesdk-protobuf-compiler to TOOLCHAIN_HOST_TASK.  You'll also
> want to use _append instead of += so you don't remove more than you
> add.
>
> Ross
>
> On 27 March 2018 at 09:25, Måns Zigher <mans.zigher at gmail.com> wrote:
> > Hi,
> >
> > I have package that require protobuf and the compiler protoc. I have
> > included the following
> >
> > DEPENDS += " protobuf protobuf-native"
> >
> > and
> >
> > RDEPENDS_${PN} += " protobuf"
> >
> > The build works as intended the problem now is that the protoc is not
> > included in the SDK. In the Yocto ref manual I found the following
> > description for TOOLCHAIN_HOST_TASK
> >
> > "This variable lists packages the OpenEmbedded build system uses when
> > building an SDK, which contains a cross-development environment. The
> > packages specified by this variable are part of the toolchain set that
> runs
> > on the SDKMACHINE, and each package should usually have the prefix
> > nativesdk-."
> >
> > So I have also in by image bb-file included the following
> >
> > TOOLCHAIN_HOST_TASK += " nativesdk-protobuf"
> >
> > The build passed without any errors but the protoc is still not included
> in
> > the native sdk. It  is form some reason included in the target part. I
> would
> > really appreciate if you could en-light me on this topic on how to
> include a
> > package in the sdk.
> >
> > BR
> > Mans Zigher
> >
> >
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180327/ec216a36/attachment-0002.html>


More information about the Openembedded-core mailing list