diff options
author | Christoph Müllner <christoph.muellner@vrull.eu> | 2023-01-21 15:55:27 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2023-01-24 11:01:20 +0000 |
commit | e787c57c538d0922004e49a10be0d403af773272 (patch) | |
tree | e9af5d933461677ed728c4183ff39b2a2591e009 /.github | |
parent | af0a4c46846323fc33f713b5ccd758a526c19ed0 (diff) | |
download | openssl-new-e787c57c538d0922004e49a10be0d403af773272.tar.gz |
CI: cross-compile: riscv: Add RV64 machine with Zb* and Zk*
RISC-V already has a couple of routines to accelerate cryptographic
calculations using ISA extensions. Let's add a cross-compile target
that allows the CI to test this code.
The new defined machine is a rv64gc machine with
* all Bitmanip extensions (Zb*)
* all Scalar Crypto extensions (Zk*)
This selection matches the supported RISC-V extensions in OpenSSL.
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20107)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cross-compiles.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/cross-compiles.yml b/.github/workflows/cross-compiles.yml index 124553c743..6c226e9ec1 100644 --- a/.github/workflows/cross-compiles.yml +++ b/.github/workflows/cross-compiles.yml @@ -94,10 +94,19 @@ jobs: # resolves it. target: -O2 linux-ppc64le }, { + # RV64GC arch: riscv64-linux-gnu, libs: libc6-dev-riscv64-cross, target: linux64-riscv64 }, { + # RV64GC with bitmanip and scalar crypto extensions + arch: riscv64-linux-gnu, + libs: libc6-dev-riscv64-cross, + target: linux64-riscv64, + qemucpu: "rv64,zba=true,zbb=true,zbc=true,zbs=true,zbkb=true,zbkc=true,zbkx=true,zknd=true,zkne=true,zknh=true,zksed=true,zksh=true,zkr=true", + opensslcapsname: riscvcap, # OPENSSL_riscvcap + opensslcaps: "rv64gc_zba_zbb_zbc_zbs_zbkb_zbkc_zbkx_zbknd_zkne_zknh_zksed_zksh_zkr" + }, { arch: s390x-linux-gnu, libs: libc6-dev-s390x-cross, target: linux64-s390x -Wno-stringop-overflow |