public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: "Xu, Min M" <min.m.xu@intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Aktas, Erdem" <erdemaktas@google.com>,
	James Bottomley <jejb@linux.ibm.com>,
	Tom Lendacky <thomas.lendacky@amd.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Ard Biesheuvel <ardb@kernel.org>
Subject: Re: [PATCH 1/1] OvmfPkg/PlatformCI: add IntelTdxBuild.py
Date: Fri, 1 Jul 2022 06:08:45 +0000	[thread overview]
Message-ID: <MW4PR11MB5872FD52D908AD03FCBA42058CBD9@MW4PR11MB5872.namprd11.prod.outlook.com> (raw)
In-Reply-To: <2491a7b24cb790f14b4155798d4be3bfde579cfd.1652614321.git.min.m.xu@intel.com>

Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>

> -----Original Message-----
> From: Xu, Min M <min.m.xu@intel.com>
> Sent: Sunday, May 15, 2022 7:33 PM
> To: devel@edk2.groups.io
> Cc: Xu, Min M <min.m.xu@intel.com>; Aktas, Erdem
> <erdemaktas@google.com>; James Bottomley <jejb@linux.ibm.com>; Tom
> Lendacky <thomas.lendacky@amd.com>; Gerd Hoffmann <kraxel@redhat.com>;
> Yao, Jiewen <jiewen.yao@intel.com>; Ard Biesheuvel <ardb@kernel.org>
> Subject: [PATCH 1/1] OvmfPkg/PlatformCI: add IntelTdxBuild.py
> 
> Add build test for OvmfPkg/IntelTdx
> 
> Cc: Erdem Aktas <erdemaktas@google.com>
> Cc: James Bottomley <jejb@linux.ibm.com>
> Cc: Tom Lendacky <thomas.lendacky@amd.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Cc: Jiewen Yao <Jiewen.yao@intel.com>
> Cc: Ard Biesheuvel <ardb@kernel.org>
> Signed-off-by: Min Xu <min.m.xu@intel.com>
> ---
>  .../.azurepipelines/Ubuntu-GCC5.yml           | 11 ++++++
>  OvmfPkg/PlatformCI/IntelTdxBuild.py           | 37 +++++++++++++++++++
>  2 files changed, 48 insertions(+)
>  create mode 100644 OvmfPkg/PlatformCI/IntelTdxBuild.py
> 
> diff --git a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
> b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
> index 6dec90d9fcaf..7160d95f7e04 100644
> --- a/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
> +++ b/OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC5.yml
> @@ -160,6 +160,17 @@ jobs:
>              # this build is for xen not qemu-kvm
>              Run.Flags: "QEMU_SKIP=TRUE"
>              Run: $(should_run)
> +
> +          INTELTDX_X64_DEBUG:
> +            Build.File: "$(package)/PlatformCI/IntelTdxBuild.py"
> +            Build.Arch: "X64"
> +            Build.Flags: ""
> +            Build.Target: "DEBUG"
> +            # no storage supported by microvm build
> +            # can't boot to uefi shell -> skip test
> +            Run.Flags: "QEMU_SKIP=TRUE"
> +            Run: $(should_run)
> +
>      workspace:
>        clean: all
> 
> diff --git a/OvmfPkg/PlatformCI/IntelTdxBuild.py
> b/OvmfPkg/PlatformCI/IntelTdxBuild.py
> new file mode 100644
> index 000000000000..4b19630ce3c7
> --- /dev/null
> +++ b/OvmfPkg/PlatformCI/IntelTdxBuild.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 = ("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 "IntelTdx/IntelTdxX64.dsc"
> +
> +import PlatformBuildLib
> +PlatformBuildLib.CommonPlatform = CommonPlatform
> --
> 2.29.2.windows.2


  parent reply	other threads:[~2022-07-01  6:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1652614321.git.min.m.xu@intel.com>
2022-05-15 11:33 ` [PATCH 1/1] OvmfPkg/PlatformCI: add IntelTdxBuild.py Min Xu
2022-05-17  7:56   ` Gerd Hoffmann
2022-07-01  6:08   ` Yao, Jiewen [this message]
     [not found]   ` <16FD9F9CF906220C.5468@groups.io>
2022-07-01  7:00     ` [edk2-devel] " Yao, Jiewen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=MW4PR11MB5872FD52D908AD03FCBA42058CBD9@MW4PR11MB5872.namprd11.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox