From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.groups.io with SMTP id smtpd.web08.6727.1634630936810484358 for ; Tue, 19 Oct 2021 01:08:57 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ee+BwWEF; spf=pass (domain: redhat.com, ip: 216.205.24.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1634630936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FZC9nvLyYIkKukwyPYVIrhNn2SqbPb+PmQ+OfCxCKYA=; b=ee+BwWEFTPFAw5efPPfGRaupDR3kVtoOYrsZOaEz6CGkt5B/G6OZaO82UjLweqB9BTgoMf jPkXPoa8H+YGUWnyoPid8jFXHhr97sAUspIFDaSYxHrok4orqm2btV76HjybDimEk4YiZ3 cB1m9rPdgFHyG1odhqwUhfuIaG5cL3Q= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-285-tSwdnv-QNYitaGzt_eG8zw-1; Tue, 19 Oct 2021 04:08:50 -0400 X-MC-Unique: tSwdnv-QNYitaGzt_eG8zw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A8FBC18125C6; Tue, 19 Oct 2021 08:08:49 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7244A1981F; Tue, 19 Oct 2021 08:08:49 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 523661800866; Tue, 19 Oct 2021 10:08:32 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Gerd Hoffmann , Jiewen Yao , Jordan Justen , Ard Biesheuvel Subject: [PATCH 6/6] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev Date: Tue, 19 Oct 2021 10:08:32 +0200 Message-Id: <20211019080832.265545-7-kraxel@redhat.com> In-Reply-To: <20211019080832.265545-1-kraxel@redhat.com> References: <20211019080832.265545-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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 --- OvmfPkg/PlatformCI/AmdSevBuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/PlatformCI/AmdSevBuild.py b/OvmfPkg/PlatformCI/AmdSevBuild.py index 7348a86e05a1..4a38a2a5016a 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.join(os.getcwd(), 'OvmfPkg', 'PlatformCI')) 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