aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/whrlpool
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-06-16 22:03:00 +0200
committerRichard Levitte <levitte@openssl.org>2019-06-17 16:08:52 +0200
commit681c7e905dcc16ed8a0253580a303df4b60c3440 (patch)
tree2c9d1152418b123f44ec1b5dee373a2a6216a0cf /crypto/whrlpool
parent6fe56d84702cbaccf758c4faf6af28f2797ff1d8 (diff)
downloadopenssl-681c7e905dcc16ed8a0253580a303df4b60c3440.tar.gz
Move wp_asm_src file information to build.info files
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9166)
Diffstat (limited to 'crypto/whrlpool')
-rw-r--r--crypto/whrlpool/build.info21
1 files changed, 20 insertions, 1 deletions
diff --git a/crypto/whrlpool/build.info b/crypto/whrlpool/build.info
index 4b167b504e..f67bf41b5e 100644
--- a/crypto/whrlpool/build.info
+++ b/crypto/whrlpool/build.info
@@ -1,5 +1,24 @@
LIBS=../../libcrypto
-SOURCE[../../libcrypto]=wp_dgst.c {- $target{wp_asm_src} -}
+
+$WPASM=wp_block.c
+IF[{- !$disabled{asm} -}]
+ IF[{- $config{processor} ne "386" -}]
+ $WPASM_x86=wp_block.c wp-mmx.s
+ $WPDEF_x86=WHIRLPOOL_ASM
+ ENDIF
+ $WPASM_x86_64=wp-x86_64.s
+ $WPDEF_x86_64=WHIRLPOOL_ASM
+
+ # Now that we have defined all the arch specific variables, use the
+ # appropriate one, and define the appropriate macros
+ IF[$WPASM_{- $target{asm_arch} -}]
+ $WPASM=$WPASM_{- $target{asm_arch} -}
+ $WPDEF=$WPDEF_{- $target{asm_arch} -}
+ ENDIF
+ENDIF
+
+SOURCE[../../libcrypto]=wp_dgst.c $WPASM
+DEFINE[../../libcrypto]=$WPDEF
GENERATE[wp-mmx.s]=asm/wp-mmx.pl \
$(PERLASM_SCHEME) $(LIB_CFLAGS) $(LIB_CPPFLAGS) $(PROCESSOR)