package/python-grpcio: add BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS

Fix the following build failure raised since the addition of the package
in commit ea45b95c0e:

In file included from third_party/boringssl-with-bazel/src/include/openssl/base.h:78,
                 from third_party/boringssl-with-bazel/src/include/openssl/ssl.h:145,
                 from ./src/core/tsi/ssl/key_logging/ssl_key_logging.h:23,
                 from ./src/core/lib/security/security_connector/ssl_utils.h:42,
                 from ./src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.h:36,
                 from ./src/core/ext/xds/certificate_provider_store.h:44,
                 from src/core/ext/xds/certificate_provider_store.cc:21:
third_party/boringssl-with-bazel/src/include/openssl/target.h:62:2: error: #error "Unknown target CPU"
   62 | #error "Unknown target CPU"
      |  ^~~~~

Fixes: ea45b95c0e
 - http://autobuild.buildroot.org/results/36686aca1b45f0bf692a60e67a48424b561930a3
 - http://autobuild.buildroot.org/results/4f79c7b1b2fc3306f300ae3ec0aa4439725814c1

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine 2024-03-01 21:50:37 +01:00 committed by Peter Korsgaard
parent 9002b818be
commit 2bfad952c3
3 changed files with 16 additions and 0 deletions

View File

@ -1,6 +1,7 @@
config BR2_PACKAGE_PYTHON_GRPC_REQUESTS
bool "python-grpc-requests"
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-cryptography
depends on BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS # python-grpcio
depends on BR2_INSTALL_LIBSTDCPP # python-grpcio
select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
select BR2_PACKAGE_PYTHON_GOOGLE_API_CORE # runtime
@ -12,4 +13,6 @@ config BR2_PACKAGE_PYTHON_GRPC_REQUESTS
https://github.com/wesky93/grpc_requests
comment "python-grpcio-requests needs a toolchain w/ C++"
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
depends on BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS
depends on !BR2_INSTALL_LIBSTDCPP

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_PYTHON_GRPCIO_REFLECTION
bool "python-grpcio-reflection"
depends on BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS # python-grpcio
depends on BR2_INSTALL_LIBSTDCPP # python-grpcio
select BR2_PACKAGE_PYTHON_GRPCIO # runtime
select BR2_PACKAGE_PYTHON_PROTOBUF # runtime
@ -9,4 +10,5 @@ config BR2_PACKAGE_PYTHON_GRPCIO_REFLECTION
https://grpc.io
comment "python-grpcio-reflection needs a toolchain w/ C++"
depends on BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS
depends on !BR2_INSTALL_LIBSTDCPP

View File

@ -1,5 +1,15 @@
config BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS
bool
# see third_party/boringssl-with-bazel/src/include/openssl/target.h
default y if BR2_aarch64 || BR2_aarch64_be
default y if BR2_arm || BR2_armeb
default y if BR2_i386 || BR2_x86_64
default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
default y if BR2_riscv
config BR2_PACKAGE_PYTHON_GRPCIO
bool "python-grpcio"
depends on BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS
depends on BR2_INSTALL_LIBSTDCPP
help
HTTP/2-based RPC framework.
@ -7,4 +17,5 @@ config BR2_PACKAGE_PYTHON_GRPCIO
https://grpc.io
comment "python-grpcio needs a toolchain w/ C++"
depends on BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS
depends on !BR2_INSTALL_LIBSTDCPP