diff options
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 | |||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
5 | --- a/third_party/boringssl/include/openssl/base.h | 5 | --- a/third_party/boringssl/include/openssl/base.h |
6 | +++ b/third_party/boringssl/include/openssl/base.h | 6 | +++ b/third_party/boringssl/include/openssl/base.h |
7 | @@ -108,6 +108,9 @@ extern "C" { | 7 | @@ -108,6 +108,14 @@ extern "C" { |
8 | #elif defined(__mips__) && defined(__LP64__) | 8 | #elif defined(__mips__) && defined(__LP64__) |
9 | #define OPENSSL_64_BIT | 9 | #define OPENSSL_64_BIT |
10 | #define OPENSSL_MIPS64 | 10 | #define OPENSSL_MIPS64 |
11 | +#elif defined(__riscv) && defined(__riscv_xlen) | 11 | +#elif defined(__riscv) |
12 | +#define OPENSSL_64_BIT | 12 | +# if (__riscv_xlen == 64) |
13 | +#define OPENSSL_RISCV64 | 13 | +# define OPENSSL_64_BIT |
14 | +# define OPENSSL_RISCV64 | ||
15 | +# elif(__riscv_xlen == 32) | ||
16 | +# define OPENSSL_32_BIT | ||
17 | +# define OPENSSL_RISCV32 | ||
18 | +# endif | ||
14 | #elif defined(__pnacl__) | 19 | #elif defined(__pnacl__) |
15 | #define OPENSSL_32_BIT | 20 | #define OPENSSL_32_BIT |
16 | #define OPENSSL_PNACL | 21 | #define OPENSSL_PNACL |