2
0

build.info 1.4 KB

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