From: Richard Levitte Date: Sun, 16 Jun 2019 19:20:43 +0000 (+0200) Subject: Move bf_asm_src file information to build.info files X-Git-Tag: openssl-3.0.0-alpha1~1922 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=053d0b2226c224b8833d7d651428453ac65ee7ca;p=oweals%2Fopenssl.git Move bf_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 0c7334ee4d..b4eb7e9419 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 => [], - bf_asm_src => "bf_enc.c", md5_asm_src => "", cast_asm_src => "c_enc.c", rc4_asm_src => "rc4_enc.c rc4_skey.c", @@ -163,7 +162,6 @@ my %targets=( x86_asm => { template => 1, - bf_asm_src => "bf-586.s", md5_asm_src => "md5-586.s", cast_asm_src => "cast-586.s", sha1_asm_src => "sha1-586.s sha256-586.s sha512-586.s", diff --git a/Configurations/README b/Configurations/README index 36e71eedda..e8be7ffd7f 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. - bf_asm_src => Assembler implementation of core BlowFish - functions. - Defaults to 'bf_enc.c' md5_asm_src => Assembler implementation of core MD5 functions. sha1_asm_src => Assembler implementation of core SHA1, diff --git a/Configure b/Configure index cbd8ef1dba..68f642ff62 100755 --- a/Configure +++ b/Configure @@ -3366,7 +3366,6 @@ sub print_table_entry "loutflag", "ex_libs", "bn_ops", - "bf_asm_src", "md5_asm_src", "cast_asm_src", "sha1_asm_src", diff --git a/crypto/bf/build.info b/crypto/bf/build.info index 29adc8ce50..cc06212dfc 100644 --- a/crypto/bf/build.info +++ b/crypto/bf/build.info @@ -1,6 +1,17 @@ LIBS=../../libcrypto -SOURCE[../../libcrypto]=bf_skey.c bf_ecb.c bf_cfb64.c bf_ofb64.c \ - {- $target{bf_asm_src} -} + +$BFASM=bf_enc.c +IF[{- !$disabled{asm} -}] + $BFASM_x86=bf-586.s + + # Now that we have defined all the arch specific variables, use the + # appropriate one + IF[$BFASM_{- $target{asm_arch} -}] + $BFASM=$BFASM_{- $target{asm_arch} -} + ENDIF +ENDIF + +SOURCE[../../libcrypto]=bf_skey.c bf_ecb.c bf_cfb64.c bf_ofb64.c $BFASM GENERATE[bf-586.s]=asm/bf-586.pl \ $(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)