From e787c57c538d0922004e49a10be0d403af773272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20M=C3=BCllner?= Date: Sat, 21 Jan 2023 15:55:27 +0100 Subject: [PATCH] CI: cross-compile: riscv: Add RV64 machine with Zb* and Zk* MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/20107) --- .github/workflows/cross-compiles.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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,9 +94,18 @@ 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,