]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Move cmll_asm_src file information to build.info files
authorRichard Levitte <levitte@openssl.org>
Sun, 16 Jun 2019 20:06:43 +0000 (22:06 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 17 Jun 2019 14:08:53 +0000 (16:08 +0200)
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9166)

Configurations/00-base-templates.conf
Configurations/README
Configure
crypto/camellia/build.info

index 1cb6049045a8f654c7c5021ac8ea8f8b742af263..168d776ba1b72f6546bf864fc9f416786de6aba5 100644 (file)
@@ -14,7 +14,6 @@ my %targets=(
        thread_scheme   => "(unknown)", # Assume we don't know
        thread_defines  => [],
 
-       cmll_asm_src    => "camellia.c cmll_misc.c cmll_cbc.c",
        modes_asm_src   => "",
        padlock_asm_src => "",
        chacha_asm_src  => "chacha_enc.c",
@@ -156,7 +155,6 @@ my %targets=(
 
     x86_asm => {
        template        => 1,
-       cmll_asm_src    => "cmll-x86.s",
        modes_asm_src   => "ghash-x86.s",
        padlock_asm_src => "e_padlock-x86.s",
        chacha_asm_src  => "chacha-x86.s",
@@ -168,7 +166,6 @@ my %targets=(
     },
     x86_64_asm => {
        template        => 1,
-       cmll_asm_src    => "cmll-x86_64.s cmll_misc.c",
        modes_asm_src   => "ghash-x86_64.s aesni-gcm-x86_64.s",
        padlock_asm_src => "e_padlock-x86_64.s",
        chacha_asm_src  => "chacha-x86_64.s",
@@ -183,7 +180,6 @@ my %targets=(
     },
     sparcv9_asm => {
        template        => 1,
-       cmll_asm_src    => "camellia.c cmll_misc.c cmll_cbc.c cmllt4-sparcv9.S",
        modes_asm_src   => "ghash-sparcv9.S",
        poly1305_asm_src=> "poly1305-sparcv9.S",
     },
index 3c47d4676de4512eaa4b8f53fe5d58a0de0fef80..664e8d86bd9db4666a9ca247b3a3ab890cc13765 100644 (file)
@@ -240,9 +240,6 @@ In each table entry, the following keys are significant:
                                                 export vars as
                                                 accessor functions.
 
-        cmll_asm_src    => Assembler implementation of core CAMELLIA
-                           functions.
-                           Defaults to 'camellia.c cmll_misc.c cmll_cbc.c'
         modes_asm_src   => Assembler implementation of cipher modes,
                            currently the functions gcm_gmult_4bit and
                            gcm_ghash_4bit.
index 256b060749c91f6348abaa1803ab758c7be42f0e..3a8ba0cd6bf6497244decf5178e034566d9b700e 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -3344,7 +3344,6 @@ sub print_table_entry
         "loutflag",
         "ex_libs",
         "bn_ops",
-        "cmll_asm_src",
         "modes_asm_src",
         "padlock_asm_src",
         "chacha_asm_src",
index e36a19bd4d0bd1f41007eca81a7cd04f7fc5f928..8d74b9f0955b1bd17a1f9c2355791881ff036f91 100644 (file)
@@ -1,7 +1,19 @@
 LIBS=../../libcrypto
-SOURCE[../../libcrypto]=\
-        cmll_ecb.c cmll_ofb.c cmll_cfb.c cmll_ctr.c \
-        {- $target{cmll_asm_src} -}
+
+$CMLLASM=camellia.c cmll_misc.c cmll_cbc.c
+IF[{- !$disabled{asm} -}]
+  $CMLLASM_x86=cmll-x86.s
+  $CMLLASM_x86_64=cmll-x86_64.s cmll_misc.c
+  $CMLLASM_sparcv9=camellia.c cmll_misc.c cmll_cbc.c cmllt4-sparcv9.S
+
+  # Now that we have defined all the arch specific variables, use the
+  # appropriate one
+  IF[$CMLLASM_{- $target{asm_arch} -}]
+    $CMLLASM=$CMLLASM_{- $target{asm_arch} -}
+  ENDIF
+ENDIF
+
+SOURCE[../../libcrypto]=cmll_ecb.c cmll_ofb.c cmll_cfb.c cmll_ctr.c $CMLLASM
 
 GENERATE[cmll-x86.s]=asm/cmll-x86.pl \
         $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) \