diff mbox series

grpc: point to the native protobuf compiler binary

Message ID 20230609023715.1248099-1-denis@denix.org
State Under Review
Headers show
Series grpc: point to the native protobuf compiler binary | expand

Commit Message

Denys Dmytriyenko June 9, 2023, 2:37 a.m. UTC
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 <denys@konsulko.com>
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
---
 meta-oe/recipes-devtools/grpc/grpc_1.50.1.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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 7b8a25c27..958992e1e 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 \