Add support for BSD-riscv64 target
authorPiotr Kubaj <pkubaj@FreeBSD.org>
Sat, 18 Dec 2021 14:21:51 +0000 (15:21 +0100)
committerPauli <pauli@openssl.org>
Tue, 21 Dec 2021 23:45:10 +0000 (10:45 +1100)
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)

Configurations/10-main.conf
util/perl/OpenSSL/config.pm

index 071b1e5abead6c52c16522d05d220d42b8ab6973..ba224fba848d8a7d31b0fa74ebe0f8f9b87a5488 100644 (file)
@@ -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",
index 50efef423ab2cac2eb529073a98f08973bc4ba98..fd4cce3c258f5278c73e189046f2b06bdbd0fdd4 100755 (executable)
@@ -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" } ],