diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-04-29 21:32:43 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-04-29 22:32:17 -0700 |
commit | e25bae55c290be7532a642f179b379c48460f968 (patch) | |
tree | d04d90a8e5aa3d1e6f457daef55e041aee4017b2 /meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch | |
parent | 243a28db17dc446819e3b4719b5699b5392b7ad8 (diff) | |
download | meta-openembedded-e25bae55c290be7532a642f179b379c48460f968.tar.gz |
python3-grpcio: Fix build with riscv32
Ensure libseil-cpp can build for rv32 and boringssl riscv patch
considers rv32 separate from rv64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch b/meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch index b55d50bde5..8c9ffa21b7 100644 --- a/meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch +++ b/meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch @@ -4,13 +4,18 @@ Upstream-Status: Pending Signed-off-by: Khem Raj <raj.khem@gmail.com> --- a/third_party/boringssl/include/openssl/base.h +++ b/third_party/boringssl/include/openssl/base.h -@@ -108,6 +108,9 @@ extern "C" { +@@ -108,6 +108,14 @@ extern "C" { #elif defined(__mips__) && defined(__LP64__) #define OPENSSL_64_BIT #define OPENSSL_MIPS64 -+#elif defined(__riscv) && defined(__riscv_xlen) -+#define OPENSSL_64_BIT -+#define OPENSSL_RISCV64 ++#elif defined(__riscv) ++# if (__riscv_xlen == 64) ++# define OPENSSL_64_BIT ++# define OPENSSL_RISCV64 ++# elif(__riscv_xlen == 32) ++# define OPENSSL_32_BIT ++# define OPENSSL_RISCV32 ++# endif #elif defined(__pnacl__) #define OPENSSL_32_BIT #define OPENSSL_PNACL |