From 2722856a8707ec74c2fd95a22deb0dad9c58aef5 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Mon, 13 Dec 2021 09:14:42 +0100 Subject: 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 Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel Reviewed-by: Dov Murik --- OvmfPkg/PlatformCI/AmdSevBuild.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OvmfPkg/PlatformCI') diff --git a/OvmfPkg/PlatformCI/AmdSevBuild.py b/OvmfPkg/PlatformCI/AmdSevBuild.py index 2dd72cfe80..816caafb00 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']) -- cgit v1.2.3