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
	select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
	help
	  HTTP/2-based RPC framework.

	  https://grpc.io

comment "python-grpcio needs a toolchain w/ C++"
	depends on BR2_PACKAGE_PYTHON_GRPCIO_ARCH_SUPPORTS
	depends on !BR2_INSTALL_LIBSTDCPP
