]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
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>
Sat, 1 Jan 2022 00:31:06 +0000 (16:31 -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)
(cherry picked from commit fb72a093f88f7332069659994b67f6b19aceb865)

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

Configurations/10-main.conf
config

index 61c6689a0cf7d40150ec21f5f69da0a0f3c9a724..38c8eb3158dc454fd3b4cd792425543f1aa7a3be 100644 (file)
@@ -988,6 +988,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", asm("x86_elf_asm") ],
         CC               => "gcc",
diff --git a/config b/config
index 26225ca2a9e529882928bb66f488a8fde9ecca71..49422981ae84e06ce1ef2911df73d42af265a28b 100755 (executable)
--- a/config
+++ b/config
@@ -704,6 +704,7 @@ case "$GUESSOS" in
                        __CNF_CPPFLAGS="$__CNF_CPPFLAGS -DL_ENDIAN" ;;
   powerpc64-*-*bsd*)   OUT="BSD-generic64";
                        __CNF_CPPFLAGS="$__CNF_CPPFLAGS -DB_ENDIAN" ;;
+  riscv64-*-*bsd*)     OUT="BSD-riscv64" ;;
   sparc64-*-*bsd*)     OUT="BSD-sparc64" ;;
   ia64-*-*bsd*)                OUT="BSD-ia64" ;;
   x86_64-*-dragonfly*)  OUT="BSD-x86_64" ;;