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.145.221.124]) by mx.groups.io with SMTP id smtpd.web11.49652.1683207179338421841 for ; Thu, 04 May 2023 06:33:00 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IL2exa7C; spf=permerror, err=parse error for token &{10 18 spf1.redhat.com}: parse error for token &{10 18 spf2.redhat.com}: parse error for token &{10 18 spf3.redhat.com}: parse error for token &{10 18 spf4.redhat.com}: parse error for token &{10 18 spf5.redhat.com}: parse error for token &{10 18 spf6.redhat.com}: parse error for token &{10 18 spf7.redhat.com}: parse error for token &{10 18 service-now.com}: limit exceeded (domain: redhat.com, ip: 216.145.221.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1683207177; 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; bh=bY8R7+dJpQRgtebC3HGotLETKGkG6LhFpdV8W+jmG5I=; b=IL2exa7C/vUPk9YFMwaQMVzVVuyKskZ4Xd9/YDR3Z3h6oJuLytz5Z9cZxIAVAISqnc93VZ PUZUHAQIditCJb2DX2H8BU7YsxLWjXZRqOruQlpyocgRtuWMcqVAe1gym/SQq8QBZWciCu 5GRo+UKWNC8NhtqqsigA8vIHrGPSMnI= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-2-POKMzbhcMQG3KGlpAhIAoQ-1; Thu, 04 May 2023 09:32:54 -0400 X-MC-Unique: POKMzbhcMQG3KGlpAhIAoQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 261A128082A5; Thu, 4 May 2023 13:32:53 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.48]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 92C7D1410F24; Thu, 4 May 2023 13:32:52 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 4B9FD180061F; Thu, 4 May 2023 15:32:51 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Erdem Aktas , Min Xu , Tom Lendacky , Jordan Justen , Stefan Berger , Julien Grall , Anthony Perard , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Ard Biesheuvel , Oliver Steffen , James Bottomley , Pawel Polawski , Michael Roth , Gerd Hoffmann Subject: [PATCH 0/3] OvmfPkg: remove PlatformBootManagerLibGrub Date: Thu, 4 May 2023 15:32:48 +0200 Message-Id: <20230504133251.1031341-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit An attempt to reduce code duplication a bit. PlatformBootManagerLibGrub is an (outdated) copy of PlatformBootManagerLib with some policy changes. Add a PCD to enable this policy and add support for that to PlatformBootManagerLib, which in turn allows to remove PlatformBootManagerLibGrub. Gerd Hoffmann (3): OvmfPkg/PlatformBootManagerLib: add PcdBootRestrictToFirmware OvmfPkg/AmdSev: stop using PlatformBootManagerLibGrub OvmfPkg: drop PlatformBootManagerLibGrub OvmfPkg/OvmfPkg.dec | 3 + OvmfPkg/AmdSev/AmdSevX64.dsc | 10 +- .../PlatformBootManagerLib.inf | 2 + .../PlatformBootManagerLibGrub.inf | 73 - .../PlatformBootManagerLibGrub/BdsPlatform.h | 185 -- .../PlatformBootManagerLib/BdsPlatform.c | 70 +- .../PlatformBootManagerLibGrub/BdsPlatform.c | 1604 ----------------- .../PlatformBootManagerLibGrub/PlatformData.c | 212 --- .../PlatformBootManagerLibGrub/QemuKernel.c | 55 - 9 files changed, 79 insertions(+), 2135 deletions(-) delete mode 100644 OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformBootManagerLibGrub.inf delete mode 100644 OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.h delete mode 100644 OvmfPkg/Library/PlatformBootManagerLibGrub/BdsPlatform.c delete mode 100644 OvmfPkg/Library/PlatformBootManagerLibGrub/PlatformData.c delete mode 100644 OvmfPkg/Library/PlatformBootManagerLibGrub/QemuKernel.c -- 2.40.1