mirror of https://github.com/acidanthera/audk.git
OvmfPkg/PlatformCI: add BhyveBuild.py
Add build test for OvmfPkg/Bhyve. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Jiewen Yao <Jiewen.yao@intel.com> Acked-by: Ard Biesheuvel <ardb@kernel.org>
This commit is contained in:
parent
21ee379407
commit
64bccda534
|
@ -113,6 +113,15 @@ jobs:
|
||||||
Build.Target: "NOOPT"
|
Build.Target: "NOOPT"
|
||||||
Run.Flags: $(run_flags)
|
Run.Flags: $(run_flags)
|
||||||
Run: $(should_run)
|
Run: $(should_run)
|
||||||
|
|
||||||
|
BHYVE_X64_DEBUG:
|
||||||
|
Build.File: "$(package)/PlatformCI/BhyveBuild.py"
|
||||||
|
Build.Arch: "X64"
|
||||||
|
Build.Flags: ""
|
||||||
|
Build.Target: "DEBUG"
|
||||||
|
# this build is for freebsd bhyve not qemu-kvm
|
||||||
|
Run.Flags: "QEMU_SKIP=TRUE"
|
||||||
|
Run: $(should_run)
|
||||||
workspace:
|
workspace:
|
||||||
clean: all
|
clean: all
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
# @file
|
||||||
|
# Script to Build OVMF 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 = ("OvmfPkg",)
|
||||||
|
ArchSupported = ("X64",)
|
||||||
|
TargetsSupported = ("DEBUG", "RELEASE", "NOOPT")
|
||||||
|
Scopes = ('ovmf', 'edk2-build')
|
||||||
|
WorkspaceRoot = os.path.realpath(os.path.join(
|
||||||
|
os.path.dirname(os.path.abspath(__file__)), "..", ".."))
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def GetDscName(cls, ArchCsv: str) -> str:
|
||||||
|
''' return the DSC given the architectures requested.
|
||||||
|
|
||||||
|
ArchCsv: csv string containing all architectures to build
|
||||||
|
'''
|
||||||
|
return "Bhyve/BhyveX64.dsc"
|
||||||
|
|
||||||
|
import PlatformBuildLib
|
||||||
|
PlatformBuildLib.CommonPlatform = CommonPlatform
|
Loading…
Reference in New Issue