public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gerd Hoffmann" <kraxel@redhat.com>
To: devel@edk2.groups.io
Cc: "Michael D Kinney" <michael.d.kinney@intel.com>,
	dovmurik@linux.ibm.com, "Jiewen Yao" <jiewen.yao@intel.com>,
	"Liming Gao" <gaoliming@byosoft.com.cn>,
	"Philippe Mathieu-Daudé" <philmd@redhat.com>,
	"Gerd Hoffmann" <kraxel@redhat.com>,
	"Ard Biesheuvel" <ardb+tianocore@kernel.org>,
	"Sean Brogan" <sean.brogan@microsoft.com>,
	"Jordan Justen" <jordan.l.justen@intel.com>,
	"Pawel Polawski" <ppolawsk@redhat.com>,
	"Bret Barkelew" <Bret.Barkelew@microsoft.com>,
	"Jiewen Yao" <Jiewen.yao@intel.com>,
	"Ard Biesheuvel" <ardb@kernel.org>
Subject: [PATCH v4 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev
Date: Mon, 13 Dec 2021 09:14:42 +0100	[thread overview]
Message-ID: <20211213081443.3534714-7-kraxel@redhat.com> (raw)
In-Reply-To: <20211213081443.3534714-1-kraxel@redhat.com>

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.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
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'])
-- 
2.33.1


  parent reply	other threads:[~2021-12-13  8:16 UTC|newest]

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

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=20211213081443.3534714-7-kraxel@redhat.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