Add support for BSD-riscv64 target
authorPiotr Kubaj <pkubaj@FreeBSD.org>
Sat, 18 Dec 2021 14:21:51 +0000 (15:21 +0100)
committerBenjamin Kaduk <kaduk@mit.edu>
Mon, 27 Dec 2021 18:19:14 +0000 (10:19 -0800)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Paul Dale <pauli@openssl.org>
(cherry picked from commit c2d1ad0e048dd3bfa60e6aa0b5ee343cc6d97a15)

(Merged from https://github.com/openssl/openssl/pull/17333)

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

index 8414b34ed9af7d49b0a3bcf8a8b3de7e82f9a0db..a7294d2ad1b1a23d479cc443e1a7cf667b1e6ea7 100644 (file)
@@ -1062,6 +1062,13 @@ my %targets = (
         perlasm_scheme   => "elf",
     },
 
+    # 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 7250791b5bd20a75c2a0f9a657223285496fc596..81e9a03b48910f3e4cd264f234d5d4b6f7685ea0 100755 (executable)
@@ -741,6 +741,7 @@ EOF
                                     defines => [ 'L_ENDIAN' ] } ],
       [ 'powerpc64-.*-.*bsd.*',   { target => "BSD-generic64",
                                     defines => [ 'B_ENDIAN' ] } ],
+      [ 'riscv64-.*-.*bsd.*',     { target => "BSD-riscv64" } ],
       [ 'sparc64-.*-.*bsd.*',     { target => "BSD-sparc64" } ],
       [ 'ia64-.*-.*bsd.*',        { target => "BSD-ia64" } ],
       [ 'x86_64-.*-dragonfly.*',  { target => "BSD-x86_64" } ],