From nobody Sat May 18 10:08:01 2024 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+82702+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+82702+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1635264123; cv=none; d=zohomail.com; s=zohoarc; b=HeoW0tA6ZEGe2sWmna7m/N7std8BX9iF/dbVzpcDl55g3dQ7bAPEHxFm1RGvuWpcawEMSsJw1r3sUDwAbzSxYrKwLD9FpW1KRk1SsQ03NIz4t83CrHJR6YiQrULjTTpJkZjx7sDM16MBbMAOftIiv02mSKuoxtLkp6OH8M7UvYk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635264123; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=hbBA+7kwYS7D/nLGhHwcloKEQswcreClTzARQeSb5MQ=; b=T47sNMbkowLt37qJUOTTPro2FH2/bpWLJJii2MeKcPpOMzEio3EOMOLp6FEG7JOWI5+djinJMIE9ch79QoTE7ZapG1bBTtRxlCITLZ621YVvPOuEh6Gn9Xrc7e8FfM29rS7lEhboGGdV2BhndhptM/9DviLFWHDcgrwuVy1pb9g= 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+82702+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 1635264122905170.25018595158997; Tue, 26 Oct 2021 09:02:02 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id iY98YY1788612xuhpJCxciYW; Tue, 26 Oct 2021 09:02:01 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.14286.1635264121290287203 for ; Tue, 26 Oct 2021 09:02:01 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 78DFB1396; Tue, 26 Oct 2021 09:02:00 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.74.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 5CFD43F70D; Tue, 26 Oct 2021 09:01:58 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Ard Biesheuvel , Leif Lindholm , Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Sami Mujawar Subject: [edk2-devel] [PATCH edk2-platforms v4 1/6] edk2-platforms: add edk2 repository as a submodule Date: Tue, 26 Oct 2021 17:01:36 +0100 Message-Id: <20211026160141.17400-2-Pierre.Gondois@arm.com> In-Reply-To: <20211026160141.17400-1-Pierre.Gondois@arm.com> References: <20211026160141.17400-1-Pierre.Gondois@arm.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,pierre.gondois@arm.com X-Gm-Message-State: Ro0pNqbvjvHt8ekYctRhH1RYx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635264121; bh=1UTwqMIoYpdR/B3Rgz8hIp3EXzWFtvN53XUkMTvNWqo=; h=Date:From:Reply-To:Subject:To; b=t2FR5dYqXEqbKUuX3+aM6JuYrjiqOKqOxw3LrqCOAeZKz4fI+s+K4NhzTXV98scSc8i qmZmf+gSoD9mHiNxKMNzNFCv8FO/UiUNDCywgb8MrdEhrKbUVA3B+ay1Rj6yHseel+Auv I0k24tfmP9Y0fTiIc0BlJkQJuC8dM6PoEdA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635264135491100007 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois Add the edk2 repository as a submodule: https://github.com/tianocore/edk2 Platforms in edk2-platforms often relies on modules available in the edk2 repository. In order to enable an upstream CI for edk2-platforms, adding edk2 as a submodule is a convenient way to advertise this dependency. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3509 Change-Id: I215789d26e0e835a7350aa9b82798b926816231d Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Cc: Sami Mujawar Signed-off-by: Sami Mujawar Signed-off-by: Pierre Gondois --- Notes: v2: - Use tianocore repository instead of personal repository [Pierre] .gitmodules | 3 +++ edk2 | 1 + 2 files changed, 4 insertions(+) create mode 160000 edk2 diff --git a/.gitmodules b/.gitmodules index 88aafaf15820..ed4b2d436cdb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi"] path =3D Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi url =3D https://github.com/riscv/opensbi +[submodule "edk2"] + path =3D edk2 + url =3D https://github.com/tianocore/edk2/ diff --git a/edk2 b/edk2 new file mode 160000 index 000000000000..2f6f3329add3 --- /dev/null +++ b/edk2 @@ -0,0 +1 @@ +Subproject commit 2f6f3329add328103cb0654b71d7b814dc0c9759 --=20 2.17.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 (#82702): https://edk2.groups.io/g/devel/message/82702 Mute This Topic: https://groups.io/mt/86606562/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- From nobody Sat May 18 10:08:01 2024 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+82703+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+82703+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1635264124; cv=none; d=zohomail.com; s=zohoarc; b=Ax4XD0Lm0XQd0rqRYfXV48dlpwi//0Ue05efNLgfmJ2nw3b3X+uXZkhp/tu4F/j68NHHcw2wk682X4OWhx4b+ucKixv1OBexvFPJjaGuXWYMcwgprwhnLVcDLB05NT3FO/NWBhcBDLdtk2RQg4n2RvWPoa6g852m+tv2TvkyD+Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635264124; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=ro7XIoI21WZ7YQVM5viGKTP2C6FxPSud307zmQ0Kgv8=; b=Yfe6hBrpQSBbHRLMikkmDYSUuRlOsm51KQrWsU/9u9sBjZbshCWsWXXw0wb1/OledautYD9hebYpaFl/XX1KSLPcCEiDfENnDx2xAvp6hXMLPY70PrYRE1lZ/czPOEEyaVqKYf+45pOVcZabFpW4UUrbWdaAqhUY1kINb+/VXyY= 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+82703+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 1635264124481498.9435243468039; Tue, 26 Oct 2021 09:02:04 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id erh0YY1788612xwoUSG4U8j4; Tue, 26 Oct 2021 09:02:04 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.14291.1635264123283391941 for ; Tue, 26 Oct 2021 09:02:03 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DC2EA13A1; Tue, 26 Oct 2021 09:02:02 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.74.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CC81F3F70D; Tue, 26 Oct 2021 09:02:00 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Ard Biesheuvel , Leif Lindholm , Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Sami Mujawar Subject: [edk2-devel] [PATCH edk2-platforms v4 2/6] pip-requirements.txt: Add python pip requirements file Date: Tue, 26 Oct 2021 17:01:37 +0100 Message-Id: <20211026160141.17400-3-Pierre.Gondois@arm.com> In-Reply-To: <20211026160141.17400-1-Pierre.Gondois@arm.com> References: <20211026160141.17400-1-Pierre.Gondois@arm.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,pierre.gondois@arm.com X-Gm-Message-State: AoGySNuEm9mGvzanpM1Xsb8ex1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635264124; bh=2jpsSR4mTrhvHLZ7XrnK0vw8ZYsmFvWUK3bDa+W5OZo=; h=Date:From:Reply-To:Subject:To; b=DH/Hj8FicXe+xm54cdgrlGsrWsGt/mJ42BBwQytzLqi1zMseMOL7Hs9WoZK46U6IAnq CLI1N65tOkZRPHrbowO7Gqk5XJnfvp7TTWv/DGFw3kNugqN0pT//nId9elhZIR1yxE0Pu x8ZI15jAJjMhPys7Lz5WtlMO8c9qqUw2y5Y= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635264135704100008 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois To enable CI support of the tianocore/edk2-platforms repository, add pip requirements file to install the python modules required to perform EDK II Continuous Integration (CI) builds. This file is a copy of the file from the tianocore/edk2 repository. Any modification to the tianocore/edk2 file must be reflected on the tianocore/edk2-platforms copy. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3509 Change-Id: I9faedab8b4c380089d8f8f351b8ee21bf6e82d98 Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Cc: Sami Mujawar Signed-off-by: Sami Mujawar Signed-off-by: Pierre Gondois --- pip-requirements.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pip-requirements.txt diff --git a/pip-requirements.txt b/pip-requirements.txt new file mode 100644 index 000000000000..aea2e6ece431 --- /dev/null +++ b/pip-requirements.txt @@ -0,0 +1,18 @@ +## @file +# EDK II Python PIP requirements file +# +# This file provides the list of python components to install using PIP. +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# https://pypi.org/project/pip/ +# https://pip.pypa.io/en/stable/user_guide/#requirements-files +# https://pip.pypa.io/en/stable/reference/pip_install/#requirements-file-f= ormat +# https://www.python.org/dev/peps/pep-0440/#version-specifiers +## + +edk2-pytool-library=3D=3D0.10.* +edk2-pytool-extensions~=3D0.13.3 +edk2-basetools=3D=3D0.1.2 +antlr4-python3-runtime=3D=3D4.7.1 --=20 2.17.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 (#82703): https://edk2.groups.io/g/devel/message/82703 Mute This Topic: https://groups.io/mt/86606564/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- From nobody Sat May 18 10:08:01 2024 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+82704+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+82704+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1635264128; cv=none; d=zohomail.com; s=zohoarc; b=CU1rbyKPIGgIPTPRQvwdl7DeOyw70JbgSkb2fkHGfSTkY6bZRcAcfZLz9emD2nOmQDsrsvR1DX1rc3yisw3PtdXZnu95m7ctLU7yR88aPfsTDwViOfVjZhUfdxXCW6UoMu8yKoqiF7VeGBN3Dz76f19pLnnpC2jgqIAbfIqgirU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635264128; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=MbsKvbECPjSyV1CXgUm5oLTa+fv8Tycio4aH7deT8Ow=; b=he2SyPIgXyaYoK//h/ir2Prm2oNHb8KqvOST+yjXEK90B4YrdGiPzPUQMiy4QHGYOfYg51UEHS1egKwPmitjpFtm6GEa+/VhzYN5GHuUXz/HTvf6d3+zXxC+QUmsZHBYt+lbdz/dGWT/9uwuZmBS/KLbOPZRNjHDpgLf2RRpCVc= 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+82704+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 1635264128279621.0965245560786; Tue, 26 Oct 2021 09:02:08 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id IqgVYY1788612xkTSgvkC3yo; Tue, 26 Oct 2021 09:02:06 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web09.14194.1635264125715517806 for ; Tue, 26 Oct 2021 09:02:05 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5829113D5; Tue, 26 Oct 2021 09:02:05 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.74.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 481153F70D; Tue, 26 Oct 2021 09:02:03 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Ard Biesheuvel , Leif Lindholm , Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Sami Mujawar Subject: [edk2-devel] [PATCH edk2-platforms v4 3/6] .pytool/Plugin: Add CI plugins Date: Tue, 26 Oct 2021 17:01:38 +0100 Message-Id: <20211026160141.17400-4-Pierre.Gondois@arm.com> In-Reply-To: <20211026160141.17400-1-Pierre.Gondois@arm.com> References: <20211026160141.17400-1-Pierre.Gondois@arm.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,pierre.gondois@arm.com X-Gm-Message-State: HjmbRl5wTqvMXo0O9t6uOtkkx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635264126; bh=wmTdwFqKmU1qOLPoNUaVkjibC0m/jSvQBaZbAU+e+jw=; h=Date:From:Reply-To:Subject:To; b=ihY94Q4cou1OXZdEZs1ReOzhmcYPQSzZCj9ympteCHsnuIoADNIx1w21kkq+domZYhx SykGoIiZp8ps//dIAVsTz5rp9I6YVb3haiS7xVU6xKayihE8Bjh8gOEzoj9Z2qns0a9AM 9WE1GA1FViDEExQGehacuWu2IHf2scXHluU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635264139433100015 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois To enable CI support of the tianocore/edk2-platforms repository, add a .pytool directory containing the following files: - .pytool/CISettings.py - .pytool/Readme.md These files are largely inspired from the same files available in the edk2 repository. The .pytool/Plugin/* files containing the CI tests to run are not copied. edk2-platforms will rely on the edk2basetools python package and on the edk2 python files, as edk2 is imported as a submodule of edk2-platforms. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3509 Change-Id: Ib6cf074a6eda79b522dbd55fca99c2402a5dc13c Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Cc: Sami Mujawar Signed-off-by: Sami Mujawar Signed-off-by: Pierre Gondois --- Notes: v3: - Remove edk2-platforms's path from $PACKAGES_PATH. [Sean] - Replace Readme's content with a reference to the edk2 repository. [Sean] .pytool/CISettings.py | 184 ++++++++++++++++++++++++++++++++++++++++++ .pytool/Readme.md | 16 ++++ 2 files changed, 200 insertions(+) create mode 100644 .pytool/CISettings.py create mode 100644 .pytool/Readme.md diff --git a/.pytool/CISettings.py b/.pytool/CISettings.py new file mode 100644 index 000000000000..551ec3954058 --- /dev/null +++ b/.pytool/CISettings.py @@ -0,0 +1,184 @@ +# @file +# +# Copyright (c) Microsoft Corporation. +# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All right= s reserved.
+# Copyright (c) 2020 - 2021, ARM Limited. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +## +import os +import logging +import edk2basetools + +from edk2toolext.environment import shell_environment +from edk2toolext.invocables.edk2_ci_build import CiBuildSettingsManager +from edk2toolext.invocables.edk2_setup import SetupSettingsManager, Requir= edSubmodule +from edk2toolext.invocables.edk2_update import UpdateSettingsManager +from edk2toolext.invocables.edk2_pr_eval import PrEvalSettingsManager +from edk2toollib.utility_functions import GetHostInfo + + +class Settings(CiBuildSettingsManager, UpdateSettingsManager, SetupSetting= sManager, PrEvalSettingsManager): + + def __init__(self): + self.ActualPackages =3D [] + self.ActualTargets =3D [] + self.ActualArchitectures =3D [] + self.ActualToolChainTag =3D "" + self.ActualScopes =3D None + + # ####################################################################= ################### # + # Extra CmdLine configuration = # + # ####################################################################= ################### # + + def AddCommandLineOptions(self, parserObj): + pass + def RetrieveCommandLineOptions(self, args): + pass + + # ####################################################################= ################### # + # Default Support for this Ci Build = # + # ####################################################################= ################### # + + def GetPackagesSupported(self): + ''' return iterable of edk2 packages supported by this build. + These should be edk2 workspace relative paths ''' + return ( + "JunoPkg", + "VExpressPkg" + ) + + def GetArchitecturesSupported(self): + ''' return iterable of edk2 architectures supported by this build = ''' + return ( + "IA32", + "X64", + "ARM", + "AARCH64", + "RISCV64") + + def GetTargetsSupported(self): + ''' return iterable of edk2 target tags supported by this build ''' + return ("DEBUG", "RELEASE", "NO-TARGET", "NOOPT") + + # ####################################################################= ################### # + # Verify and Save requested Ci Build Config = # + # ####################################################################= ################### # + + def SetPackages(self, list_of_requested_packages): + ''' Confirm the requested package list is valid and configure Sett= ingsManager + to build the requested packages. + + Raise UnsupportedException if a requested_package is not supported + ''' + unsupported =3D set(list_of_requested_packages) - \ + set(self.GetPackagesSupported()) + if(len(unsupported) > 0): + logging.critical( + "Unsupported Package Requested: " + " ".join(unsupported)) + raise Exception("Unsupported Package Requested: " + + " ".join(unsupported)) + self.ActualPackages =3D list_of_requested_packages + + def SetArchitectures(self, list_of_requested_architectures): + ''' Confirm the requests architecture list is valid and configure = SettingsManager + to run only the requested architectures. + + Raise Exception if a list_of_requested_architectures is not suppor= ted + ''' + unsupported =3D set(list_of_requested_architectures) - \ + set(self.GetArchitecturesSupported()) + if(len(unsupported) > 0): + logging.critical( + "Unsupported Architecture Requested: " + " ".join(unsuppor= ted)) + raise Exception( + "Unsupported Architecture Requested: " + " ".join(unsuppor= ted)) + self.ActualArchitectures =3D list_of_requested_architectures + + def SetTargets(self, list_of_requested_target): + ''' Confirm the request target list is valid and configure Setting= sManager + to run only the requested targets. + + Raise UnsupportedException if a requested_target is not supported + ''' + unsupported =3D set(list_of_requested_target) - \ + set(self.GetTargetsSupported()) + if(len(unsupported) > 0): + logging.critical( + "Unsupported Targets Requested: " + " ".join(unsupported)) + raise Exception("Unsupported Targets Requested: " + + " ".join(unsupported)) + self.ActualTargets =3D list_of_requested_target + + # ####################################################################= ################### # + # Actual Configuration for Ci Build = # + # ####################################################################= ################### # + + def GetActiveScopes(self): + ''' return tuple containing scopes that should be active for this = process ''' + if self.ActualScopes is None: + scopes =3D ("cibuild", "edk2-build", "host-based-test") + + self.ActualToolChainTag =3D shell_environment.GetBuildVars().G= etValue("TOOL_CHAIN_TAG", "") + + is_linux =3D GetHostInfo().os.upper() =3D=3D "LINUX" + scopes +=3D ('pipbuild-unix',) if is_linux else ('pipbuild-win= ',) + + if is_linux and self.ActualToolChainTag.upper().startswith("GC= C"): + if "AARCH64" in self.ActualArchitectures: + scopes +=3D ("gcc_aarch64_linux",) + if "ARM" in self.ActualArchitectures: + scopes +=3D ("gcc_arm_linux",) + if "RISCV64" in self.ActualArchitectures: + scopes +=3D ("gcc_riscv64_unknown",) + self.ActualScopes =3D scopes + return self.ActualScopes + + def GetRequiredSubmodules(self): + ''' return iterable containing RequiredSubmodule objects. + If no RequiredSubmodules return an empty iterable + ''' + rs =3D [] + rs.append(RequiredSubmodule( + "edk2", True)) + rs.append(RequiredSubmodule( + "Silicon/RISC-V/ProcessorPkg/Library/RiscVOpensbiLib/opensbi",= False)) + return rs + + def GetName(self): + return "Edk2-platforms" + + def GetDependencies(self): + return [ + ] + + def GetPackagesPath(self): + ''' Return a list of workspace relative paths that should be mappe= d as edk2 PackagesPath ''' + edk2_platforms_path =3D self.GetWorkspaceRoot() + return [ + os.path.join(edk2_platforms_path, "Platform", "ARM"), + os.path.join(edk2_platforms_path, "edk2") + ] + + def GetWorkspaceRoot(self): + ''' get WorkspacePath ''' + return os.path.dirname(os.path.dirname(os.path.abspath(__file__))) + + def FilterPackagesToTest(self, changedFilesList: list, potentialPackag= esList: list) -> list: + ''' Filter potential packages to test based on changed files. ''' + build_these_packages =3D [] + possible_packages =3D potentialPackagesList.copy() + for f in changedFilesList: + # split each part of path for comparison later + nodes =3D f.split("/") + + # python file change in .pytool folder causes building all + if f.endswith(".py") and ".pytool" in nodes: + build_these_packages =3D possible_packages + break + + # BaseTools files that might change the build + if "BaseTools" in nodes: + if os.path.splitext(f) not in [".txt", ".md"]: + build_these_packages =3D possible_packages + break + return build_these_packages diff --git a/.pytool/Readme.md b/.pytool/Readme.md new file mode 100644 index 000000000000..9e59b30043fc --- /dev/null +++ b/.pytool/Readme.md @@ -0,0 +1,16 @@ +# Edk2-platforms Continuous Integration + +## Basic Status + +| Package | Windows VS2019 (IA32/X64)| Ubuntu GCC (IA= 32/X64/ARM/AARCH64) | Known Issues | +| :---- | :----- | :---- = | :--- | +| Platfrom/ARM/JunoPkg | | :heavy_check_m= ark: | Spell checking in audit mode. CompilerCheck disabled = (need a PlatformCI). + +For more detailed status look at the test results of the latest CI run on = the +repo readme. + +## Readme + +As the content of the .pytool folder has been imported from the tianocore = repository at: +https://github.com/tianocore/edk2 +Please use the Readme.md that can be found there. --=20 2.17.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 (#82704): https://edk2.groups.io/g/devel/message/82704 Mute This Topic: https://groups.io/mt/86606567/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- From nobody Sat May 18 10:08:01 2024 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+82705+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+82705+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1635264129; cv=none; d=zohomail.com; s=zohoarc; b=jgIrD4zxl9Yk1kaFDWNRpR98Thg31fbUY4juqMHHNbogG1e1i3uU1SYid8fwR+CO8xY+J3vIAHPhkfD56c5LZB1iWQz/zBnHJDsU7xmmXszR33zDOx49y6MX3LRfa7xmRzwf440K25/Z1/eIQgy8b5LTHDsRz+nT0chFZ7hynk0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635264129; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=TDgFHN0PnM27p5IpyPbC/r6saRsjw22C+nGwqzoyKZw=; b=fnIlWwQH3C7TsPu2WQFgNLcpMo04etYh6hgU+4i0OUhOqJ1bRb7LLRK1vANzlBIeWLtfidUpSc9uKa1u+3QrTl063uBpBGbmfoRz2FyuBBLopQiG5rTagYSYXvKQ1IX7DwWbJ/tE8zHokLWK9vUq7w2Ph4S5ILXH+PxIvMFsxsE= 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+82705+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 1635264129520139.9347859303807; Tue, 26 Oct 2021 09:02:09 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id oND1YY1788612xUcjotUpmke; Tue, 26 Oct 2021 09:02:09 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web08.14398.1635264128473697252 for ; Tue, 26 Oct 2021 09:02:08 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 288D01FB; Tue, 26 Oct 2021 09:02:08 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.74.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id B7C0A3F70D; Tue, 26 Oct 2021 09:02:05 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Ard Biesheuvel , Leif Lindholm , Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Sami Mujawar Subject: [edk2-devel] [PATCH edk2-platforms v4 4/6] .azurepipelines: Add Azure Pipelines YML configuration files Date: Tue, 26 Oct 2021 17:01:39 +0100 Message-Id: <20211026160141.17400-5-Pierre.Gondois@arm.com> In-Reply-To: <20211026160141.17400-1-Pierre.Gondois@arm.com> References: <20211026160141.17400-1-Pierre.Gondois@arm.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,pierre.gondois@arm.com X-Gm-Message-State: DvlxxCE3M2rZ6Pq10qzId0Otx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635264129; bh=x3IaIWib1CHjGnsvNX2aUQAhCcEmd3zk7Hqugt8r1jA=; h=Date:From:Reply-To:Subject:To; b=XcLcp84jlQNNFd0tLNokD7anCjiHBcJpqD1cQW/WkxRiWcrHwBehO8mFnS4lobrkddM ht6nh0efSWAFLxVPIJXzkVzw+ocHB75c9O50oGzD4wYfeni+z12LR6GDe5kWQW9O3kydc ML2OvOTDhaf/1dlFBvfVHl4Gi7JLCB44vJg= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635264139916100018 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois To enable CI support of the tianocore/edk2-platforms repository, add YML configuration files used to run Continuous Integration (CI) checks on Azure Pipelines agents. These files are copies of the files from the tianocore/edk2 repository. Any modification to the tianocore/edk2 files must be reflected on the tianocore/edk2-platforms copies. The following files have been modified: - .azurepipelines/templates/platform-build-run-steps.yml - .azurepipelines/templates/pr-gate-build-job.yml - .azurepipelines/templates/pr-gate-steps.yml The sections modified are marked with the following comments: -EDK2_PLATFORMS_MODIF_START -EDK2_PLATFORMS_MODIF_END Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3509 Change-Id: I79cc9f5358fe57ad36dedf23054c7bb0bc0246a6 Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Cc: Sami Mujawar Signed-off-by: Sami Mujawar Signed-off-by: Pierre Gondois --- Notes: v3: - Align with the latest version in the edk2 repository. [Sean] - Replace Readme(s)'s content with a reference to the edk2 repository. [Sean] - Add step to checkout edk2's latest master in the CI. [Pierre] v4: - Checkout edk2 repository in Ubuntu-PatchCheck.yml to get the PatchCheck.py script. [Pierre] .azurepipelines/ReadMe.md | 5 + .azurepipelines/Ubuntu-GCC5.yml | 21 +++ .azurepipelines/Ubuntu-PatchCheck.yml | 45 ++++++ .azurepipelines/Windows-VS2019.yml | 20 +++ .azurepipelines/templates/ReadMe.md | 5 + .../templates/basetools-build-steps.yml | 37 +++++ .../templates/platform-build-run-steps.yml | 151 ++++++++++++++++++ .../templates/pr-gate-build-job.yml | 43 +++++ .azurepipelines/templates/pr-gate-steps.yml | 149 +++++++++++++++++ .../templates/spell-check-prereq-steps.yml | 22 +++ .pytool/Readme.md | 9 ++ 11 files changed, 507 insertions(+) create mode 100644 .azurepipelines/ReadMe.md create mode 100644 .azurepipelines/Ubuntu-GCC5.yml create mode 100644 .azurepipelines/Ubuntu-PatchCheck.yml create mode 100644 .azurepipelines/Windows-VS2019.yml create mode 100644 .azurepipelines/templates/ReadMe.md create mode 100644 .azurepipelines/templates/basetools-build-steps.yml create mode 100644 .azurepipelines/templates/platform-build-run-steps.yml create mode 100644 .azurepipelines/templates/pr-gate-build-job.yml create mode 100644 .azurepipelines/templates/pr-gate-steps.yml create mode 100644 .azurepipelines/templates/spell-check-prereq-steps.yml diff --git a/.azurepipelines/ReadMe.md b/.azurepipelines/ReadMe.md new file mode 100644 index 000000000000..de69a4ca220d --- /dev/null +++ b/.azurepipelines/ReadMe.md @@ -0,0 +1,5 @@ +EDK2_PLATFORMS_MODIF_START +As the content of this folder has been imported from the tianocore reposit= ory at: +https://github.com/tianocore/edk2 +Please use the Readme.md that can be found there. +EDK2_PLATFORMS_MODIF_END diff --git a/.azurepipelines/Ubuntu-GCC5.yml b/.azurepipelines/Ubuntu-GCC5.= yml new file mode 100644 index 000000000000..3760c6efe105 --- /dev/null +++ b/.azurepipelines/Ubuntu-GCC5.yml @@ -0,0 +1,21 @@ +## @file +# Azure Pipeline build file for a build using ubuntu and GCC5 +# +# Copyright (c) Microsoft Corporation. +# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All right= s reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +## +trigger: +- master +- stable/* +pr: +- master +- stable/* + +jobs: +- template: templates/pr-gate-build-job.yml + parameters: + tool_chain_tag: 'GCC5' + vm_image: 'ubuntu-latest' + arch_list: "IA32,X64,ARM,AARCH64,RISCV64" + diff --git a/.azurepipelines/Ubuntu-PatchCheck.yml b/.azurepipelines/Ubuntu= -PatchCheck.yml new file mode 100644 index 000000000000..7b565a25559c --- /dev/null +++ b/.azurepipelines/Ubuntu-PatchCheck.yml @@ -0,0 +1,45 @@ +## @file +# Azure Pipielines YML file that evalues the patch series in a PR using the +# python script BaseTools/Scripts/PatchCheck.py. +# +# NOTE: This example monitors pull requests against the edk2-ci branch. M= ost +# environments would replace 'edk2-ci' with 'master'. +# +# Copyright (c) 2021, Arm Limited. All rights reserved.
+# Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# https://github.com/tianocore +# +## + +trigger: none + +pr: +- master +- stable/* + +pool: + vmImage: 'ubuntu-latest' + +steps: +- checkout: self + clean: true + +# EDK2_PLATFORMS_MODIF_START: + # As PatchCheck.py is in the edk2 repository, checkout the repo. +- script: git submodule update --init --remote --checkout edk2 + displayName: Checkout edk2's latest master +# EDK2_PLATFORMS_MODIF_END + +- task: UsePythonVersion@0 + inputs: + versionSpec: '3.7.x' + architecture: 'x64' + +# EDK2_PLATFORMS_MODIF_START: +- script: | + git fetch origin $(System.PullRequest.TargetBranch):$(System.PullReque= st.TargetBranch) + python edk2/BaseTools/Scripts/PatchCheck.py $(System.PullRequest.Targe= tBranch)..$(System.PullRequest.SourceCommitId) + displayName: 'Use PatchCheck.py to verify patch series in pull request' +# EDK2_PLATFORMS_MODIF_END diff --git a/.azurepipelines/Windows-VS2019.yml b/.azurepipelines/Windows-V= S2019.yml new file mode 100644 index 000000000000..22f2d88c2c6a --- /dev/null +++ b/.azurepipelines/Windows-VS2019.yml @@ -0,0 +1,20 @@ +## @file +# Azure Pipeline build file for a build using Windows and VS2019 +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +trigger: +- master +- stable/* + +pr: +- master +- stable/* + +jobs: +- template: templates/pr-gate-build-job.yml + parameters: + tool_chain_tag: 'VS2019' + vm_image: 'windows-latest' + arch_list: "IA32,X64" diff --git a/.azurepipelines/templates/ReadMe.md b/.azurepipelines/template= s/ReadMe.md new file mode 100644 index 000000000000..de69a4ca220d --- /dev/null +++ b/.azurepipelines/templates/ReadMe.md @@ -0,0 +1,5 @@ +EDK2_PLATFORMS_MODIF_START +As the content of this folder has been imported from the tianocore reposit= ory at: +https://github.com/tianocore/edk2 +Please use the Readme.md that can be found there. +EDK2_PLATFORMS_MODIF_END diff --git a/.azurepipelines/templates/basetools-build-steps.yml b/.azurepi= pelines/templates/basetools-build-steps.yml new file mode 100644 index 000000000000..d8c108c6e212 --- /dev/null +++ b/.azurepipelines/templates/basetools-build-steps.yml @@ -0,0 +1,37 @@ +## @file +# File templates/basetools-build-job.yml +# +# template file to build basetools +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## +parameters: + tool_chain_tag: '' + +steps: +- ${{ if contains(parameters.tool_chain_tag, 'GCC') }}: + - bash: sudo apt-get update + displayName: Update apt + condition: and(gt(variables.pkg_count, 0), succeeded()) + + - bash: sudo apt-get install gcc g++ make uuid-dev + displayName: Install required tools + condition: and(gt(variables.pkg_count, 0), succeeded()) + +- task: CmdLine@1 + displayName: Build Base Tools from source + inputs: + filename: python + arguments: BaseTools/Edk2ToolsBuild.py -t ${{ parameters.tool_chain_ta= g }} + condition: and(gt(variables.pkg_count, 0), succeeded()) + +- task: CopyFiles@2 + displayName: "Copy base tools build log" + inputs: + targetFolder: '$(Build.ArtifactStagingDirectory)' + SourceFolder: 'BaseTools/BaseToolsBuild' + contents: | + BASETOOLS_BUILD*.* + flattenFolders: true + condition: and(gt(variables.pkg_count, 0), succeededOrFailed()) diff --git a/.azurepipelines/templates/platform-build-run-steps.yml b/.azur= epipelines/templates/platform-build-run-steps.yml new file mode 100644 index 000000000000..960a11ced5ee --- /dev/null +++ b/.azurepipelines/templates/platform-build-run-steps.yml @@ -0,0 +1,151 @@ + +## @file +# File steps.yml +# +# template file containing the steps to build +# +# Copyright (c) 2021, Arm Limited. All rights reserved.
+# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +parameters: +- name: tool_chain_tag + type: string + default: '' +- name: build_pkg + type: string + default: '' +- name: build_target + type: string + default: '' +- name: build_arch + type: string + default: '' +- name: build_file + type: string + default: '' +- name: build_flags + type: string + default: '' +- name: run_flags + type: string + default: '' + +- name: extra_install_step + type: stepList + default: [] + +steps: +- checkout: self + clean: true + fetchDepth: 1 + +- task: UsePythonVersion@0 + inputs: + versionSpec: "3.8.x" + architecture: "x64" + +- script: pip install -r pip-requirements.txt --upgrade + displayName: 'Install/Upgrade pip modules' + +# Set default +- bash: echo "##vso[task.setvariable variable=3Dpkg_count]${{ 1 }}" + +# Fetch the target branch so that pr_eval can diff them. +# Seems like azure pipelines/github changed checkout process in nov 2020. +- script: git fetch origin $(System.PullRequest.targetBranch) + displayName: fetch target branch + condition: eq(variables['Build.Reason'], 'PullRequest') + +# trim the package list if this is a PR +- task: CmdLine@1 + displayName: Check if ${{ parameters.build_pkg }} need testing + inputs: + filename: stuart_pr_eval + arguments: -c ${{ parameters.build_file }} -t ${{ parameters.build_tar= get}} -a ${{ parameters.build_arch}} --pr-target origin/$(System.PullReques= t.targetBranch) --output-count-format-string "##vso[task.setvariable variab= le=3Dpkg_count;isOutpout=3Dtrue]{pkgcount}" + condition: eq(variables['Build.Reason'], 'PullRequest') + + # Setup repo +- task: CmdLine@1 + displayName: Setup + inputs: + filename: stuart_setup + arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=3D${{ parame= ters.tool_chain_tag}} -t ${{ parameters.build_target}} -a ${{ parameters.bu= ild_arch}} ${{ parameters.build_flags}} + condition: and(gt(variables.pkg_count, 0), succeeded()) + +# EDK2_PLATFORMS_MODIF_START: + # As edk2-platforms may rely on new edk2 modifications, checkout edk2's l= atest master +- script: git submodule update --remote --checkout edk2 + displayName: Checkout edk2's latest master + condition: and(gt(variables.pkg_count, 0), succeeded()) +# EDK2_PLATFORMS_MODIF_END + +# Stuart Update +- task: CmdLine@1 + displayName: Update + inputs: + filename: stuart_update + arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=3D${{ parame= ters.tool_chain_tag}} -t ${{ parameters.build_target}} -a ${{ parameters.bu= ild_arch}} ${{ parameters.build_flags}} + condition: and(gt(variables.pkg_count, 0), succeeded()) + +# EDK2_PLATFORMS_MODIF_START: +# The base tools are imported in .pytool/CISettings.py via the 'edk2baseto= ols' python module. +# # build basetools +# # do this after setup and update so that code base dependencies +# # are all resolved. +# - template: basetools-build-steps.yml +# parameters: +# tool_chain_tag: ${{ parameters.tool_chain_tag }} +# EDK2_PLATFORMS_MODIF_END + +# Potential Extra steps +- ${{ parameters.extra_install_step }} + +# Build +- task: CmdLine@1 + displayName: Build + inputs: + filename: stuart_build + arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=3D${{ parame= ters.tool_chain_tag}} TARGET=3D${{ parameters.build_target}} -a ${{ paramet= ers.build_arch}} ${{ parameters.build_flags}} + condition: and(gt(variables.pkg_count, 0), succeeded()) + +# Run +- task: CmdLine@1 + displayName: Run to shell + inputs: + filename: stuart_build + arguments: -c ${{ parameters.build_file }} TOOL_CHAIN_TAG=3D${{ parame= ters.tool_chain_tag}} TARGET=3D${{ parameters.build_target}} -a ${{ paramet= ers.build_arch}} ${{ parameters.build_flags}} ${{ parameters.run_flags }} -= -FlashOnly + condition: and(and(gt(variables.pkg_count, 0), succeeded()), eq(variable= s['Run'], true)) + timeoutInMinutes: 1 + +# Copy the build logs to the artifact staging directory +- task: CopyFiles@2 + displayName: "Copy build logs" + inputs: + targetFolder: "$(Build.ArtifactStagingDirectory)" + SourceFolder: "Build" + contents: | + BUILDLOG_*.txt + BUILDLOG_*.md + CI_*.txt + CI_*.md + CISETUP.txt + SETUPLOG.txt + UPDATE_LOG.txt + PREVALLOG.txt + TestSuites.xml + **/BUILD_TOOLS_REPORT.html + **/OVERRIDELOG.TXT + BASETOOLS_BUILD*.* + flattenFolders: true + condition: succeededOrFailed() + +# Publish build artifacts to Azure Artifacts/TFS or a file share +- task: PublishBuildArtifacts@1 + continueOnError: true + displayName: "Publish build logs" + inputs: + pathtoPublish: "$(Build.ArtifactStagingDirectory)" + artifactName: "Build Logs $(System.JobName)" + condition: succeededOrFailed() diff --git a/.azurepipelines/templates/pr-gate-build-job.yml b/.azurepipeli= nes/templates/pr-gate-build-job.yml new file mode 100644 index 000000000000..9bb8e2819793 --- /dev/null +++ b/.azurepipelines/templates/pr-gate-build-job.yml @@ -0,0 +1,43 @@ +## @file +# File templates/pr-gate-build-job.yml +# +# template file used to build supported packages. +# +# Copyright (c) Microsoft Corporation. +# Copyright (c) 2020 - 2021, ARM Limited. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +parameters: + tool_chain_tag: '' + vm_image: '' + arch_list: '' + +# Build step +jobs: + +- job: Build_${{ parameters.tool_chain_tag }} + +# EDK2_PLATFORMS_MODIF_START: +# Build edk2-platforms packages + #Use matrix to speed up the build process + strategy: + matrix: + TARGET_ARM_PLATFORMS: + Build.Pkgs: 'JunoPkg' + Build.Targets: 'DEBUG,RELEASE,NO-TARGET,NOOPT' +# EDK2_PLATFORMS_MODIF_END + + workspace: + clean: all + + pool: + vmImage: ${{ parameters.vm_image }} + + steps: + - template: pr-gate-steps.yml + parameters: + tool_chain_tag: ${{ parameters.tool_chain_tag }} + build_pkgs: $(Build.Pkgs) + build_targets: $(Build.Targets) + build_archs: ${{ parameters.arch_list }} diff --git a/.azurepipelines/templates/pr-gate-steps.yml b/.azurepipelines/= templates/pr-gate-steps.yml new file mode 100644 index 000000000000..1936d5a10780 --- /dev/null +++ b/.azurepipelines/templates/pr-gate-steps.yml @@ -0,0 +1,149 @@ +## @file +# File templates/pr-gate-steps.yml +# +# template file containing the steps to build +# +# Copyright (c) 2021, Arm Limited. All rights reserved.
+# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +parameters: + tool_chain_tag: '' + build_pkgs: '' + build_targets: '' + build_archs: '' + +steps: +- checkout: self + clean: true + fetchDepth: 1 + +- task: UsePythonVersion@0 + inputs: + versionSpec: '3.8.x' + architecture: 'x64' + +- script: pip install -r pip-requirements.txt --upgrade + displayName: 'Install/Upgrade pip modules' + +# Set default +- bash: | + echo "##vso[task.setvariable variable=3Dpkgs_to_build]${{ parameters.b= uild_pkgs }}" + echo "##vso[task.setvariable variable=3Dpkg_count]${{ 1 }}" + +# Fetch the target branch so that pr_eval can diff them. +# Seems like azure pipelines/github changed checkout process in nov 2020. +- script: git fetch origin $(System.PullRequest.targetBranch) + displayName: fetch target branch + condition: eq(variables['Build.Reason'], 'PullRequest') + +# trim the package list if this is a PR +- task: CmdLine@1 + displayName: Check if ${{ parameters.build_pkgs }} need testing + inputs: + filename: stuart_pr_eval + arguments: -c .pytool/CISettings.py -p ${{ parameters.build_pkgs }} --= pr-target origin/$(System.PullRequest.targetBranch) --output-csv-format-str= ing "##vso[task.setvariable variable=3Dpkgs_to_build;isOutpout=3Dtrue]{pkgc= sv}" --output-count-format-string "##vso[task.setvariable variable=3Dpkg_co= unt;isOutpout=3Dtrue]{pkgcount}" + condition: eq(variables['Build.Reason'], 'PullRequest') + +# install spell check prereqs +- template: spell-check-prereq-steps.yml + +# Build repo +- task: CmdLine@1 + displayName: Setup ${{ parameters.build_pkgs }} ${{ parameters.build_arc= hs}} + inputs: + filename: stuart_setup + arguments: -c .pytool/CISettings.py -p $(pkgs_to_build) -t ${{ paramet= ers.build_targets}} -a ${{ parameters.build_archs}} TOOL_CHAIN_TAG=3D${{ pa= rameters.tool_chain_tag}} + condition: and(gt(variables.pkg_count, 0), succeeded()) + +# EDK2_PLATFORMS_MODIF_START: + # As edk2-platforms may rely on new edk2 modifications, checkout edk2's l= atest master +- script: git submodule update --remote --checkout edk2 + displayName: Checkout edk2's latest master + condition: and(gt(variables.pkg_count, 0), succeeded()) +# EDK2_PLATFORMS_MODIF_END + +- task: CmdLine@1 + displayName: Update ${{ parameters.build_pkgs }} ${{ parameters.build_ar= chs}} + inputs: + filename: stuart_update + arguments: -c .pytool/CISettings.py -p $(pkgs_to_build) -t ${{ paramet= ers.build_targets}} -a ${{ parameters.build_archs}} TOOL_CHAIN_TAG=3D${{ pa= rameters.tool_chain_tag}} + condition: and(gt(variables.pkg_count, 0), succeeded()) + +# build basetools +# do this after setup and update so that code base dependencies +# are all resolved. +# EDK2_PLATFORMS_MODIF_START: +# The base tools are imported in .pytool/CISettings.py via the 'edk2baseto= ols' python module. +# - template: basetools-build-steps.yml +# parameters: +# tool_chain_tag: ${{ parameters.tool_chain_tag }} +# EDK2_PLATFORMS_MODIF_END + +- task: CmdLine@1 + displayName: Build and Test ${{ parameters.build_pkgs }} ${{ parameters.= build_archs}} + inputs: + filename: stuart_ci_build + arguments: -c .pytool/CISettings.py -p $(pkgs_to_build) -t ${{ paramet= ers.build_targets}} -a ${{ parameters.build_archs}} TOOL_CHAIN_TAG=3D${{ pa= rameters.tool_chain_tag}} + condition: and(gt(variables.pkg_count, 0), succeeded()) + +# Publish Test Results to Azure Pipelines/TFS +- task: PublishTestResults@2 + displayName: 'Publish junit test results' + continueOnError: true + condition: and( succeededOrFailed(),gt(variables.pkg_count, 0)) + inputs: + testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit + testResultsFiles: 'Build/TestSuites.xml' + #searchFolder: '$(System.DefaultWorkingDirectory)' # Optional + mergeTestResults: true # Optional + testRunTitle: $(System.JobName) # Optional + #buildPlatform: # Optional + #buildConfiguration: # Optional + publishRunAttachments: true # Optional + +# Publish Test Results to Azure Pipelines/TFS +- task: PublishTestResults@2 + displayName: 'Publish host based test results for $(System.JobName)' + continueOnError: true + condition: and( succeededOrFailed(), gt(variables.pkg_count, 0)) + inputs: + testResultsFormat: 'JUnit' # Options: JUnit, NUnit, VSTest, xUnit + testResultsFiles: 'Build/**/*.result.xml' + #searchFolder: '$(System.DefaultWorkingDirectory)' # Optional + mergeTestResults: false # Optional + testRunTitle: ${{ parameters.build_pkgs }} # Optional + #buildPlatform: # Optional + #buildConfiguration: # Optional + publishRunAttachments: true # Optional + +# Copy the build logs to the artifact staging directory +- task: CopyFiles@2 + displayName: "Copy build logs" + inputs: + targetFolder: '$(Build.ArtifactStagingDirectory)' + SourceFolder: 'Build' + contents: | + BUILDLOG_*.txt + BUILDLOG_*.md + CI_*.txt + CI_*.md + CISETUP.txt + SETUPLOG.txt + UPDATE_LOG.txt + PREVALLOG.txt + TestSuites.xml + **/BUILD_TOOLS_REPORT.html + **/OVERRIDELOG.TXT + flattenFolders: true + condition: succeededOrFailed() + +# Publish build artifacts to Azure Artifacts/TFS or a file share +- task: PublishBuildArtifacts@1 + continueOnError: true + displayName: "Publish build logs" + inputs: + pathtoPublish: '$(Build.ArtifactStagingDirectory)' + artifactName: 'Build Logs $(System.JobName)' + condition: succeededOrFailed() diff --git a/.azurepipelines/templates/spell-check-prereq-steps.yml b/.azur= epipelines/templates/spell-check-prereq-steps.yml new file mode 100644 index 000000000000..98ee3cfa6bc6 --- /dev/null +++ b/.azurepipelines/templates/spell-check-prereq-steps.yml @@ -0,0 +1,22 @@ +## @file +# File templates/spell-check-prereq-steps.yml +# +# template file used to install spell checking prerequisits +# +# Copyright (c) Microsoft Corporation. +# SPDX-License-Identifier: BSD-2-Clause-Patent +## + +parameters: + none: '' + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '14.x' + #checkLatest: false # Optional + condition: and(gt(variables.pkg_count, 0), succeeded()) + +- script: npm install -g cspell + displayName: 'Install cspell npm' + condition: and(gt(variables.pkg_count, 0), succeeded()) diff --git a/.pytool/Readme.md b/.pytool/Readme.md index 9e59b30043fc..0d740caa40a8 100644 --- a/.pytool/Readme.md +++ b/.pytool/Readme.md @@ -9,6 +9,15 @@ For more detailed status look at the test results of the latest CI run on = the repo readme. =20 +## edk2 submodule + +It is possible that the edk2-platforms repository relies on new modificati= ons +in the edk2 repository. The edk2-platforms CI uses the edk2 submodule. Thu= s, +the edk2 submodule might need to be updated to run the CI properly. + +To rebase the edk2 submodule on the latest master, run: +* `git submodule update --remote --rebase edk2` + ## Readme =20 As the content of the .pytool folder has been imported from the tianocore = repository at: --=20 2.17.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 (#82705): https://edk2.groups.io/g/devel/message/82705 Mute This Topic: https://groups.io/mt/86606570/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- From nobody Sat May 18 10:08:01 2024 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+82706+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+82706+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1635264132; cv=none; d=zohomail.com; s=zohoarc; b=ZWf0gGZ413qynWibbeTFR/SUzR86TVxnRpAeiZn9piJLJfJaTOuqeDu8ZaDu+drUF9Vyk5oBydMr8vOBpLOGbrB1rNAuAn4fbjxPZ7dS/IjEPYZTfxDIJz2NP4vrD61pEQrIeGF8CFISTythImQFghxtp5XyfkWg9bIaTC3z5h8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635264132; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=LBx5OJK7SEh6rMWXNhSyvrLdifJkuBWVzv9vqu2Off8=; b=l0YT7UVJ10HKMEUflS+r/R2fvxkrjZf9iBnONAlxRHPgSsn8vyx3ekFuUcr2ALLMrHxG/8/kjh4vEzOF3FVBUkz9mf68xPhLFAEpRGhRT6xPOlTYIfwviotwYxyu/QpDPUd7T4RNsgOd0mi91gWiE4D+MyyT6JXLRYIHoXklLyk= 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+82706+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 1635264132064968.5764790050237; Tue, 26 Oct 2021 09:02:12 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id BSuiYY1788612xYzsdBHjPol; Tue, 26 Oct 2021 09:02:11 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web08.14399.1635264130657551346 for ; Tue, 26 Oct 2021 09:02:11 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5DBCF1396; Tue, 26 Oct 2021 09:02:10 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.74.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 7FDC13F70D; Tue, 26 Oct 2021 09:02:08 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Ard Biesheuvel , Leif Lindholm , Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Sami Mujawar Subject: [edk2-devel] [PATCH edk2-platforms v4 5/6] .mergify: Add Mergify YML pull request rules configuration file Date: Tue, 26 Oct 2021 17:01:40 +0100 Message-Id: <20211026160141.17400-6-Pierre.Gondois@arm.com> In-Reply-To: <20211026160141.17400-1-Pierre.Gondois@arm.com> References: <20211026160141.17400-1-Pierre.Gondois@arm.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,pierre.gondois@arm.com X-Gm-Message-State: GJ4U8WMt7rwkAnWf9NZWBCi2x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635264131; bh=ZT5FXzu38xOAx3xz0h/2tKkFynqQHxPa1nUSEu1Y/L0=; h=Date:From:Reply-To:Subject:To; b=cQNUcTGNgIGWuVzWoLH65cs76re2qTIwyKJHs5RV9WvSrvgUVv13z3eYLblIDrV/c/M NS0HweqjpewOkW+77s2QstLAtSvu4anZyAQyk4JMaMUirGteU2JFwHB4nCnOIIJRuiOIO I0Rksj7lq7rTbKjbumFEaJVoNhi6fUVFn4w= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635264142443100003 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois These files are copies of the files from the tianocore/edk2 repository. Any modification to the tianocore/edk2 files must be reflected on the tianocore/edk2-platforms copies. Initial commid-id in the edk2 repository: ab060128768b Initial message: Add directory for the Mergify YML configuration files that provides rules and actions used to process a pull request. * Auto commit a PR from EDK II Maintainer with 'push' label set and all CI checks pass * Auto close a PR from any developers without 'push' label set and all CI checks pass. * Auto close a PR from a non EDK II Maintainer that has the 'push' label set. * Post a comment to a PR that has a merge conflict. Submitter can resolved conflicts and reopen the PR. * Post a comment to a PR that fails PatchCheck.py Submitter can resolve PatchCheck.py issues and reopen the PR. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3509 Change-Id: I73b00fc289f60880fa06bcb8f1ac61a2bf8793d1 Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Cc: Sami Mujawar Signed-off-by: Pierre Gondois --- Notes: v3: - Align with the latest version in the edk2 repository. [Michael] .mergify/config.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .mergify/config.yml diff --git a/.mergify/config.yml b/.mergify/config.yml new file mode 100644 index 000000000000..bd6da4c77937 --- /dev/null +++ b/.mergify/config.yml @@ -0,0 +1,50 @@ +## @file +# Mergify YML file that automatically merges a GitHub pull request against +# edk2-ci if all of the GitHub branch protections have passed. It also +# contains rules to: +# * auto close branches that are not from an EDK II Maintainer +# * post a comment on pull requests that have merge conflicts. +# * post a comment on pull requests that have PatchCheck.py errors. +# +# Configuration Notes: +# * Update the 'base=3Dedk2-ci' statements with the name of the branch to = merge +# pull requests. +# +# * Update the 'status-failure' statement with the name of the name of the= Azure +# Pipelines Build that performs the EDK II Maintainer check. +# +# * This file must be checked into the 'default' branch of a repo. Copies +# of this file on other branches of a repo are ignored by Mergify. +# +# Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +# +# https://github.com/apps/mergify +# https://doc.mergify.io/ +# +## + +queue_rules: + - name: default + conditions: + - base~=3D(^main|^master|^stable/) + - label=3Dpush + +pull_request_rules: + - name: Automatically merge a PR when all required checks pass and 'push= ' label is present + conditions: + - base~=3D(^main|^master|^stable/) + - label=3Dpush + actions: + queue: + method: rebase + rebase_fallback: none + name: default + + - name: Post a comment on a PR that can not be merged due to a merge con= flict + conditions: + - base~=3D(^main|^master|^stable/) + - conflict + actions: + comment: + message: PR can not be merged due to conflict. Please rebase and = resubmit --=20 2.17.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 (#82706): https://edk2.groups.io/g/devel/message/82706 Mute This Topic: https://groups.io/mt/86606571/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- From nobody Sat May 18 10:08:01 2024 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+82707+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+82707+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1635264134; cv=none; d=zohomail.com; s=zohoarc; b=WyDCXBUguI8VNKLab8UFmOeB5mFQgvensLnr9lag1+P/pamAmQDfSlUdTs8/NE/3duWzl9+Oka0nOTDB5xeFQewYGc7gc7Ny+RwJK8RsB+JnggBnP27W9RmhibNPNtLGX1LRfCkgDUGkIIQVl16z2uN02+X6lkPp2fLb8h+ToMs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1635264134; h=Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=/hmQiaZEWxSke9FJZ9K93P5x26pHhTvOCo3Fj3qBO4U=; b=CfJ+P8oTLnpJhxPNnnPYbE//j9hu2JUHZLAxKYR09gVsAFNj8hjkTMnSPpYtngLOg4POhD+Zdd8+AYwo/W4hkY3thXgWPm5HfpdaCISDzOV5fAfEwWuGGCyA3udZk1Pq6jB1DF7AW2Vo02qN+oWPa/6Zm8oQzHMiBDyPiq5bNMs= 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+82707+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 1635264134125302.9471588790507; Tue, 26 Oct 2021 09:02:14 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id CJpKYY1788612x56WLPXfasN; Tue, 26 Oct 2021 09:02:13 -0700 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.14291.1635264132930393168 for ; Tue, 26 Oct 2021 09:02:13 -0700 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 99EE713A1; Tue, 26 Oct 2021 09:02:12 -0700 (PDT) X-Received: from e120189.arm.com (unknown [10.57.74.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A4F5F3F70D; Tue, 26 Oct 2021 09:02:10 -0700 (PDT) From: "PierreGondois" To: devel@edk2.groups.io, Ard Biesheuvel , Leif Lindholm , Sean Brogan , Bret Barkelew , Michael D Kinney , Liming Gao , Sami Mujawar Subject: [edk2-devel] [PATCH edk2-platforms v4 6/6] Platform/ARM: Juno: Add JunoPkg.ci.yaml for CI support Date: Tue, 26 Oct 2021 17:01:41 +0100 Message-Id: <20211026160141.17400-7-Pierre.Gondois@arm.com> In-Reply-To: <20211026160141.17400-1-Pierre.Gondois@arm.com> References: <20211026160141.17400-1-Pierre.Gondois@arm.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,pierre.gondois@arm.com X-Gm-Message-State: aSPoWRcV68R2QvbiEEz9QQBNx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1635264133; bh=WuTAW/2kVPqn5P8HTi4tziPSJenFhuQSnAROTh7bvxM=; h=Date:From:Reply-To:Subject:To; b=gBx+4YSoF5bNOQ7Znr9mJv5MZZMjmz84B7s//WY2/0MrTR9IcJSz30EMW8RJ7joVnt7 XeIJqjLYiMx+5CeysBwBzvZAWintNT6dHAkL8ht3j/G+7fw6+6hDA1y9qks/33nNpwTtI LF4bm5vOOLSyj9vsGMMal8S8MMzchTWb6jA= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1635264144559100006 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois Add a JunoPkg.ci.yaml file to enable the CI for the JunoPkg. Change-Id: Ib43aa7918b38256dd6fe2a87f8cca2e5975fcb76 Cc: Ard Biesheuvel Cc: Leif Lindholm Cc: Sean Brogan Cc: Bret Barkelew Cc: Michael D Kinney Cc: Liming Gao Cc: Sami Mujawar Signed-off-by: Pierre Gondois --- Platform/ARM/JunoPkg/JunoPkg.ci.yaml | 104 +++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 Platform/ARM/JunoPkg/JunoPkg.ci.yaml diff --git a/Platform/ARM/JunoPkg/JunoPkg.ci.yaml b/Platform/ARM/JunoPkg/Ju= noPkg.ci.yaml new file mode 100644 index 000000000000..7e7f201b40ec --- /dev/null +++ b/Platform/ARM/JunoPkg/JunoPkg.ci.yaml @@ -0,0 +1,104 @@ +## @file +# Core CI configuration for JunoPkg +# +# VExpressPkg is part of Platform CI for builds so this is only +# used for code analysis. +# +# Copyright (c) Microsoft Corporation +# Copyright (c) 2021, Arm Ltd. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent +## +{ + ## options defined .pytool/Plugin/LicenseCheck + "LicenseCheck": { + "IgnoreFiles": [] + }, + "EccCheck": { + ## Exception sample looks like below: + ## "ExceptionList": [ + ## "", "" + ## ] + "ExceptionList": [ + ], + ## Both file path and directory path are accepted. + "IgnoreFiles": [ + ] + }, + ## options defined .pytool/Plugin/CompilerPlugin + "CompilerPlugin": { + "DscPath": "" # Don't support this test + # Build the Package using a PlatformCI, similarly to= ArmVirtPkg. + }, + + ## options defined .pytool/Plugin/HostUnitTestCompilerPlugin + "HostUnitTestCompilerPlugin": { + "DscPath": "" # Don't support this test + }, + + ## options defined .pytool/Plugin/CharEncodingCheck + "CharEncodingCheck": { + "IgnoreFiles": [] + }, + + ## options defined .pytool/Plugin/DependencyCheck + "DependencyCheck": { + "AcceptableDependencies": [ + "ArmPkg/ArmPkg.dec", + "ArmPlatformPkg/ArmPlatformPkg.dec", + "DynamicTablesPkg/DynamicTablesPkg.dec", + "EmbeddedPkg/EmbeddedPkg.dec", + "MdePkg/MdePkg.dec", + "MdeModulePkg/MdeModulePkg.dec", + "Platform/ARM/ARM.dec", + "Platform/ARM/Drivers/FdtPlatformDxe/FdtPlatformDxe.dec", + "Platform/ARM/JunoPkg/ArmJuno.dec", + ], + # For host based unit tests + "AcceptableDependencies-HOST_APPLICATION":[ + "UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec" + ], + # For UEFI shell based apps + "AcceptableDependencies-UEFI_APPLICATION":[ + + ], + "IgnoreInf": [] + }, + + ## options defined .pytool/Plugin/DscCompleteCheck + "DscCompleteCheck": { + "IgnoreInf": [""], + "DscPath": "" # Don't support this test + # "DscPath": "ArmJuno.dsc" # Don't support this test + }, + + ## options defined .pytool/Plugin/HostUnitTestDscCompleteCheck + "HostUnitTestDscCompleteCheck": { + "IgnoreInf": [""], + "DscPath": "" # Don't support this test + }, + + ## options defined .pytool/Plugin/GuidCheck + "GuidCheck": { + "IgnoreGuidName": [], # Expected duplication for gEfiFirmwareVolum= eTopFileGuid + "IgnoreGuidValue": [ + ], + "IgnoreFoldersAndFiles": [], + "IgnoreDuplicates": [], + }, + + ## options defined .pytool/Plugin/LibraryClassCheck + "LibraryClassCheck": { + "IgnoreHeaderFile": [] + }, + + ## options defined .pytool/Plugin/SpellCheck + "SpellCheck": { + "AuditOnly": True, + "IgnoreFiles": [], # use gitignore syntax to ignore erro= rs in matching files + "ExtendWords": [ + + ], # words to extend to the dictionary for this package + "IgnoreStandardPaths": [], # Standard Plugin defined paths that = should be ignore + "AdditionalIncludePaths": [] # Additional paths to spell check (wi= ldcards supported) + } +} --=20 2.17.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 (#82707): https://edk2.groups.io/g/devel/message/82707 Mute This Topic: https://groups.io/mt/86606572/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-