* 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>
105 lines
3.6 KiB
YAML
105 lines
3.6 KiB
YAML
## @file
|
|
# CI configuration for CryptoPkg
|
|
#
|
|
# Copyright (c) Microsoft Corporation
|
|
# Copyright (c) 2020 - 2022, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
##
|
|
{
|
|
"LicenseCheck": {
|
|
"IgnoreFiles": [
|
|
# These directories contain auto-generated OpenSSL content
|
|
"Library/OpensslLib/IA32",
|
|
"Library/OpensslLib/IA32Gcc",
|
|
"Library/OpensslLib/X64",
|
|
"Library/OpensslLib/X64Gcc",
|
|
"Library/Include/openssl"
|
|
]
|
|
},
|
|
"EccCheck": {
|
|
## Exception sample looks like below:
|
|
## "ExceptionList": [
|
|
## "<ErrorID>", "<KeyWord>"
|
|
## ]
|
|
"ExceptionList": [
|
|
"8001", "IsLeap",
|
|
"8001", "OBJ_get0_data",
|
|
"8001", "OBJ_length",
|
|
"5005", "X509PopCertificate"
|
|
],
|
|
## Both file path and directory path are accepted.
|
|
"IgnoreFiles": [
|
|
"Library/OpensslLib/openssl",
|
|
"Library/Include/openssl",
|
|
"Library/Include/crypto",
|
|
# The unit testing folder is not to be checked
|
|
"Test/UnitTest",
|
|
# This has OpenSSL interfaces that aren't UEFI spec compliant
|
|
"Library/BaseCryptLib/SysCall",
|
|
# This has OpenSSL interfaces that aren't UEFI spec compliant
|
|
"Library/OpensslLib/rand_pool.c",
|
|
# This has OpenSSL interfaces that aren't UEFI spec compliant
|
|
"Library/Include/CrtLibSupport.h",
|
|
# This has OpenSSL interfaces that aren't UEFI spec compliant
|
|
"Library/BaseCryptLib/Hash/CryptParallelHash.h",
|
|
"Library/Include/fcntl.h",
|
|
# These directories contain auto-generated OpenSSL content
|
|
"Library/OpensslLib",
|
|
"Library/IntrinsicLib",
|
|
"Library/BaseCryptLib/Pk/CryptPkcs7VerifyBase.c"
|
|
]
|
|
},
|
|
"CompilerPlugin": {
|
|
"DscPath": "CryptoPkg.dsc"
|
|
},
|
|
## options defined .pytool/Plugin/HostUnitTestCompilerPlugin
|
|
"HostUnitTestCompilerPlugin": {
|
|
"DscPath": "Test/CryptoPkgHostUnitTest.dsc"
|
|
},
|
|
"CharEncodingCheck": {
|
|
"IgnoreFiles": []
|
|
},
|
|
"DependencyCheck": {
|
|
"AcceptableDependencies": [
|
|
"MdePkg/MdePkg.dec",
|
|
"MdeModulePkg/MdeModulePkg.dec",
|
|
"CryptoPkg/CryptoPkg.dec",
|
|
],
|
|
# For host based unit tests
|
|
"AcceptableDependencies-HOST_APPLICATION":[],
|
|
# For UEFI shell based apps
|
|
"AcceptableDependencies-UEFI_APPLICATION":[],
|
|
"IgnoreInf": []
|
|
},
|
|
"DscCompleteCheck": {
|
|
"DscPath": "CryptoPkg.dsc",
|
|
"IgnoreInf": []
|
|
},
|
|
"GuidCheck": {
|
|
"IgnoreGuidName": [],
|
|
"IgnoreGuidValue": [],
|
|
"IgnoreFoldersAndFiles": []
|
|
},
|
|
"LibraryClassCheck": {
|
|
"IgnoreHeaderFile": []
|
|
},
|
|
|
|
## options defined ci/Plugin/SpellCheck
|
|
"SpellCheck": {
|
|
"skip": True,
|
|
"IgnoreFiles": [], # use gitignore syntax to ignore errors in matching files
|
|
"ExtendWords": [], # words to extend to the dictionary for this package
|
|
"IgnoreStandardPaths": [], # Standard Plugin defined paths that should be ignore
|
|
"AdditionalIncludePaths": [] # Additional paths to spell check (wildcards supported)
|
|
},
|
|
|
|
# options defined in .pytool/Plugin/UncrustifyCheck
|
|
"UncrustifyCheck": {
|
|
"IgnoreFiles": [
|
|
"opensslconf.h",
|
|
"dso_conf.h",
|
|
"opensslconf_generated.h"
|
|
]
|
|
}
|
|
}
|