[yocto] question on how to include package to the SDK

Henrik Jensen Henrik.Jensen at prevas.se
Tue Mar 27 04:13:16 PDT 2018


If you are using protobuf from meta-oe, you need to add nativesdk-protobuf-compiler to the SDK.

--
Henrik Jensen, Software Developer, Prevas A/S
Visit: Hedeager 3, DK-8200 Aarhus N
Mobile: +45 2228 4065
Switchboard: +45 3315 9090
henrik.jensen at prevas.dk
www.prevas.com

________________________________________
From: yocto-bounces at yoctoproject.org <yocto-bounces at yoctoproject.org> on behalf of Måns Zigher <mans.zigher at gmail.com>
Sent: Tuesday, March 27, 2018 10:07:15 AM
To: yocto at yoctoproject.org
Subject: [yocto]  question on how to include package to the SDK

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<https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#var-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 is 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




More information about the yocto mailing list