2019-10-28 23:20:04 +03:00
|
|
|
## @file
|
|
|
|
# CI configuration for MdeModulePkg
|
|
|
|
#
|
|
|
|
# Copyright (c) Microsoft Corporation
|
2020-05-26 10:27:31 +03:00
|
|
|
# Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
|
2021-07-05 05:41:08 +03:00
|
|
|
# (C) Copyright 2021 Hewlett Packard Enterprise Development LP<BR>
|
2019-10-28 23:20:04 +03:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
##
|
|
|
|
{
|
Integrate PrEval Policy 5 (#423)
## Description
Integrates edk2-pytool-extension's PrEval's Policy 5 that runs whenever
a INF has been changed. It will parse each package's dsc (as defined in
`<pkg>.ci.yaml::PrEval.DscPath`) and mark it to be build if that package
has a dependency on the changed INF.
For each item, place an "x" in between `[` and `]` if true. Example:
`[x]`.
_(you can also check items in the GitHub UI)_
- [ ] Impacts functionality?
- **Functionality** - Does the change ultimately impact how firmware
functions?
- Examples: Add a new library, publish a new PPI, update an algorithm,
...
- [ ] Impacts security?
- **Security** - Does the change have a direct security impact on an
application,
flow, or firmware?
- Examples: Crypto algorithm change, buffer overflow fix, parameter
validation improvement, ...
- [ ] Breaking change?
- **Breaking change** - Will anyone consuming this change experience a
break
in build or boot behavior?
- Examples: Add a new library class, move a module to a different repo,
call
a function in a new library class in a pre-existing module, ...
- [ ] Includes tests?
- **Tests** - Does the change include any explicit test code?
- Examples: Unit tests, integration tests, robot tests, ...
- [ ] Includes documentation?
- **Documentation** - Does the change contain explicit documentation
additions
outside direct code modifications (and comments)?
- Examples: Update readme file, add feature readme file, link to
documentation
on an a separate Web page, ...
## How This Was Tested
N/A
## Integration Instructions
N/A
2023-06-03 00:27:24 +03:00
|
|
|
# MU_CHANGE begin
|
|
|
|
"PrEval": {
|
|
|
|
"DscPath": "MdeModulePkg.dsc",
|
|
|
|
},
|
|
|
|
# MU_CHANGE end
|
2020-07-17 10:13:34 +03:00
|
|
|
## options defined .pytool/Plugin/LicenseCheck
|
|
|
|
"LicenseCheck": {
|
2022-03-30 02:09:35 +03:00
|
|
|
"IgnoreFiles": [
|
|
|
|
"Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/BlackBoxTest", # MU_CHANGE
|
|
|
|
"Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/SctInclude", # MU_CHANGE
|
|
|
|
]
|
2020-07-17 10:13:34 +03:00
|
|
|
},
|
2020-05-26 10:27:31 +03:00
|
|
|
"EccCheck": {
|
|
|
|
## Exception sample looks like below:
|
|
|
|
## "ExceptionList": [
|
|
|
|
## "<ErrorID>", "<KeyWord>"
|
|
|
|
## ]
|
|
|
|
"ExceptionList": [
|
2021-04-30 08:07:32 +03:00
|
|
|
"8005", "UNIVERSAL_PAYLOAD_PCI_ROOT_BRIDGE.UID",
|
|
|
|
"8005", "UNIVERSAL_PAYLOAD_PCI_ROOT_BRIDGE.HID",
|
2021-08-11 09:35:39 +03:00
|
|
|
"8001", "UefiSortLibUnitTestMain",
|
2020-05-26 10:27:31 +03:00
|
|
|
],
|
|
|
|
## Both file path and directory path are accepted.
|
|
|
|
"IgnoreFiles": [
|
2021-11-23 23:59:50 +03:00
|
|
|
"Library/LzmaCustomDecompressLib",
|
|
|
|
"Library/BrotliCustomDecompressLib",
|
2022-03-30 02:09:35 +03:00
|
|
|
"Universal/RegularExpressionDxe",
|
|
|
|
"Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/BlackBoxTest", # MU_CHANGE
|
|
|
|
"Universal/Variable/RuntimeDxe/RuntimeDxeUnitTest/SctInclude", # MU_CHANGE
|
2020-05-26 10:27:31 +03:00
|
|
|
]
|
|
|
|
},
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/CompilerPlugin
|
2019-10-28 23:20:04 +03:00
|
|
|
"CompilerPlugin": {
|
|
|
|
"DscPath": "MdeModulePkg.dsc"
|
|
|
|
},
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/HostUnitTestCompilerPlugin
|
2020-01-22 21:16:14 +03:00
|
|
|
"HostUnitTestCompilerPlugin": {
|
|
|
|
"DscPath": "Test/MdeModulePkgHostTest.dsc"
|
|
|
|
},
|
2019-10-28 23:20:04 +03:00
|
|
|
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/CharEncodingCheck
|
2019-10-28 23:20:04 +03:00
|
|
|
"CharEncodingCheck": {
|
2019-12-27 09:28:20 +03:00
|
|
|
"IgnoreFiles": [
|
|
|
|
"MdeModulePkg/Universal/RegularExpressionDxe/oniguruma/test/testc.c",
|
|
|
|
"MdeModulePkg/Universal/RegularExpressionDxe/oniguruma/windows/testc.c"
|
|
|
|
]
|
2019-10-28 23:20:04 +03:00
|
|
|
},
|
|
|
|
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/DependencyCheck
|
2019-10-28 23:20:04 +03:00
|
|
|
"DependencyCheck": {
|
|
|
|
"AcceptableDependencies": [
|
|
|
|
"MdePkg/MdePkg.dec",
|
|
|
|
"MdeModulePkg/MdeModulePkg.dec",
|
|
|
|
"StandaloneMmPkg/StandaloneMmPkg.dec",
|
2021-09-03 08:17:42 +03:00
|
|
|
# MU_CHANGE
|
|
|
|
# "ArmPkg/ArmPkg.dec" # this should be fixed by promoting an abstraction
|
2019-10-28 23:20:04 +03:00
|
|
|
],
|
|
|
|
# For host based unit tests
|
2020-01-22 21:16:14 +03:00
|
|
|
"AcceptableDependencies-HOST_APPLICATION":[
|
|
|
|
"UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec"
|
|
|
|
],
|
2019-10-28 23:20:04 +03:00
|
|
|
# For UEFI shell based apps
|
2020-12-21 10:40:36 +03:00
|
|
|
"AcceptableDependencies-UEFI_APPLICATION":[
|
|
|
|
"UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec" # MU_CHANGE
|
|
|
|
],
|
2019-10-28 23:20:04 +03:00
|
|
|
"IgnoreInf": []
|
|
|
|
},
|
|
|
|
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/DscCompleteCheck
|
2019-10-28 23:20:04 +03:00
|
|
|
"DscCompleteCheck": {
|
|
|
|
"IgnoreInf": [],
|
|
|
|
"DscPath": "MdeModulePkg.dsc"
|
|
|
|
},
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/HostUnitTestDscCompleteCheck
|
2020-01-22 21:16:14 +03:00
|
|
|
"HostUnitTestDscCompleteCheck": {
|
|
|
|
"IgnoreInf": [""],
|
|
|
|
"DscPath": "Test/MdeModulePkgHostTest.dsc"
|
|
|
|
},
|
2019-10-28 23:20:04 +03:00
|
|
|
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/GuidCheck
|
2019-10-28 23:20:04 +03:00
|
|
|
"GuidCheck": {
|
|
|
|
"IgnoreGuidName": [],
|
|
|
|
"IgnoreGuidValue": ["00000000-0000-0000-0000-000000000000"],
|
|
|
|
"IgnoreFoldersAndFiles": [],
|
|
|
|
"IgnoreDuplicates": [
|
|
|
|
"gEfiPeiMmAccessPpiGuid=gPeiSmmAccessPpiGuid",
|
|
|
|
"gPeiSmmControlPpiGuid=gEfiPeiMmControlPpiGuid",
|
2021-09-16 03:14:20 +03:00
|
|
|
"gEfiPeiMmCommunicationPpiGuid=gEfiPeiSmmCommunicationPpiGuid",
|
2019-10-28 23:20:04 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/LibraryClassCheck
|
2019-10-28 23:20:04 +03:00
|
|
|
"LibraryClassCheck": {
|
2020-10-03 03:18:10 +03:00
|
|
|
"IgnoreLibraryClass": [
|
|
|
|
"HwResetSystemLib" # MU_CHANGE - "Virtual" LibraryClass
|
|
|
|
],
|
2019-10-28 23:20:04 +03:00
|
|
|
"IgnoreHeaderFile": []
|
|
|
|
},
|
|
|
|
|
2020-12-23 06:11:11 +03:00
|
|
|
## options defined .pytool/Plugin/SpellCheck
|
2019-10-28 23:20:04 +03:00
|
|
|
"SpellCheck": {
|
|
|
|
"AuditOnly": True, # Fails test but run in AuditOnly mode to collect log
|
|
|
|
"IgnoreStandardPaths": [ # Standard Plugin defined paths that should be ignore
|
|
|
|
"*.c", "*.asm", "*.h", "*.nasm", "*.s", "*.asl", "*.inf"
|
|
|
|
],
|
|
|
|
"IgnoreFiles": [ # use gitignore syntax to ignore errors in matching files
|
|
|
|
"Library/LzmaCustomDecompressLib/Sdk/DOC/*"
|
|
|
|
],
|
|
|
|
"ExtendWords": [ # words to extend to the dictionary for this package
|
|
|
|
"LIGHTGRAY",
|
|
|
|
"DARKGRAY",
|
|
|
|
"LIGHTBLUE",
|
|
|
|
"LIGHTGREEN",
|
|
|
|
"LIGHTCYAN",
|
|
|
|
"LIGHTRED",
|
|
|
|
"LIGHTMAGENTA",
|
|
|
|
"FVMAIN",
|
|
|
|
"VARCHECKPCD",
|
|
|
|
"Getxx",
|
2020-11-09 09:45:11 +03:00
|
|
|
"lzturbo",
|
|
|
|
"musthave",
|
|
|
|
"canthave"
|
2019-10-28 23:20:04 +03:00
|
|
|
],
|
|
|
|
"AdditionalIncludePaths": [] # Additional paths to spell check relative to package root (wildcards supported)
|
2020-10-14 02:14:54 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
## options defined .pytool/Plugin/MarkdownLintCheck
|
|
|
|
"MarkdownLintCheck": {
|
|
|
|
"IgnoreFiles": [ "Universal/RegularExpressionDxe/oniguruma", # submodule outside of control
|
|
|
|
"Library/BrotliCustomDecompressLib/brotli" # submodule outside of control
|
|
|
|
] # package root relative file, folder, or glob pattern to ignore
|
2019-10-28 23:20:04 +03:00
|
|
|
}
|
|
|
|
}
|