OvmfPkg/PlatformCI: dummy grub.efi for AmdSev

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>
This commit is contained in:
Gerd Hoffmann 2021-12-13 09:14:42 +01:00 committed by mergify[bot]
parent 8b8ae609a7
commit 2722856a87
1 changed files with 5 additions and 0 deletions

View File

@ -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'])