From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mx.groups.io with SMTP id smtpd.web10.3455.1678871484668156352 for ; Wed, 15 Mar 2023 02:11:24 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@ventanamicro.com header.s=google header.b=II639uvK; spf=pass (domain: ventanamicro.com, ip: 209.85.216.52, mailfrom: sunilvl@ventanamicro.com) Received: by mail-pj1-f52.google.com with SMTP id l9-20020a17090a3f0900b0023d32684e7fso3012753pjc.1 for ; Wed, 15 Mar 2023 02:11:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1678871484; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=KqAT/NLKaFKGe51SrvrQFdDnXu4QwFOmFGBit5A0404=; b=II639uvKDc+6z77ES2Rzbiv3afN4hhokVVC1b9r+GsD/awfYcMu+YrJag/IiWA1WHo YnPTglTryPwzd97L5J7TEo4oZpM4Jpp+pD5+dZuzIZvSivw1S428HLoAZJHmtMoV7tbS oHX5ttXy1ExFbChQ3oSRJ2kKNToDo3ZfTmk3huuTgDvslXX2o4I41+NySiqTy1n5N3n+ 7FLlef6/wx3Ih6eJ3lrNc9uk99G00uD7/8iZpAVZNlPr8j3xOZStRL4nKe1ZWvnkfmLl gyzCWZnZdyaWF6eWkKibCejs7lVz9OBtWKatdBxHCI5X5SREvOvlK+6u9+C/ApAbRixr wsQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678871484; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KqAT/NLKaFKGe51SrvrQFdDnXu4QwFOmFGBit5A0404=; b=T7Norgiq6mbS+m5XRkVfGDSmy3JLMsSCKRynsuBOrzcC/JH7acqpzzlWob/UU2qh4c NVXn5d/JbDfUgaK7yyM5RJL3lw+LKv0VZOzPrdc4uM987ep3SLe3bz55QV3cjOraH4/n aRisOPvw1S3EGvdsC+gY+S9kpCjVFvsCAM9sTryCSa1PA4naGaQF39xRh62RsGt5VPMn rLFT9vYcDs2IObimDRwSiy42ui4pbxpeuzo+RuVcevnHaZJNBjGEUIoQgyH2ToLxq2kX m/uwK+PB422Rzvd2kw3R1tMlJ9gVY2k+fsGUnfa9Gu8VNsuCc5koGFo5wnxoUS6SCXSa s+5A== X-Gm-Message-State: AO0yUKWJahN/Oc5iuyTvME9ZwMKAYUnq+KxsNpWMmjsGXKRZl8+DIwxa O13BqmuFPHWQCMrVOdPBvd/Dgw3O8Ih1ql/znLM= X-Google-Smtp-Source: AK7set9tNNgMVSg0EDTlYP28qGfsiJVf3JJZIJMLs1+/khcQvtua8PIzgE93l7HxT5Obnpg8D2NQ2g== X-Received: by 2002:a17:90a:5e:b0:234:384f:79c with SMTP id 30-20020a17090a005e00b00234384f079cmr40384903pjb.33.1678871483997; Wed, 15 Mar 2023 02:11:23 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([49.206.8.117]) by smtp.gmail.com with ESMTPSA id lw11-20020a17090b180b00b00229b00cc8desm4353243pjb.0.2023.03.15.02.11.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 02:11:23 -0700 (PDT) From: "Sunil V L" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Jiewen Yao , Jordan Justen , Gerd Hoffmann Subject: [PATCH 1/1] OvmfPkg/PlatformCI: Add CI coverage for RiscVVirtQemu Date: Wed, 15 Mar 2023 14:41:19 +0530 Message-Id: <20230315091119.1263563-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add support for building RiscVVirtQemu platform in CI. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Jordan Justen Cc: Gerd Hoffmann Signed-off-by: Sunil V L --- .../.azurepipelines/Ubuntu-GCC5.yml | 9 +++++ OvmfPkg/PlatformCI/QemuBuild.py | 37 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 OvmfPkg/PlatformCI/QemuBuild.py diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml index 1cf9bdf8b9c2..ad43f9fad2fd 100644 --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml @@ -174,6 +174,15 @@ jobs: Run.Flags: "QEMU_SKIP=TRUE" Run: $(should_run) + QEMU_RISCV64_DEBUG: + Build.File: "$(package)/PlatformCI/QemuBuild.py" + Build.Arch: "RISCV64" + Build.Flags: "" + Build.Target: "DEBUG" + # this build is for RISC-V qemu virt not qemu-kvm + Run.Flags: "QEMU_SKIP=TRUE" + Run: $(should_run) + workspace: clean: all diff --git a/OvmfPkg/PlatformCI/QemuBuild.py b/OvmfPkg/PlatformCI/QemuBuild.py new file mode 100644 index 000000000000..c737d98d51b4 --- /dev/null +++ b/OvmfPkg/PlatformCI/QemuBuild.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 = ("OvmfPkg",) + ArchSupported = ("RISCV64",) + 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 "RiscVVirt/RiscVVirtQemu.dsc" + +import PlatformBuildLib +PlatformBuildLib.CommonPlatform = CommonPlatform -- 2.34.1