1 | ## @file
|
---|
2 | # CI configuration for SecurityPkg
|
---|
3 | #
|
---|
4 | # Copyright (c) Microsoft Corporation
|
---|
5 | # Copyright (c) 2020 - 2024, Intel Corporation. All rights reserved.<BR>
|
---|
6 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 | ##
|
---|
8 | {
|
---|
9 | "LicenseCheck": {
|
---|
10 | "IgnoreFiles": [
|
---|
11 | "DeviceSecurity/SpdmLib/Include",
|
---|
12 | ]
|
---|
13 | },
|
---|
14 | "EccCheck": {
|
---|
15 | ## Exception sample looks like below:
|
---|
16 | ## "ExceptionList": [
|
---|
17 | ## "<ErrorID>", "<KeyWord>"
|
---|
18 | ## ]
|
---|
19 | "ExceptionList": [
|
---|
20 | "8005", "gRT",
|
---|
21 | "8001", "DxeTpm2MeasureBootLibUnitTestMain",
|
---|
22 | "8001", "DxeTpmMeasureBootLibUnitTestMain"
|
---|
23 | ],
|
---|
24 | ## Both file path and directory path are accepted.
|
---|
25 | "IgnoreFiles": [
|
---|
26 | "Library/TcgStorageCoreLib/TcgStorageUtil.c",
|
---|
27 | "Library/TcgStorageCoreLib/TcgStorageCore.c",
|
---|
28 | "Library/Tpm2CommandLib/Tpm2NVStorage.c",
|
---|
29 | "DeviceSecurity/SpdmLib/Include",
|
---|
30 | "DeviceSecurity/SpdmLib/libspdm",
|
---|
31 | "DeviceSecurity/OsStub"
|
---|
32 | ]
|
---|
33 | },
|
---|
34 | "CompilerPlugin": {
|
---|
35 | "DscPath": "SecurityPkg.dsc"
|
---|
36 | },
|
---|
37 | ## options defined .pytool/Plugin/HostUnitTestCompilerPlugin
|
---|
38 | "HostUnitTestCompilerPlugin": {
|
---|
39 | "DscPath": "Test/SecurityPkgHostTest.dsc"
|
---|
40 | },
|
---|
41 | "CharEncodingCheck": {
|
---|
42 | "IgnoreFiles": []
|
---|
43 | },
|
---|
44 | "DependencyCheck": {
|
---|
45 | "AcceptableDependencies": [
|
---|
46 | "MdePkg/MdePkg.dec",
|
---|
47 | "MdeModulePkg/MdeModulePkg.dec",
|
---|
48 | "UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec",
|
---|
49 | "SecurityPkg/SecurityPkg.dec",
|
---|
50 | "StandaloneMmPkg/StandaloneMmPkg.dec",
|
---|
51 | "CryptoPkg/CryptoPkg.dec"
|
---|
52 | ],
|
---|
53 | # For host based unit tests
|
---|
54 | "AcceptableDependencies-HOST_APPLICATION":[],
|
---|
55 | # For UEFI shell based apps
|
---|
56 | "AcceptableDependencies-UEFI_APPLICATION":[],
|
---|
57 | "IgnoreInf": []
|
---|
58 | },
|
---|
59 | "DscCompleteCheck": {
|
---|
60 | "DscPath": "SecurityPkg.dsc",
|
---|
61 | "IgnoreInf": []
|
---|
62 | },
|
---|
63 | ## options defined .pytool/Plugin/HostUnitTestDscCompleteCheck
|
---|
64 | "HostUnitTestDscCompleteCheck": {
|
---|
65 | "IgnoreInf": [""],
|
---|
66 | "DscPath": "Test/SecurityPkgHostTest.dsc"
|
---|
67 | },
|
---|
68 | "GuidCheck": {
|
---|
69 | "IgnoreGuidName": [],
|
---|
70 | "IgnoreGuidValue": ["00000000-0000-0000-0000-000000000000"],
|
---|
71 | "IgnoreFoldersAndFiles": [],
|
---|
72 | "IgnoreDuplicates": [
|
---|
73 | "Tpm2InstanceLibDTpm=gEfiTpmDeviceInstanceTpm20DtpmGuid", # by design
|
---|
74 | ]
|
---|
75 | },
|
---|
76 | "LibraryClassCheck": {
|
---|
77 | "IgnoreHeaderFile": [
|
---|
78 | "DeviceSecurity/SpdmLib/Include/library",
|
---|
79 | "DeviceSecurity/SpdmLib/libspdm/include/library",
|
---|
80 | ],
|
---|
81 | "skip": True
|
---|
82 | },
|
---|
83 |
|
---|
84 | ## options defined ci/Plugin/SpellCheck
|
---|
85 | "SpellCheck": {
|
---|
86 | "AuditOnly": True, # Fails test but run in AuditOnly mode to collect log
|
---|
87 | "ExtendWords": [ # words to extend to the dictionary for this package
|
---|
88 | "shortformed", # tpm acpi
|
---|
89 | "autodetect",
|
---|
90 | "blocksid",
|
---|
91 | "comid",
|
---|
92 | "cpinsidpin", #OpalSScV2
|
---|
93 | "ecdsa", # TPM
|
---|
94 | "ecschnorr", # TPM
|
---|
95 | "eisaid", # ACPI
|
---|
96 | "harddisk",
|
---|
97 | "hashall",
|
---|
98 | "hashto",
|
---|
99 | "kek's",
|
---|
100 | "lfanew", # PE/COFF
|
---|
101 | "pcrindex",
|
---|
102 | "pkglength",
|
---|
103 | "ppuser",
|
---|
104 | "preos",
|
---|
105 | "stclear",
|
---|
106 | "toctou",
|
---|
107 | "tpm's",
|
---|
108 | "tpmcmdbuflength",
|
---|
109 | "tpmcommlib",
|
---|
110 | "tpmnvvaluelength",
|
---|
111 | "wrlocked",
|
---|
112 | "xored"
|
---|
113 | ],
|
---|
114 | "IgnoreStandardPaths": [], # Standard Plugin defined paths that should be ignore
|
---|
115 | "AdditionalIncludePaths": [] # Additional paths to spell check (wildcards supported)
|
---|
116 | },
|
---|
117 |
|
---|
118 | "Defines": {
|
---|
119 | "BLD_*_CONTINUOUS_INTEGRATION": "TRUE",
|
---|
120 | },
|
---|
121 |
|
---|
122 | "DebugMacroCheck": {
|
---|
123 | "StringSubstitutions": {
|
---|
124 | # SecurityPkg/IntelTdx/TdTcg2Dxe/TdTcg2Dxe.c
|
---|
125 | # Reason: Acknowledging use of two format specifiers in string with one argument
|
---|
126 | # Replace ternary operator in debug string with single specifier
|
---|
127 | 'Index == COLUME_SIZE/2 ? " | %02x" : " %02x"': "%d"
|
---|
128 | }
|
---|
129 | }
|
---|
130 | }
|
---|