cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer
Observer
171 Views
Registered: ‎09-27-2018

gRPC protoc plugin not exported in native sdk using Petalinux 2019.1

Hi everyone,

I'm building a project with a dependency on grpc (or will have). I want to export the protobuf compiler (protoc) and the grpc code generator pugins into the native sdk, so I can use the tools inside the 2019.1 xsdk (yes, I'm going to migrate to Vitis once 2020.1 in released).

I have added grpc as depdency in my own application recipe, which contains the following statement.

DEPENDS += "grpc grpc-native"

Furthermore I have added the following lines to petalinuxbsp.conf:

TOOLCHAIN_HOST_TASK_append = " nativesdk-protobuf-compiler"
TOOLCHAIN_HOST_TASK_append = " nativesdk-grpc"

I can build my project, and export the SDK. I can see all libraries (including grpc) in the SDK, except the grpc-plugin.

sdk/sysroots/x86_64-petalinux-linux$ find . -name "protoc"
./usr/bin/protoc
sdk/sysroots/x86_64-petalinux-linux$ find . -name "grpc_cpp_plugin"
sdk/sysroots/x86_64-petalinux-linux$

Any idea how I can this plugin into the native sdk? There is an arm version built, which I have no use for.

sdk/sysroots/cortexa9t2hf-neon-xilinx-linux-gnueabi$ find . -name "grpc_cpp_plugin"
./usr/bin/.debug/grpc_cpp_plugin
./usr/bin/grpc_cpp_plugin
sdk/sysroots/cortexa9t2hf-neon-xilinx-linux-gnueabi$

Now I'm still a bit of a noob with Yocto/OpenEmbedded and bitbake, so maybe I'm missing something obvious. Any pointers how to get the grpc plugin into the native part of the SDK? Thanks!

Cheers,
Vincent

0 Kudos