]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmbeddedPkg: Add CI YAML file
authorMichael Kubacki <michael.kubacki@microsoft.com>
Sat, 3 Sep 2022 00:56:28 +0000 (20:56 -0400)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 3 Oct 2022 18:22:03 +0000 (18:22 +0000)
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=4046

Adds EmbeddedPkg to the list of supported build packages for edk2
CI and fixes Library Class Check errors reported.

These changes allow EmbeddedPkg to pass NO-TARGET CI testing.

Cc: Leif Lindholm <quic_llindhol@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Abner Chang <abner.chang@amd.com>
Cc: Daniel Schaefer <git@danielschaefer.me>
Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
.pytool/CISettings.py
EmbeddedPkg/EmbeddedPkg.ci.yaml [new file with mode: 0644]
EmbeddedPkg/EmbeddedPkg.dec

index cf9e0d77b19bba2c67f9a25ae9c9c15a7549036c..aef850a54549b23338fa4f3ce377d2755ea30dd4 100644 (file)
@@ -53,6 +53,7 @@ class Settings(CiBuildSettingsManager, UpdateSettingsManager, SetupSettingsManag
                 "ArmPlatformPkg",\r
                 "ArmVirtPkg",\r
                 "DynamicTablesPkg",\r
+                "EmbeddedPkg",\r
                 "EmulatorPkg",\r
                 "MdePkg",\r
                 "MdeModulePkg",\r
diff --git a/EmbeddedPkg/EmbeddedPkg.ci.yaml b/EmbeddedPkg/EmbeddedPkg.ci.yaml
new file mode 100644 (file)
index 0000000..21f3010
--- /dev/null
@@ -0,0 +1,89 @@
+## @file\r
+# Core CI configuration for EmbeddedPkg\r
+#\r
+# Copyright (c) Microsoft Corporation\r
+#\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+##\r
+{\r
+    ## options defined .pytool/Plugin/LicenseCheck\r
+    "LicenseCheck": {\r
+        "IgnoreFiles": []\r
+    },\r
+\r
+    "EccCheck": {\r
+        ## Exception sample looks like below:\r
+        ## "ExceptionList": [\r
+        ##     "<ErrorID>", "<KeyWord>"\r
+        ## ]\r
+        "ExceptionList": [\r
+        ],\r
+        ## Both file path and directory path are accepted.\r
+        "IgnoreFiles": []\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/CompilerPlugin\r
+    "CompilerPlugin": {\r
+        "DscPath": "EmbeddedPkg.dsc"\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/HostUnitTestCompilerPlugin\r
+    "HostUnitTestCompilerPlugin": {\r
+        "DscPath": "" # Don't support this test\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/CharEncodingCheck\r
+    "CharEncodingCheck": {\r
+        "IgnoreFiles": []\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/DependencyCheck\r
+    "DependencyCheck": {\r
+        "AcceptableDependencies": [\r
+            "ArmPkg/ArmPkg.dec",\r
+            "ArmPlatformPkg/ArmPlatformPkg.dec",\r
+            "EmbeddedPkg/EmbeddedPkg.dec",\r
+            "MdeModulePkg/MdeModulePkg.dec",\r
+            "MdePkg/MdePkg.dec"\r
+        ],\r
+        # For host based unit tests\r
+        "AcceptableDependencies-HOST_APPLICATION":[],\r
+        # For UEFI shell based apps\r
+        "AcceptableDependencies-UEFI_APPLICATION":[],\r
+        "IgnoreInf": []\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/DscCompleteCheck\r
+    "DscCompleteCheck": {\r
+        "IgnoreInf": [""],\r
+        "DscPath": ""  # Don't support this test\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/HostUnitTestDscCompleteCheck\r
+    "HostUnitTestDscCompleteCheck": {\r
+        "IgnoreInf": [""],\r
+        "DscPath": "" # Don't support this test\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/GuidCheck\r
+    "GuidCheck": {\r
+        "IgnoreGuidName": [],\r
+        "IgnoreGuidValue": [],\r
+        "IgnoreFoldersAndFiles": [],\r
+        "IgnoreDuplicates": [],\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/LibraryClassCheck\r
+    "LibraryClassCheck": {\r
+        "IgnoreHeaderFile": []\r
+    },\r
+\r
+    ## options defined .pytool/Plugin/SpellCheck\r
+    "SpellCheck": {\r
+        "AuditOnly": True,           # Fails right now with over 270 errors\r
+        "IgnoreFiles": [],           # use gitignore syntax to ignore errors in matching files\r
+        "ExtendWords": [],           # words to extend to the dictionary for this package\r
+        "IgnoreStandardPaths": [],   # Standard Plugin defined paths that should be ignore\r
+        "AdditionalIncludePaths": [] # Additional paths to spell check (wildcards supported)\r
+    }\r
+}\r
index 637888e0fd4fc7798135b23cb6ee2900e25dd3a4..341ef5e6a679819aa24620c3603199ae678f1c00 100644 (file)
   GdbSerialLib|Include/Library/GdbSerialLib.h\r
   DebugAgentTimerLib|Include/Library/DebugAgentTimerLib.h\r
   NorFlashInfoLib|Include/Library/NorFlashInfoLib.h\r
+  HalRuntimeServicesLib|Include/Library/HalRuntimeServicesLib.h\r
+  PrePiHobListPointerLib|Include/Library/PrePiHobListPointerLib.h\r
+  TimeBaseLib|Include/Library/TimeBaseLib.h\r
+  AcpiLib|Include/Library/AcpiLib.h\r
+  AndroidBootImgLib|Include/Library/AndroidBootImgLib.h\r
+  DmaLib|Include/Library/DmaLib.h\r
+  EfiFileLib|Include/Library/EfiFileLib.h\r
+  FdtLoadLib|Include/Library/FdtLoadLib.h\r
 \r
   DtPlatformDtbLoaderLib|Include/Library/DtPlatformDtbLoaderLib.h\r
 \r