2 # Azure Pipeline build file for building a platform.
4 # Platform: EmulatorPkg
8 # Copyright (c) Microsoft Corporation.
9 # Copyright (c) 2020, Intel Corporation. All rights reserved.
10 # SPDX-License-Identifier: BSD-2-Clause-Patent
19 package: 'EmulatorPkg'
20 vm_image: 'ubuntu-latest'
22 run_flags: "MAKE_STARTUP_NSH=TRUE"
24 #Use matrix to speed up the build process
27 EmulatorPkg_X64_DEBUG:
28 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
32 Run.Flags: $(run_flags)
34 EmulatorPkg_X64_RELEASE:
35 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
38 Build.Target: "RELEASE"
39 Run.Flags: $(run_flags)
41 EmulatorPkg_X64_NOOPT:
42 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
46 Run.Flags: $(run_flags)
48 EmulatorPkg_IA32_DEBUG:
49 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
53 Run.Flags: $(run_flags)
55 EmulatorPkg_IA32_RELEASE:
56 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
59 Build.Target: "RELEASE"
60 Run.Flags: $(run_flags)
62 EmulatorPkg_IA32_NOOPT:
63 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
67 Run.Flags: $(run_flags)
69 EmulatorPkg_X64_FULL_DEBUG:
70 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
72 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
74 Run.Flags: $(run_flags)
76 EmulatorPkg_X64_FULL_RELEASE:
77 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
79 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
80 Build.Target: "RELEASE"
81 Run.Flags: $(run_flags)
83 EmulatorPkg_X64_FULL_NOOPT:
84 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
86 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
88 Run.Flags: $(run_flags)
90 EmulatorPkg_IA32_FULL_DEBUG:
91 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
93 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
95 Run.Flags: $(run_flags)
97 EmulatorPkg_IA32_FULL_RELEASE:
98 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
100 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
101 Build.Target: "RELEASE"
102 Run.Flags: $(run_flags)
104 EmulatorPkg_IA32_FULL_NOOPT:
105 Build.File: "$(package)/PlatformCI/PlatformBuild.py"
107 Build.Flags: "BLD_*_SECURE_BOOT_ENABLE=TRUE"
108 Build.Target: "NOOPT"
109 Run.Flags: $(run_flags)
119 - template: ../../../.azurepipelines/templates/platform-build-run-steps.yml
122 build_pkg: $(package)
123 build_target: $(Build.Target)
124 build_arch: $(Build.Arch)
125 build_file: $(Build.File)
126 build_flags: $(Build.Flags)
127 run_flags: $(Run.Flags)
128 # Add steps to install some IA32 only dependencies
130 - bash: sudo dpkg --add-architecture i386
131 displayName: Add i386 to dpkg
132 condition: and(gt(variables.pkg_count, 0), eq(variables['Build.Arch'], 'IA32'), succeeded())
133 - bash: sudo apt-get update
134 displayName: do apt-get update
135 condition: and(gt(variables.pkg_count, 0), eq(variables['Build.Arch'], 'IA32'), succeeded())
136 - bash: sudo apt-get install libc6-dev:i386 libx11-dev:i386 libxext-dev:i386 lib32gcc-7-dev
137 displayName: Add additional i386 packages
138 condition: and(gt(variables.pkg_count, 0), eq(variables['Build.Arch'], 'IA32'), succeeded())