From nobody Tue Feb 10 01:59:18 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+82644+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+82644+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1635168002; cv=none; d=zohomail.com; s=zohoarc; b=R3Q18pCA3uVQHkAJnNDb+wn+0BQ50Lf2NgKrA10LZfanEME4vNuffxgEuyR062ue7U2lOaLInykNMarDcEWTVOTtotZNj3AXL3qKn980jyRQZ669Zx9qsTJ3948/5vKj/cO3164L11rGKywIF02q5/FTtJzGV8Rl6mAIIH+StiQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635168002; 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=k3ADM+aXogeELKZnnPPv8V16VX9RUvK/kss56VEqpw8=; b=TfV9k9Qkt/JkFN804mjc1z+2jZxJydiggvffSaVUpvVK0AHAUCmR/lwhwQ9oA/zMvVie2oYB4+ZmDYf/CtxnW5LgZkzN1+P2Zi8JMJfjuCCq3hPNOhCmXg2CCg3vuPFnVR3tMLEqBIfHFfD1EjcbqygZoazejbhgJyzJS10dvyc= 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+82644+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 16351680024061015.7102675389696; Mon, 25 Oct 2021 06:20:02 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 2fQnYY1788612xpNLjdrEGAo; Mon, 25 Oct 2021 06:20:01 -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.web08.32341.1635168001070824919 for ; Mon, 25 Oct 2021 06:20:01 -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-310-Iw_U8xBqOx6FZ6cIqmdozg-1; Mon, 25 Oct 2021 09:19:54 -0400 X-MC-Unique: Iw_U8xBqOx6FZ6cIqmdozg-1 X-Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7DE79100C660; Mon, 25 Oct 2021 13:19:53 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B1C2916A37; Mon, 25 Oct 2021 13:19:42 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 7B77E1800840; Mon, 25 Oct 2021 15:19:31 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Gerd Hoffmann , Jordan Justen , Jiewen Yao , Ard Biesheuvel , Sean Brogan , Liming Gao , Michael D Kinney Subject: [edk2-devel] [PATCH v2 3/7] OvmfPkg/PlatformCI: add BhyveBuild.py Date: Mon, 25 Oct 2021 15:19:27 +0200 Message-Id: <20211025131931.129666-4-kraxel@redhat.com> In-Reply-To: <20211025131931.129666-1-kraxel@redhat.com> References: <20211025131931.129666-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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: Ecs7ElJfMwBJrCHqnC4SDHNxx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635168001; bh=N6e81iGi/qNBdui0+I+Q3mr09FnooQfvrCyeVptK4JI=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=ik4umjjbtqz+4dM8Oyy2adw1rXuZrVuL5Snon7Oeh7ELqrcW1l4j4dP3NC+LcUGr8fb fOIqNb2/Z2xo6QLvtQoWmh6cClQUwUR3gj+un0QEjiqJkHtkqC3fOzHy20z0SI6j/qq10 7qVfQ+MYGiJy7zl3Z1ONvjTTZUtqJWGDSvg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635168004339100002 Content-Type: text/plain; charset="utf-8" Add build test for OvmfPkg/Bhyve. 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..dd5bfe6661cf --- /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.join(os.getcwd(), 'OvmfPkg', 'PlatformCI')) +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 (#82644): https://edk2.groups.io/g/devel/message/82644 Mute This Topic: https://groups.io/mt/86576679/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-