From e5050aa1bbce84e359bfd35de60dd745627e8d41 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Sat, 18 Dec 2021 15:21:51 +0100 Subject: Add support for BSD-riscv64 target Reviewed-by: Tomas Mraz Reviewed-by: Ben Kaduk Reviewed-by: Paul Dale (cherry picked from commit c2d1ad0e048dd3bfa60e6aa0b5ee343cc6d97a15) (cherry picked from commit fb72a093f88f7332069659994b67f6b19aceb865) (Merged from https://github.com/openssl/openssl/pull/17341) --- Configurations/10-main.conf | 7 +++++++ config | 1 + 2 files changed, 8 insertions(+) diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf index 61c6689a0c..38c8eb3158 100644 --- a/Configurations/10-main.conf +++ b/Configurations/10-main.conf @@ -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 26225ca2a9..49422981ae 100755 --- 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" ;; -- cgit v1.2.3