Add linux32-riscv32/BSD-riscv32 target
authorHongren (Zenithal) Zheng <i@zenithal.me>
Fri, 13 May 2022 15:23:29 +0000 (23:23 +0800)
committerPauli <pauli@openssl.org>
Mon, 5 Sep 2022 00:20:30 +0000 (10:20 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18308)

Configurations/10-main.conf

index 036f0bbbc97474934a764369de1a3d09c193359e..50756cb42559aeaa0a4b9189dfaaefe459a8904b 100644 (file)
@@ -811,7 +811,7 @@ my %targets = (
         multilib         => "64",
     },
 
-    # riscv64 below refers to contemporary RISCV Architecture
+    # riscv below refers to contemporary RISCV Architecture
     # specifications,
     "linux64-riscv64" => {
         inherit_from     => [ "linux-generic64"],
@@ -819,6 +819,12 @@ my %targets = (
         asm_arch         => 'riscv64',
     },
 
+    "linux32-riscv32" => {
+        inherit_from     => [ "linux-generic32"],
+        perlasm_scheme   => "linux32",
+        asm_arch         => 'riscv32',
+    },
+
     # loongarch64 below refers to contemporary LOONGARCH Architecture
     # specifications,
     "linux64-loongarch64" => {
@@ -1103,7 +1109,7 @@ my %targets = (
         perlasm_scheme   => "linux64le",
     },
 
-    # riscv64 below refers to contemporary RISCV Architecture
+    # riscv below refers to contemporary RISCV Architecture
     # specifications,
     "BSD-riscv64" => {
         inherit_from     => [ "BSD-generic64"],
@@ -1111,6 +1117,12 @@ my %targets = (
         asm_arch         => 'riscv64',
     },
 
+    "BSD-riscv32" => {
+        inherit_from     => [ "BSD-generic32"],
+        perlasm_scheme   => "linux32",
+        asm_arch         => 'riscv32',
+    },
+
     "BSD-armv4" => {
         ################################################################
         # Note that -march is not among compiler options in linux-armv4