]> git.proxmox.com Git - mirror_edk2.git/commit
CryptoPkg/Library/OpensslLib: Combine all performance optimized INFs
authorMichael D Kinney <michael.d.kinney@intel.com>
Sat, 24 Sep 2022 20:40:26 +0000 (13:40 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 24 Oct 2022 07:49:43 +0000 (07:49 +0000)
commitea6d859b50b692577c4ccbeac0fb8686fad83a6e
tree57584553a1775cdf2307087e6ba33d020f7119ac
parentdd00f92b2ff8e9fcddb261b1ee45e237dfe0b71c
CryptoPkg/Library/OpensslLib: Combine all performance optimized INFs

* Remove IA32/X64 specific INF files for performance
  optimized OpensslLib and combine into OpensslLibAccel.inf
  and OpensslLibFullAccel.inf.
* Remove use of PcdOpensslEcEnabled and let the platform
  select the EC feature by using either OpensslLibFull.inf
  or OpensslLibFullAccel.inf.
* With PcdOpensslEcEnabled removed, roll back style of opensslconf.h
  and remove  opensslconf_generated.h. Move the choice to disable
  EC/SM2 into OpensslLib INF files using OPENSSL_FLAGS define.
* Update OpensslLibContructor() API to be compatible with all
  FW phases by using types from Base.h and using RETURN_STATUS
  type and values instead of EFI_STATUS type and values.
* Add /wd4718 to VS2015x86 for IA32 and X64 to disable warning
  for recursive call with no side effects.  This is a false
  positive warning that is not produced with VS2017 or VS2019.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Xiaoyu Lu <xiaoyu1.lu@intel.com>
Cc: Guomin Jiang <guomin.jiang@intel.com>
Cc: Christopher Zurcher <christopher.zurcher@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
18 files changed:
CryptoPkg/CryptoPkg.ci.yaml
CryptoPkg/Library/Include/openssl/opensslconf.h
CryptoPkg/Library/Include/openssl/opensslconf_generated.h [deleted file]
CryptoPkg/Library/OpensslLib/OpensslLib.inf
CryptoPkg/Library/OpensslLib/OpensslLib.uni
CryptoPkg/Library/OpensslLib/OpensslLibAccel.inf [new file with mode: 0644]
CryptoPkg/Library/OpensslLib/OpensslLibAccel.uni [new file with mode: 0644]
CryptoPkg/Library/OpensslLib/OpensslLibConstructor.c
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
CryptoPkg/Library/OpensslLib/OpensslLibCrypto.uni
CryptoPkg/Library/OpensslLib/OpensslLibFull.inf [new file with mode: 0644]
CryptoPkg/Library/OpensslLib/OpensslLibFull.uni [new file with mode: 0644]
CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.inf [new file with mode: 0644]
CryptoPkg/Library/OpensslLib/OpensslLibFullAccel.uni [new file with mode: 0644]
CryptoPkg/Library/OpensslLib/OpensslLibIa32.inf [deleted file]
CryptoPkg/Library/OpensslLib/OpensslLibIa32Gcc.inf [deleted file]
CryptoPkg/Library/OpensslLib/OpensslLibX64.inf [deleted file]
CryptoPkg/Library/OpensslLib/OpensslLibX64Gcc.inf [deleted file]