build.info 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. LIBS=../../libcrypto
  2. IF[{- !$disabled{asm} -}]
  3. $SM4DEF_aarch64=SM4_ASM VPSM4_ASM
  4. $SM4ASM_aarch64=sm4-armv8.S vpsm4-armv8.S vpsm4_ex-armv8.S
  5. # Now that we have defined all the arch specific variables, use the
  6. # appropriate one, and define the appropriate macros
  7. IF[$SM4ASM_{- $target{asm_arch} -}]
  8. $SM4ASM=$SM4ASM_{- $target{asm_arch} -}
  9. $SM4DEF=$SM4DEF_{- $target{asm_arch} -}
  10. ENDIF
  11. ENDIF
  12. SOURCE[../../libcrypto]= $SM4ASM sm4.c
  13. # Implementations are now spread across several libraries, so the defines
  14. # need to be applied to all affected libraries and modules.
  15. DEFINE[../../libcrypto]=$SM4DEF
  16. DEFINE[../../providers/libfips.a]=$SM4DEF
  17. DEFINE[../../providers/libdefault.a]=$SM4DEF
  18. # We only need to include the SM4DEF stuff in the legacy provider when it's a
  19. # separate module and it's dynamically linked with libcrypto. Otherwise, it
  20. # already gets everything that the static libcrypto.a has, and doesn't need it
  21. # added again.
  22. IF[{- !$disabled{module} && !$disabled{shared} -}]
  23. DEFINE[../providers/liblegacy.a]=$SM4DEF
  24. ENDIF
  25. GENERATE[sm4-armv8.S]=asm/sm4-armv8.pl
  26. GENERATE[vpsm4-armv8.S]=asm/vpsm4-armv8.pl
  27. GENERATE[vpsm4_ex-armv8.S]=asm/vpsm4_ex-armv8.pl
  28. INCLUDE[sm4-armv8.o]=..
  29. INCLUDE[vpsm4-armv8.o]=..
  30. INCLUDE[vpsm4_ex-armv8.o]=..