public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Dov Murik" <dovmurik@linux.ibm.com>
To: devel@edk2.groups.io, kraxel@redhat.com
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>,
	Michael D Kinney <michael.d.kinney@intel.com>,
	Sean Brogan <sean.brogan@microsoft.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	Jordan Justen <jordan.l.justen@intel.com>,
	Liming Gao <gaoliming@byosoft.com.cn>,
	Jiewen Yao <jiewen.yao@intel.com>,
	Ard Biesheuvel <ardb@kernel.org>,
	Dov Murik <dovmurik@linux.ibm.com>
Subject: Re: [edk2-devel] [PATCH v3 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev
Date: Tue, 9 Nov 2021 09:59:02 +0200	[thread overview]
Message-ID: <91e08adf-ba90-150e-0ad3-a102f0342bcf@linux.ibm.com> (raw)
In-Reply-To: <20211103091123.2953172-7-kraxel@redhat.com>

Thanks for this addition to CI!


On 03/11/2021 11:11, Gerd Hoffmann wrote:
> Building grub.efi for AmdSev is difficult because it depends on patches
> not yet merged to upstream grub.  So shortcut the grub build by simply
> creating an empty grub.efi file.  That allows to at least build-test the
> AmdSev variant.

Note that it will also allow (later) to test with QEMU with -kernel (AKA
direct measured Linux boot), which doesn't reach the grub part.  (if the
CI supports such tests.)


> 
> Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
> Acked-by: Ard Biesheuvel <ardb@kernel.org>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Reviewed-by: Dov Murik <dovmurik@linux.ibm.com>




> ---
>  OvmfPkg/PlatformCI/AmdSevBuild.py | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/OvmfPkg/PlatformCI/AmdSevBuild.py b/OvmfPkg/PlatformCI/AmdSevBuild.py
> index 2dd72cfe80d9..816caafb0084 100644
> --- a/OvmfPkg/PlatformCI/AmdSevBuild.py
> +++ b/OvmfPkg/PlatformCI/AmdSevBuild.py
> @@ -6,6 +6,7 @@
>  ##
>  import os
>  import sys
> +import subprocess
>  
>  sys.path.append(os.path.dirname(os.path.abspath(__file__)))
>  from PlatformBuildLib import SettingsManager
> @@ -35,3 +36,7 @@ class CommonPlatform():
>  
>  import PlatformBuildLib
>  PlatformBuildLib.CommonPlatform = CommonPlatform
> +
> +# hack alert -- create dummy grub.efi
> +subprocess.run(['touch', 'OvmfPkg/AmdSev/Grub/grub.efi'])
> +subprocess.run(['ls', '-l', '--sort=time', 'OvmfPkg/AmdSev/Grub'])
> 

  reply	other threads:[~2021-11-09  7:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-03  9:11 [PATCH v3 0/7] OvmfPkg/PlatformCI: hook up AmdSev, Bhyve and Microvm Gerd Hoffmann
2021-11-03  9:11 ` [PATCH v3 1/7] OvmfPkg/PlatformCI: factor out PlatformBuildLib.py Gerd Hoffmann
2021-11-03  9:11 ` [PATCH v3 2/7] OvmfPkg/PlatformCI: add QEMU_SKIP Gerd Hoffmann
2021-11-03 14:03   ` [edk2-devel] " Philippe Mathieu-Daudé
2021-11-03  9:11 ` [PATCH v3 3/7] OvmfPkg/PlatformCI: add BhyveBuild.py Gerd Hoffmann
2021-11-03  9:11 ` [PATCH v3 4/7] OvmfPkg/PlatformCI: add MicrovmBuild.py Gerd Hoffmann
2021-11-03 14:03   ` [edk2-devel] " Philippe Mathieu-Daudé
2021-11-03  9:11 ` [PATCH v3 5/7] OvmfPkg/PlatformCI: add AmdSevBuild.py Gerd Hoffmann
2021-11-03 14:04   ` [edk2-devel] " Philippe Mathieu-Daudé
2021-11-03  9:11 ` [PATCH v3 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev Gerd Hoffmann
2021-11-09  7:59   ` Dov Murik [this message]
2021-11-03  9:11 ` [PATCH v3 7/7] OvmfPkg/PlatformCI: add XenBuild.py Gerd Hoffmann
2021-11-09  7:11 ` [PATCH v3 0/7] OvmfPkg/PlatformCI: hook up AmdSev, Bhyve and Microvm Gerd Hoffmann

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=91e08adf-ba90-150e-0ad3-a102f0342bcf@linux.ibm.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