]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
1_1_1-stable: Detect arm64-*-*bsd and enable assembly optimizations
authorAllan Jude <allan@klarasystems.com>
Fri, 19 Nov 2021 19:06:52 +0000 (19:06 +0000)
committerTomas Mraz <tomas@openssl.org>
Thu, 5 May 2022 09:13:43 +0000 (11:13 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17085)

Configurations/10-main.conf
config

index 8ca8235ed566738d76bb7bf76dcce89c74c642ad..2fcb96a04701087e0667130e9e9318a62b806926 100644 (file)
@@ -995,6 +995,13 @@ my %targets = (
         perlasm_scheme   => "linux64",
     },
 
+    "BSD-aarch64" => {
+        inherit_from     => [ "BSD-generic64", asm("aarch64_asm") ],
+        lib_cppflags     => add("-DL_ENDIAN"),
+        bn_ops           => "SIXTY_FOUR_BIT_LONG",
+        perlasm_scheme   => "linux64",
+    },
+
     "bsdi-elf-gcc" => {
         inherit_from     => [ "BASE_unix", asm("x86_elf_asm") ],
         CC               => "gcc",
diff --git a/config b/config
index 49422981ae84e06ce1ef2911df73d42af265a28b..f43627cfe8a7864b119705488c3d25e621211ac2 100755 (executable)
--- a/config
+++ b/config
@@ -709,6 +709,7 @@ case "$GUESSOS" in
   ia64-*-*bsd*)                OUT="BSD-ia64" ;;
   x86_64-*-dragonfly*)  OUT="BSD-x86_64" ;;
   amd64-*-*bsd*)       OUT="BSD-x86_64" ;;
+  arm64-*-*bsd*)       OUT="BSD-aarch64" ;;
   *86*-*-*bsd*)                # mimic ld behaviour when it's looking for libc...
                        if [ -L /usr/lib/libc.so ]; then        # [Free|Net]BSD
                            libc=/usr/lib/libc.so