diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2023-01-18 18:18:09 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-01-26 18:54:58 +0000 |
commit | ca573b86157e7fcd34cd44e79ebd10e89d8b8cc4 (patch) | |
tree | 114eb1c6f7bf7429b6db4db1e6be1f35e1facdd4 | |
parent | 0eda2533170b9e9793c245d9cb4710e5c8d997f6 (diff) | |
download | edk2-ca573b86157e7fcd34cd44e79ebd10e89d8b8cc4.tar.gz edk2-ca573b86157e7fcd34cd44e79ebd10e89d8b8cc4.tar.bz2 edk2-ca573b86157e7fcd34cd44e79ebd10e89d8b8cc4.zip |
ArmVirtPkg/PlatformCI: Perform build test of ArmVirtKvmTool
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
-rw-r--r-- | ArmVirtPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml | 25 | ||||
-rw-r--r-- | ArmVirtPkg/PlatformCI/KvmToolBuild.py | 32 |
2 files changed, 57 insertions, 0 deletions
diff --git a/ArmVirtPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/ArmVirtPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml index 2b6cc11916..d1772a65fc 100644 --- a/ArmVirtPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/ArmVirtPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -115,6 +115,31 @@ jobs: Run.Flags: $(run_flags)
Run: $(should_run)
+ KVMTOOL_AARCH64_DEBUG:
+ Build.File: "$(package)/PlatformCI/KvmToolBuild.py"
+ Build.Arch: "AARCH64"
+ Build.Flags: ""
+ Build.Target: "DEBUG"
+ Run: false
+ KVMTOOL_AARCH64_RELEASE:
+ Build.File: "$(package)/PlatformCI/KvmToolBuild.py"
+ Build.Arch: "AARCH64"
+ Build.Flags: ""
+ Build.Target: "RELEASE"
+ Run: false
+ KVMTOOL_ARM_DEBUG:
+ Build.File: "$(package)/PlatformCI/KvmToolBuild.py"
+ Build.Arch: "ARM"
+ Build.Flags: ""
+ Build.Target: "DEBUG"
+ Run: false
+ KVMTOOL_ARM_RELEASE:
+ Build.File: "$(package)/PlatformCI/KvmToolBuild.py"
+ Build.Arch: "ARM"
+ Build.Flags: ""
+ Build.Target: "RELEASE"
+ Run: false
+
workspace:
clean: all
diff --git a/ArmVirtPkg/PlatformCI/KvmToolBuild.py b/ArmVirtPkg/PlatformCI/KvmToolBuild.py new file mode 100644 index 0000000000..4d02dba124 --- /dev/null +++ b/ArmVirtPkg/PlatformCI/KvmToolBuild.py @@ -0,0 +1,32 @@ +# @file
+# Script to Build ArmVirtPkg UEFI firmware
+#
+# Copyright (c) Microsoft Corporation.
+# SPDX-License-Identifier: BSD-2-Clause-Patent
+##
+import os
+import sys
+
+sys.path.append(os.path.dirname(os.path.abspath(__file__)))
+from PlatformBuildLib import SettingsManager
+from PlatformBuildLib import PlatformBuilder
+
+ # ####################################################################################### #
+ # Common Configuration #
+ # ####################################################################################### #
+class CommonPlatform():
+ ''' Common settings for this platform. Define static data here and use
+ for the different parts of stuart
+ '''
+ PackagesSupported = ("ArmVirtPkg",)
+ ArchSupported = ("AARCH64", "ARM")
+ TargetsSupported = ("DEBUG", "RELEASE")
+ Scopes = ('armvirt', 'edk2-build')
+ WorkspaceRoot = os.path.realpath(os.path.join(
+ os.path.dirname(os.path.abspath(__file__)), "..", ".."))
+
+ DscName = os.path.join("ArmVirtPkg", "ArmVirtKvmTool.dsc")
+ FvQemuArg = "" # ignored
+
+import PlatformBuildLib
+PlatformBuildLib.CommonPlatform = CommonPlatform
|