]> git.proxmox.com Git - mirror_edk2.git/commitdiff
EmulatorPkg: Add CI build for SECURE_BOOT_ENABLE
authorMichael D Kinney <michael.d.kinney@intel.com>
Thu, 24 Sep 2020 22:40:25 +0000 (15:40 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 28 Sep 2020 20:23:04 +0000 (20:23 +0000)
https://bugzilla.tianocore.org/show_bug.cgi?id=2979

Add EmulatorPkg CI builds for SECURE_BOOT_ENABLE=TRUE
for IA32/X64 and DEBUG/RELEASE/NOOPT.  Label these as
FULL builds, so if additional build options are added
in the future, they can be added to these FULL builds.

Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Divneil Rai Wadhawan <divneil.r.wadhawan@intel.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Sean Brogan <sean.brogan@microsoft.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
EmulatorPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
EmulatorPkg/PlatformCI/.azurepipelines/Windows-VS2019.yml
EmulatorPkg/PlatformCI/ReadMe.md

index 12ef8226ff5493f207f45517488049fc7bbf98d1..0e5f4d9961e36ea05b19f8f8719537d821b8e07c 100644 (file)
@@ -6,6 +6,7 @@
 # Toolchain: GCC5\r
 #\r
 # Copyright (c) Microsoft Corporation.\r
+# Copyright (c) 2020, Intel Corporation. All rights reserved.\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ##\r
 trigger:\r
@@ -65,6 +66,48 @@ jobs:
             Build.Target: "NOOPT"\r
             Run.Flags: $(run_flags)\r
             Run: $(should_run)\r
+          EmulatorPkg_X64_FULL_DEBUG:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "X64"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "DEBUG"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_X64_FULL_RELEASE:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "X64"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "RELEASE"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_X64_FULL_NOOPT:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "X64"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "NOOPT"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_IA32_FULL_DEBUG:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "IA32"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "DEBUG"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_IA32_FULL_RELEASE:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "IA32"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "RELEASE"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_IA32_FULL_NOOPT:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "IA32"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "NOOPT"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
 \r
     workspace:\r
       clean: all\r
index a5baf4b6064b0db66a9f8bcd56e2f837102cf010..2bfce4e0af1211838c50fe11bdccfc22f36f5228 100644 (file)
@@ -6,6 +6,7 @@
 # Toolchain: VS2019\r
 #\r
 # Copyright (c) Microsoft Corporation.\r
+# Copyright (c) 2020, Intel Corporation. All rights reserved.\r
 # SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ##\r
 trigger:\r
@@ -66,6 +67,48 @@ jobs:
             Build.Target: "NOOPT"\r
             Run.Flags: $(run_flags)\r
             Run: $(should_run)\r
+          EmulatorPkg_X64_FULL_DEBUG:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "X64"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "DEBUG"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_X64_FULL_RELEASE:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "X64"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "RELEASE"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_X64_FULL_NOOPT:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "X64"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "NOOPT"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_IA32_FULL_DEBUG:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "IA32"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "DEBUG"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_IA32_FULL_RELEASE:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "IA32"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "RELEASE"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
+          EmulatorPkg_IA32_FULL_NOOPT:\r
+            Build.File: "$(package)/PlatformCI/PlatformBuild.py"\r
+            Build.Arch: "IA32"\r
+            Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"\r
+            Build.Target: "NOOPT"\r
+            Run.Flags: $(run_flags)\r
+            Run: $(should_run)\r
 \r
     workspace:\r
       clean: all\r
index c51838ec1aa704e5e5ee84281a97acfe6333104c..91c40b2093b1b39bbf80b62c5ff67c31d392e50d 100644 (file)
@@ -6,13 +6,15 @@ to use the same Pytools based build infrastructure locally.
 ## Supported Configuration Details\r
 \r
 This solution for building and running EmulatorPkg has only been validated with Windows 10\r
-with VS2019 and Ubuntu 18.04 with GCC5 toolchain. Two different firmware builds are\r
+with VS2019 and Ubuntu 18.04 with GCC5 toolchain. Four different firmware builds are\r
 supported and are described below.\r
 \r
 | Configuration name      | Architectures      | DSC File         |Additional Flags |\r
 | :----                   | :-----             | :----            | :----           |\r
 | IA32                    | IA32               | EmulatorPkg.dsc  | None            |\r
 | X64                     | X64                | EmulatorPkg.dsc  | None            |\r
+| IA32 Full               | IA32               | EmulatorPkg.dsc  | SECURE_BOOT_ENABLE=TRUE |\r
+| X64 Full                | X64                | EmulatorPkg.dsc  | SECURE_BOOT_ENABLE=TRUE |\r
 \r
 ## EDK2 Developer environment\r
 \r