From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web09.32012.1635168029424020596 for ; Mon, 25 Oct 2021 06:20:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Dhy5ZE6w; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635168028; 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=Dhy5ZE6w5GpEzz/+j6g5RYDB/lhM6Srwh2OUuIFERwPZhYDtISjS2Z63m2WfX2iALec1XS LuX7wv8qxK+JN0CpV//j+Y+9Me5oNhLFPPZuI3gFbER63t35GPb3G41uUWH7Lq5Kf3cTIs BivoAjIs9GEwM5n1G1nPGaWJmoy7M3g= 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-544-Y8HjSRMzNJy4Zy2gVAMFGw-1; Mon, 25 Oct 2021 09:20:23 -0400 X-MC-Unique: Y8HjSRMzNJy4Zy2gVAMFGw-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 D135810060DE; Mon, 25 Oct 2021 13:20:21 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.23]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AF95D69FBD; Mon, 25 Oct 2021 13:20:05 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 83B171801A98; Mon, 25 Oct 2021 15:19:31 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Gerd Hoffmann , Jordan Justen , Jiewen Yao , Ard Biesheuvel , Sean Brogan , Liming Gao , Michael D Kinney Subject: [PATCH v2 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev Date: Mon, 25 Oct 2021 15:19:30 +0200 Message-Id: <20211025131931.129666-7-kraxel@redhat.com> In-Reply-To: <20211025131931.129666-1-kraxel@redhat.com> References: <20211025131931.129666-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