From 54885a5af2da26d7c84f8aff6fc845c2681b2890 Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Fri, 9 Jun 2023 02:37:15 +0000 Subject: [PATCH] grpc: point to the native protobuf compiler binary Latest version of grpc fails to build nativesdk variant since it finds and tries to execute protoc binary from nativesdk-protobuf instead of protobuf-native. Shortcut the detection logic by pointing to the correct version of protoc binary in native sysroot. Signed-off-by: Denys Dmytriyenko Signed-off-by: Denys Dmytriyenko Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/grpc/grpc_1.50.1.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-devtools/grpc/grpc_1.50.1.bb b/meta-oe/recipes-devtools/grpc/grpc_1.50.1.bb index 7b8a25c277c..958992e1e35 100644 --- a/meta-oe/recipes-devtools/grpc/grpc_1.50.1.bb +++ b/meta-oe/recipes-devtools/grpc/grpc_1.50.1.bb @@ -37,6 +37,7 @@ EXTRA_OECMAKE = " \ -DgRPC_ZLIB_PROVIDER=package \ -DgRPC_SSL_PROVIDER=package \ -DgRPC_PROTOBUF_PROVIDER=package \ + -D_gRPC_PROTOBUF_PROTOC_EXECUTABLE=${STAGING_BINDIR_NATIVE}/protoc \ -DgRPC_ABSL_PROVIDER=package \ -DgRPC_RE2_PROVIDER=package \ -DgRPC_INSTALL=ON \