summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-12-18 15:21:51 +0100
committerPauli <pauli@openssl.org>2021-12-22 10:45:10 +1100
commitc2d1ad0e048dd3bfa60e6aa0b5ee343cc6d97a15 (patch)
tree2f9c5043a86dcd4f548fe015facaa804b0425224
parent606c79e29bbc26c27c3b85cc52fe7d72051184de (diff)
Add support for BSD-riscv64 target
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Ben Kaduk <kaduk@mit.edu> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17306)
-rw-r--r--Configurations/10-main.conf7
-rwxr-xr-xutil/perl/OpenSSL/config.pm1
2 files changed, 8 insertions, 0 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index 071b1e5abe..ba224fba84 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -1095,6 +1095,13 @@ my %targets = (
perlasm_scheme => "linux64le",
},
+ # riscv64 below refers to contemporary RISCV Architecture
+ # specifications,
+ "BSD-riscv64" => {
+ inherit_from => [ "BSD-generic64"],
+ perlasm_scheme => "linux64",
+ },
+
"bsdi-elf-gcc" => {
inherit_from => [ "BASE_unix" ],
CC => "gcc",
diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm
index 50efef423a..fd4cce3c25 100755
--- a/util/perl/OpenSSL/config.pm
+++ b/util/perl/OpenSSL/config.pm
@@ -742,6 +742,7 @@ EOF
[ 'powerpc-.*-.*bsd.*', { target => "BSD-ppc" } ],
[ 'powerpc64-.*-.*bsd.*', { target => "BSD-ppc64" } ],
[ 'powerpc64le-.*-.*bsd.*', { target => "BSD-ppc64le" } ],
+ [ 'riscv64-.*-.*bsd.*', { target => "BSD-riscv64" } ],
[ 'sparc64-.*-.*bsd.*', { target => "BSD-sparc64" } ],
[ 'ia64-.*-.*bsd.*', { target => "BSD-ia64" } ],
[ 'x86_64-.*-dragonfly.*', { target => "BSD-x86_64" } ],