From: Richard Levitte Date: Sun, 16 Jun 2019 18:21:48 +0000 (+0200) Subject: Move des_asm_src file information to build.info files X-Git-Tag: openssl-3.0.0-alpha1~1924 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d67d04f37833b0b2e60367f01f994252bf2e259c;p=oweals%2Fopenssl.git Move des_asm_src file information to build.info files Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9166) --- diff --git a/Configurations/00-base-templates.conf b/Configurations/00-base-templates.conf index d3a78c0850..d088363d84 100644 --- a/Configurations/00-base-templates.conf +++ b/Configurations/00-base-templates.conf @@ -14,7 +14,6 @@ my %targets=( thread_scheme => "(unknown)", # Assume we don't know thread_defines => [], - des_asm_src => "des_enc.c fcrypt_b.c", aes_asm_src => "aes_core.c aes_cbc.c", bf_asm_src => "bf_enc.c", md5_asm_src => "", @@ -165,7 +164,6 @@ my %targets=( x86_asm => { template => 1, - des_asm_src => "des-586.s crypt586.s", aes_asm_src => "aes-586.s vpaes-x86.s aesni-x86.s", bf_asm_src => "bf-586.s", md5_asm_src => "md5-586.s", @@ -209,7 +207,6 @@ my %targets=( }, sparcv9_asm => { template => 1, - des_asm_src => "des_enc-sparc.S fcrypt_b.c dest4-sparcv9.S", aes_asm_src => "aes_core.c aes_cbc.c aes-sparcv9.S aest4-sparcv9.S aesfx-sparcv9.S", md5_asm_src => "md5-sparcv9.S", sha1_asm_src => "sha1-sparcv9.S sha256-sparcv9.S sha512-sparcv9.S", @@ -219,7 +216,6 @@ my %targets=( }, sparcv8_asm => { template => 1, - des_asm_src => "des_enc-sparc.S fcrypt_b.c", }, alpha_asm => { template => 1, diff --git a/Configurations/README b/Configurations/README index f5be5a8d65..2cdd3511d2 100644 --- a/Configurations/README +++ b/Configurations/README @@ -240,9 +240,6 @@ In each table entry, the following keys are significant: export vars as accessor functions. - des_asm_src => Assembler implementation of core DES - encryption functions. - Defaults to 'des_enc.c fcrypt_b.c' aes_asm_src => Assembler implementation of core AES functions. Defaults to 'aes_core.c aes_cbc.c' diff --git a/Configure b/Configure index 64bb655f52..85c9b92a1f 100755 --- a/Configure +++ b/Configure @@ -3392,7 +3392,6 @@ sub print_table_entry "loutflag", "ex_libs", "bn_ops", - "des_asm_src", "aes_asm_src", "bf_asm_src", "md5_asm_src", diff --git a/crypto/des/build.info b/crypto/des/build.info index 05cb154cd4..474d14e229 100644 --- a/crypto/des/build.info +++ b/crypto/des/build.info @@ -1,10 +1,24 @@ +$DESASM=des_enc.c fcrypt_b.c +IF[{- !$disabled{asm} -}] + $DESASM_x86=des-586.s crypt586.s + $DESASM_ia64=ghash-ia64.s + $DESASM_sparcv9=des_enc-sparc.S fcrypt_b.c dest4-sparcv9.S + $DESASM_sparcv8=des_enc-sparc.S fcrypt_b.c + + # Now that we have defined all the arch specific variables, use the + # appropriate one + IF[$DESASM_{- $target{asm_arch} -}] + $DESASM=$DESASM_{- $target{asm_arch} -} + ENDIF +ENDIF + LIBS=../../libcrypto SOURCE[../../libcrypto]=\ set_key.c ecb_enc.c cbc_enc.c \ ecb3_enc.c cfb64enc.c cfb64ede.c cfb_enc.c \ ofb64ede.c ofb64enc.c ofb_enc.c \ str2key.c pcbc_enc.c qud_cksm.c rand_key.c \ - {- $target{des_asm_src} -} \ + $DESASM \ fcrypt.c xcbc_enc.c cbc_cksm.c GENERATE[des_enc-sparc.S]=asm/des_enc.m4