]> git.proxmox.com Git - mirror_edk2.git/commitdiff
FmpDevicePkg: Add YAML file for CI builds
authorMichael D Kinney <michael.d.kinney@intel.com>
Mon, 28 Oct 2019 20:19:46 +0000 (13:19 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Mon, 11 Nov 2019 21:02:14 +0000 (13:02 -0800)
https://bugzilla.tianocore.org/show_bug.cgi?id=2315

Add YAML file to the package directory with the
configuration of the checks to perform during a
CI build.

Use BaseCryptLibNull for package CI builds to reduce package
build times.  Enabled with CONTINUOUS_INTEGRATION in YAML
files.  By default CONTINUOUS_INTEGRATION is not defined,
and the original lib mappings are preserved.

Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
FmpDevicePkg/FmpDevicePkg.ci.yaml [new file with mode: 0644]
FmpDevicePkg/FmpDevicePkg.dsc

diff --git a/FmpDevicePkg/FmpDevicePkg.ci.yaml b/FmpDevicePkg/FmpDevicePkg.ci.yaml
new file mode 100644 (file)
index 0000000..c17b355
--- /dev/null
@@ -0,0 +1,43 @@
+## @file\r
+# CI configuration for FmpDevicePkg\r
+#\r
+# Copyright (c) Microsoft Corporation\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
+##\r
+{\r
+    "CompilerPlugin": {\r
+        "DscPath": "FmpDevicePkg.dsc"\r
+    },\r
+    "CharEncodingCheck": {\r
+        "IgnoreFiles": []\r
+    },\r
+    "DependencyCheck": {\r
+        "AcceptableDependencies": [\r
+            "MdePkg/MdePkg.dec",\r
+            "MdeModulePkg/MdeModulePkg.dec",\r
+            "FmpDevicePkg/FmpDevicePkg.dec",\r
+            "CryptoPkg/CryptoPkg.dec"\r
+        ],\r
+        "IgnoreInf": []\r
+    },\r
+    "DscCompleteCheck": {\r
+        "DscPath": "FmpDevicePkg.dsc",\r
+        "IgnoreInf": []\r
+    },\r
+    "GuidCheck": {\r
+        "IgnoreGuidName": [],\r
+        "IgnoreGuidValue": [],\r
+        "IgnoreFoldersAndFiles": []\r
+    },\r
+    "LibraryClassCheck": {\r
+        "IgnoreHeaderFile": []\r
+    },\r
+    "SpellCheck": {\r
+        "ExtendWords": [\r
+            "FMPSTATE",\r
+        ]\r
+    },\r
+    "Defines": {\r
+        "BLD_*_CONTINUOUS_INTEGRATION": "TRUE",\r
+    }\r
+}\r
index 67b5aa7a327468aa91cc3a3e761aecddcbe80d4e..f4093d3837c65fd71ad0264aa6cc6d91754d320f 100644 (file)
   DebugLib|MdePkg/Library/UefiDebugLibStdErr/UefiDebugLibStdErr.inf\r
   DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf\r
   PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
-  OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
+!ifdef CONTINUOUS_INTEGRATION\r
+  BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf\r
+!else\r
   IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
+  OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
   BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
+!endif\r
   FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf\r
   CapsuleUpdatePolicyLib|FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf\r
   FmpPayloadHeaderLib|FmpDevicePkg/Library/FmpPayloadHeaderLibV1/FmpPayloadHeaderLibV1.inf\r