summaryrefslogtreecommitdiffstats
path: root/crypto/poly1305
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-06-16 22:28:32 +0200
committerRichard Levitte <levitte@openssl.org>2019-06-17 16:08:53 +0200
commit246b50605ff4c278c91c22b84bb7ed3f4bd677ec (patch)
tree7381b3515dd9862ccd1dd01cd4d0e3b98f1733a6 /crypto/poly1305
parentbcb7afe18a46462bb4fdb12c0ff2b4435b08cf78 (diff)
Move poly1305_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/poly1305')
-rw-r--r--crypto/poly1305/build.info36
1 files changed, 32 insertions, 4 deletions
diff --git a/crypto/poly1305/build.info b/crypto/poly1305/build.info
index 60eeeeec9d..064c2599d5 100644
--- a/crypto/poly1305/build.info
+++ b/crypto/poly1305/build.info
@@ -1,8 +1,36 @@
LIBS=../../libcrypto
-SOURCE[../../libcrypto]=\
- poly1305_ameth.c \
- poly1305_meth.c \
- poly1305.c {- $target{poly1305_asm_src} -}
+
+$POLY1305ASM=
+IF[{- !$disabled{asm} -}]
+ $POLY1305ASM_x86=poly1305-x86.s
+ $POLY1305ASM_x86_64=poly1305-x86_64.s
+
+ $POLY1305ASM_ia64=asm/poly1305-ia64.S
+
+ $POLY1305ASM_sparcv9=poly1305-sparcv9.S
+
+ $POLY1305ASM_mips64=poly1305-mips.S
+
+ $POLY1305ASM_s390x=poly1305-s390x.S
+
+ $POLY1305ASM_armv4=poly1305-armv4.S
+ $POLY1305ASM_aarch64=poly1305-armv8.S
+
+ $POLY1305ASM_ppc32=poly1305-ppc.s poly1305-ppcfp.s
+ $POLY1305ASM_ppc64=$POLY1305ASM_ppc32
+
+ $POLY1305ASM_c64xplus=poly1305-c64xplus.s
+
+ # Now that we have defined all the arch specific variables, use the
+ # appropriate one, and define the appropriate macros
+ IF[$POLY1305ASM_{- $target{asm_arch} -}]
+ $POLY1305ASM=$POLY1305ASM_{- $target{asm_arch} -}
+ $POLY1305DEF=POLY1305_ASM
+ ENDIF
+ENDIF
+
+SOURCE[../../libcrypto]=poly1305_ameth.c poly1305_meth.c poly1305.c $POLY1305ASM
+DEFINE[../../libcrypto]=$POLY1305DEF
GENERATE[poly1305-sparcv9.S]=asm/poly1305-sparcv9.pl $(PERLASM_SCHEME)
INCLUDE[poly1305-sparcv9.o]=..