From 0c901fcc200e411b78b9ca42d07d5ea4aaa13b21 Mon Sep 17 00:00:00 2001 From: yi1 li Date: Wed, 13 Apr 2022 15:02:02 +0800 Subject: CryptoPkg: Make EC source file config-able REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3679 REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3828 Use PCD gEfiCryptoPkgTokenSpaceGuid.PcdEcEnabled to config-able source files list in OpensslLib.inf and OpensslLibCrypto.inf. If PcdEcEnabled equals to FALSE, this file will not be compiled. Cc: Jiewen Yao Cc: Jian J Wang Signed-off-by: yi1 li Reviewed-by: Jiewen Yao --- CryptoPkg/CryptoPkg.dec | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CryptoPkg/CryptoPkg.dec') diff --git a/CryptoPkg/CryptoPkg.dec b/CryptoPkg/CryptoPkg.dec index 5888941bab..ebec64050b 100644 --- a/CryptoPkg/CryptoPkg.dec +++ b/CryptoPkg/CryptoPkg.dec @@ -81,5 +81,9 @@ # @ValidList 0x80000001 | 0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010 gEfiCryptoPkgTokenSpaceGuid.PcdHashApiLibPolicy|0x00000002|UINT32|0x00000001 + ## Enable/Disable the ECC feature in openssl library. The default is disabled. + # If ECC feature is disabled, all related source files will not be compiled. + gEfiCryptoPkgTokenSpaceGuid.PcdEcEnabled|FALSE|BOOLEAN|0x0000003 + [UserExtensions.TianoCore."ExtraFiles"] CryptoPkgExtra.uni -- cgit v1.2.3