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.4956.1635930711140082161 for ; Wed, 03 Nov 2021 02:11:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QbMGxeSj; 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=1635930710; 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=Zj9+KVfS+sYD4tCZxIifj9vp1hZRGrjLQR4NBXXIjyk=; b=QbMGxeSj1MCQiPjIOO4ry/JP7QvZxucX7fM7Y2v42Fs2vRt85iLreE9+/4eS/tRxBGxOL0 HhS6TUEGSf07cibauyTyWditJxd5w4B/A63L0rxaiSJrUSbs5YbVkJirPbVBbqh06ToLbp J9DvevMoZDftgnOyby4PSSPf7xvDGNU= 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-62-UoSvlIvCPQW0vPLY_4U0Ng-1; Wed, 03 Nov 2021 05:11:47 -0400 X-MC-Unique: UoSvlIvCPQW0vPLY_4U0Ng-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8830C19253C5; Wed, 3 Nov 2021 09:11:45 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.194.99]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EB5105D9D5; Wed, 3 Nov 2021 09:11:44 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 48A101801ABC; Wed, 3 Nov 2021 10:11:23 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Bret Barkelew , Michael D Kinney , Sean Brogan , Gerd Hoffmann , Ard Biesheuvel , Jordan Justen , Liming Gao , Jiewen Yao , Jiewen Yao , Ard Biesheuvel Subject: [PATCH v3 6/7] OvmfPkg/PlatformCI: dummy grub.efi for AmdSev Date: Wed, 3 Nov 2021 10:11:22 +0100 Message-Id: <20211103091123.2953172-7-kraxel@redhat.com> In-Reply-To: <20211103091123.2953172-1-kraxel@redhat.com> References: <20211103091123.2953172-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 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. Acked-by: Jiewen Yao Acked-by: Ard Biesheuvel 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 2dd72cfe80d9..816caafb0084 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']) -- 2.31.1