From nobody Mon Feb 9 20:59:20 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+83235+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+83235+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635930707; cv=none; d=zohomail.com; s=zohoarc; b=alyNhom5u5ia/fcogpo5HXMWtj9IC9FAdRw7n2LGIadLISowR5/pMDlmgw4QDTVRfC/hEpFu8gPF9w5naDWqTmipWv2qV4hjsb35pCxog4uasX+K5P1afzqb3REHsqv9Fl15pxfY80R3MH8ASLIrsYh1d0qEphl/TsDBx6Gl0AM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635930707; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=YSWDoE5J9e2qB5ittGXmKfisKvpqFqsl2AfnppT/W6c=; b=eDSZ39csC/5g62iTNcT/EmRnW4E9WXtAu72Qm3cwOBhczA+6AyziH73QJCZqosuyNHQKxPbUgsy74LEI4tT+s4HoPQp11RTgBshbAcr6S032+/R1wS4/xQSq+LxG1fnkfjiaZ3gt9qdfIo+RZBASjscJhOLQtWsALLC9yxFDOuE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+83235+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1635930707048354.48796958296634; Wed, 3 Nov 2021 02:11:47 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id LlDsYY1788612xRfTEdc1SC3; Wed, 03 Nov 2021 02:11:46 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web10.5180.1635930705789541999 for ; Wed, 03 Nov 2021 02:11:46 -0700 X-Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-364-rLQDfkNtOwWUzKqhnkgDVA-1; Wed, 03 Nov 2021 05:11:41 -0400 X-MC-Unique: rLQDfkNtOwWUzKqhnkgDVA-1 X-Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4A8561006AA6; Wed, 3 Nov 2021 09:11:40 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 974C61B5C0; Wed, 3 Nov 2021 09:11:36 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 402BB1801AB5; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao , Jiewen Yao , Ard Biesheuvel Subject: [edk2-devel] [PATCH v3 3/7] OvmfPkg/PlatformCI: add BhyveBuild.py Date: Wed, 3 Nov 2021 10:11:19 +0100 Message-Id: <20211103091123.2953172-4-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: DaE9HMNc7cQxrZyqyG4QRPNSx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635930706; bh=IzKZv5T7G2F3byBSvGyzJobi1cE969qYbfMbT4Cx0m8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=TgXCQwZVFC8hZY8urehRERYLpJdX6eUBzVoKmq5nn3WYgJFD7Lxze6aByHV65pB6oDN QYLTsykQ9tGDh6W9NEXbc7QzQxzyHCgGOeQR3o3JzZbTH2goya1gN+TMOWkE4P+uEXErE imXngYgde+JuZoWugnSNvc9OcymtqxcYSzE= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635930707969100004 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/Bhyve. Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Signed-off-by: Gerd Hoffmann --- .../.azurepipelines/Ubuntu-GCC5.yml | 9 +++++ OvmfPkg/PlatformCI/BhyveBuild.py | 37 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 OvmfPkg/PlatformCI/BhyveBuild.py diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/P= latformCI/.azurepipelines/Ubuntu-GCC5.yml index 7117b86b8177..cc37a2be8f93 100644 --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -113,6 +113,15 @@ jobs: Build.Target: "NOOPT" Run.Flags: $(run_flags) 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=3DTRUE" + Run: $(should_run) workspace: clean: all =20 diff --git a/OvmfPkg/PlatformCI/BhyveBuild.py b/OvmfPkg/PlatformCI/BhyveBui= ld.py new file mode 100644 index 000000000000..c2de96d23673 --- /dev/null +++ b/OvmfPkg/PlatformCI/BhyveBuild.py @@ -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 =3D ("OvmfPkg",) + ArchSupported =3D ("X64",) + TargetsSupported =3D ("DEBUG", "RELEASE", "NOOPT") + Scopes =3D ('ovmf', 'edk2-build') + WorkspaceRoot =3D 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 =3D CommonPlatform --=20 2.31.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#83235): https://edk2.groups.io/g/devel/message/83235 Mute This Topic: https://groups.io/mt/86786869/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-