Re: [PATCH v3 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev

Dov Murik

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 <>
Acked-by: Ard Biesheuvel <>
Signed-off-by: Gerd Hoffmann <>
Reviewed-by: Dov Murik <>

OvmfPkg/PlatformCI/ | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/OvmfPkg/PlatformCI/ b/OvmfPkg/PlatformCI/
index 2dd72cfe80d9..816caafb0084 100644
--- a/OvmfPkg/PlatformCI/
+++ b/OvmfPkg/PlatformCI/
@@ -6,6 +6,7 @@
import os
import sys
+import subprocess

from PlatformBuildLib import SettingsManager
@@ -35,3 +36,7 @@ class CommonPlatform():

import PlatformBuildLib
PlatformBuildLib.CommonPlatform = CommonPlatform
+# hack alert -- create dummy grub.efi['touch', 'OvmfPkg/AmdSev/Grub/grub.efi'])['ls', '-l', '--sort=time', 'OvmfPkg/AmdSev/Grub'])

Join to automatically receive all group messages.