CI: cross-compile: Allow to set CPU capabilities
authorChristoph Müllner <christoph.muellner@vrull.eu>
Sat, 21 Jan 2023 14:49:17 +0000 (15:49 +0100)
committerHugo Landau <hlandau@openssl.org>
Tue, 24 Jan 2023 11:01:20 +0000 (11:01 +0000)
commitaf0a4c46846323fc33f713b5ccd758a526c19ed0
treed2106b93111c04a386cd2eb03faea90119573dd5
parent3147785eb23bb27080a0b7accbbff46ac471e86c
CI: cross-compile: Allow to set CPU capabilities

The cross-compile CI tests use cross-compilers for building
and QEMU for testing. This implies that testing of ISA extension
for HW accelerated cryptographic calculations is undefined
(it depends on arch-specific QEMU defaults and arch-specific
detection mechanisms in OpenSSL).

Let's add a mechanism to set two environment variables, that allow
to control the ISA extensions:
* QEMU_CPU: used by QEMU to specify CPU capabilities of the emulation
* OPENSSL_*: used by OpenSSL (on some architectures) to enable ISA
  extensions.

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)
.github/workflows/cross-compiles.yml