build.info 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. $ECASM=
  2. IF[{- !$disabled{asm} -}]
  3. $ECASM_x86=ecp_nistz256.c ecp_nistz256-x86.S
  4. $ECDEF_x86=ECP_NISTZ256_ASM
  5. $ECASM_x86_64=ecp_nistz256.c ecp_nistz256-x86_64.s
  6. $ECDEF_x86_64=ECP_NISTZ256_ASM
  7. IF[{- !$disabled{'ecx'} -}]
  8. $ECASM_x86_64=$ECASM_x86_64 x25519-x86_64.s
  9. $ECDEF_x86_64=$ECDEF_x86_64 X25519_ASM
  10. ENDIF
  11. $ECASM_ia64=
  12. $ECASM_sparcv9=ecp_nistz256.c ecp_nistz256-sparcv9.S
  13. $ECDEF_sparcv9=ECP_NISTZ256_ASM
  14. $ECASM_sparcv8=
  15. $ECASM_alpha=
  16. $ECASM_mips32=
  17. $ECASM_mips64=
  18. $ECASM_s390x=ecp_s390x_nistp.c
  19. IF[{- !$disabled{'ecx'} -}]
  20. $ECASM_s390x=$ECASM_s390x ecx_s390x.c
  21. ENDIF
  22. $ECDEF_s390x=S390X_EC_ASM
  23. $ECASM_armv4=ecp_nistz256.c ecp_nistz256-armv4.S
  24. $ECDEF_armv4=ECP_NISTZ256_ASM
  25. $ECASM_aarch64=ecp_nistz256.c ecp_nistz256-armv8.S
  26. $ECDEF_aarch64=ECP_NISTZ256_ASM
  27. IF[{- !$disabled{'sm2'} -}]
  28. $ECASM_aarch64=$ECASM_aarch64 ecp_sm2p256.c ecp_sm2p256-armv8.S
  29. IF[{- !$disabled{'sm2-precomp'} -}]
  30. $ECASM_aarch64=$ECASM_aarch64 ecp_sm2p256_table.c
  31. ENDIF
  32. $ECDEF_aarch64=$ECDEF_aarch64 ECP_SM2P256_ASM
  33. ENDIF
  34. $ECASM_parisc11=
  35. $ECASM_parisc20_64=
  36. $ECASM_ppc32=
  37. $ECASM_ppc64=ecp_nistz256.c ecp_ppc.c ecp_nistz256-ppc64.s
  38. $ECDEF_ppc64=ECP_NISTZ256_ASM
  39. IF[{- !$disabled{'ec_nistp_64_gcc_128'} -}]
  40. $ECASM_ppc64=$ECASM_ppc64 ecp_nistp384-ppc64.s ecp_nistp521-ppc64.s
  41. $ECDEF_ppc64=$ECDEF_ppc64 ECP_NISTP384_ASM ECP_NISTP521_ASM
  42. INCLUDE[ecp_nistp384.o]=..
  43. INCLUDE[ecp_nistp521.o]=..
  44. ENDIF
  45. IF[{- !$disabled{'ecx'} -}]
  46. $ECASM_ppc64=$ECASM_ppc64 x25519-ppc64.s
  47. $ECDEF_ppc64=$ECDEF_ppc64 X25519_ASM
  48. INCLUDE[ecx_s390x.o]=..
  49. ENDIF
  50. $ECASM_c64xplus=
  51. # Now that we have defined all the arch specific variables, use the
  52. # appropriate one, and define the appropriate macros
  53. IF[$ECASM_{- $target{asm_arch} -}]
  54. $ECASM=$ECASM_{- $target{asm_arch} -}
  55. $ECDEF=$ECDEF_{- $target{asm_arch} -}
  56. ENDIF
  57. ENDIF
  58. $COMMON=ec_lib.c ecp_smpl.c ecp_mont.c ecp_nist.c ec_cvt.c ec_mult.c \
  59. ec_curve.c ec_check.c ec_key.c ec_kmeth.c ec_asn1.c \
  60. ec2_smpl.c \
  61. ecp_oct.c ec2_oct.c ec_oct.c ecdh_ossl.c \
  62. ecdsa_ossl.c ecdsa_sign.c ecdsa_vrf.c \
  63. $ECASM ec_backend.c ecdh_kdf.c
  64. IF[{- !$disabled{'ecx'} -}]
  65. $COMMON=$COMMON curve25519.c curve448/f_generic.c curve448/scalar.c \
  66. curve448/arch_64/f_impl64.c ecx_backend.c curve448/arch_32/f_impl32.c \
  67. curve448/curve448_tables.c curve448/eddsa.c curve448/curve448.c \
  68. ecx_key.c
  69. ENDIF
  70. IF[{- !$disabled{'ec_nistp_64_gcc_128'} -}]
  71. $COMMON=$COMMON ecp_nistp224.c ecp_nistp256.c ecp_nistp384.c ecp_nistp521.c ecp_nistputil.c
  72. ENDIF
  73. SOURCE[../../libcrypto]=$COMMON ec_ameth.c ec_pmeth.c \
  74. ec_err.c eck_prn.c \
  75. ec_deprecated.c ec_print.c
  76. IF[{- !$disabled{'ecx'} -}]
  77. SOURCE[../../libcrypto]=ecx_meth.c
  78. ENDIF
  79. SOURCE[../../providers/libfips.a]=$COMMON
  80. # Implementations are now spread across several libraries, so the defines
  81. # need to be applied to all affected libraries and modules.
  82. DEFINE[../../libcrypto]=$ECDEF
  83. DEFINE[../../providers/libfips.a]=$ECDEF
  84. DEFINE[../../providers/libdefault.a]=$ECDEF
  85. # We only need to include the ECDEF stuff in the legacy provider when
  86. # it's a separate module and it's dynamically linked with libcrypto.
  87. # Otherwise, it already gets everything that the static libcrypto.a
  88. # has, and doesn't need it added again.
  89. IF[{- !$disabled{module} && !$disabled{shared} -}]
  90. DEFINE[../../providers/liblegacy.a]=$ECDEF
  91. ENDIF
  92. GENERATE[ecp_nistz256-x86.S]=asm/ecp_nistz256-x86.pl
  93. GENERATE[ecp_nistz256-x86_64.s]=asm/ecp_nistz256-x86_64.pl
  94. GENERATE[ecp_nistz256-avx2.s]=asm/ecp_nistz256-avx2.pl
  95. GENERATE[ecp_nistz256-sparcv9.S]=asm/ecp_nistz256-sparcv9.pl
  96. INCLUDE[ecp_nistz256-sparcv9.o]=..
  97. INCLUDE[ecp_s390x_nistp.o]=..
  98. IF[{- !$disabled{'ecx'} -}]
  99. INCLUDE[ecx_meth.o]=..
  100. INCLUDE[ecx_key.o]=..
  101. ENDIF
  102. GENERATE[ecp_nistz256-armv4.S]=asm/ecp_nistz256-armv4.pl
  103. INCLUDE[ecp_nistz256-armv4.o]=..
  104. GENERATE[ecp_nistz256-armv8.S]=asm/ecp_nistz256-armv8.pl
  105. INCLUDE[ecp_nistz256-armv8.o]=..
  106. GENERATE[ecp_nistz256-ppc64.s]=asm/ecp_nistz256-ppc64.pl
  107. GENERATE[ecp_nistp384-ppc64.s]=asm/ecp_nistp384-ppc64.pl
  108. GENERATE[ecp_nistp521-ppc64.s]=asm/ecp_nistp521-ppc64.pl
  109. IF[{- !$disabled{'ecx'} -}]
  110. GENERATE[x25519-x86_64.s]=asm/x25519-x86_64.pl
  111. GENERATE[x25519-ppc64.s]=asm/x25519-ppc64.pl
  112. ENDIF
  113. IF[{- !$disabled{'sm2'} -}]
  114. GENERATE[ecp_sm2p256-armv8.S]=asm/ecp_sm2p256-armv8.pl
  115. INCLUDE[ecp_sm2p256-armv8.o]=..
  116. ENDIF