public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gerd Hoffmann" <kraxel@redhat.com>
To: devel@edk2.groups.io
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>,
	Michael D Kinney <michael.d.kinney@intel.com>,
	Sean Brogan <sean.brogan@microsoft.com>,
	Gerd Hoffmann <kraxel@redhat.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>,
	Jiewen Yao <Jiewen.yao@intel.com>,
	Ard Biesheuvel <ardb@kernel.org>
Subject: [PATCH v3 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev
Date: Wed,  3 Nov 2021 10:11:22 +0100	[thread overview]
Message-ID: <20211103091123.2953172-7-kraxel@redhat.com> (raw)
In-Reply-To: <20211103091123.2953172-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.

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


  parent reply	other threads:[~2021-11-03  9:11 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 ` Gerd Hoffmann [this message]
2021-11-09  7:59   ` [edk2-devel] [PATCH v3 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev Dov Murik
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=20211103091123.2953172-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