diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-12-13 09:14:42 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-13 11:36:57 +0000 |
commit | 2722856a8707ec74c2fd95a22deb0dad9c58aef5 (patch) | |
tree | 48ed4829a17b82a7ecb51cfcce349e90fc0c022a | |
parent | 8b8ae609a705781cf103c059f9eba3d6428de542 (diff) | |
download | edk2-2722856a8707ec74c2fd95a22deb0dad9c58aef5.tar.gz edk2-2722856a8707ec74c2fd95a22deb0dad9c58aef5.tar.bz2 edk2-2722856a8707ec74c2fd95a22deb0dad9c58aef5.zip |
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>
-rw-r--r-- | OvmfPkg/PlatformCI/AmdSevBuild.py | 5 |
1 files changed, 5 insertions, 0 deletions
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'])
|