Move rc5_asm_src file information to build.info files
authorRichard Levitte <levitte@openssl.org>
Sun, 16 Jun 2019 19:57:13 +0000 (21:57 +0200)
committerRichard Levitte <levitte@openssl.org>
Mon, 17 Jun 2019 14:08:52 +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/rc5/build.info

index 6e6e14ea1041bbb0b18f197c25ea5a417ab9a36c..1621cd3443f1050b25065ec0ee06919cc9d447b0 100644 (file)
@@ -14,7 +14,6 @@ my %targets=(
        thread_scheme   => "(unknown)", # Assume we don't know
        thread_defines  => [],
 
-       rc5_asm_src     => "rc5_enc.c",
        wp_asm_src      => "wp_block.c",
        cmll_asm_src    => "camellia.c cmll_misc.c cmll_cbc.c",
        modes_asm_src   => "",
@@ -158,7 +157,6 @@ my %targets=(
 
     x86_asm => {
        template        => 1,
-       rc5_asm_src     => "rc5-586.s",
        wp_asm_src      => "wp_block.c wp-mmx.s",
        cmll_asm_src    => "cmll-x86.s",
        modes_asm_src   => "ghash-x86.s",
index 6c4066358dd0b300c7359535e4c5504c1346dd92..ad219876baefe5dff3c5d1d9d936a6ba1bb0283d 100644 (file)
@@ -240,9 +240,6 @@ In each table entry, the following keys are significant:
                                                 export vars as
                                                 accessor functions.
 
-        rc5_asm_src     => Assembler implementation of core RC5
-                           functions.
-                           Defaults to 'rc5_enc.c'
         wp_asm_src      => Assembler implementation of core WHIRLPOOL
                            functions.
         cmll_asm_src    => Assembler implementation of core CAMELLIA
index e091d3f050b94541e43fb0afa94b340fcca7be7b..dc93fa04089480b3220628da81152245c51be820 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -3351,7 +3351,6 @@ sub print_table_entry
         "loutflag",
         "ex_libs",
         "bn_ops",
-        "rc5_asm_src",
         "wp_asm_src",
         "cmll_asm_src",
         "modes_asm_src",
index 928a62cd85bfe60651ee06e9712477e750052229..5780f3c5f987671e1a5bfca40835776e9db22a75 100644 (file)
@@ -1,6 +1,19 @@
 LIBS=../../libcrypto
+
+$RC5ASM=rc5_enc.c
+IF[{- !$disabled{asm} -}]
+  $RC5ASM_x86=rc5-586.s
+
+  # Now that we have defined all the arch specific variables, use the
+  # appropriate one, and define the appropriate macros
+  IF[$RC5ASM_{- $target{asm_arch} -}]
+    $RC5ASM=$RC5ASM_{- $target{asm_arch} -}
+    $RC5DEF=RC5_ASM
+  ENDIF
+ENDIF
+
 SOURCE[../../libcrypto]=\
-        rc5_skey.c rc5_ecb.c {- $target{rc5_asm_src} -} rc5cfb64.c rc5ofb64.c
+        rc5_skey.c rc5_ecb.c $RC5ASM rc5cfb64.c rc5ofb64.c
 
 GENERATE[rc5-586.s]=asm/rc5-586.pl \
         $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS)