From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by mx.groups.io with SMTP id smtpd.web08.5954.1626265818416701855 for ; Wed, 14 Jul 2021 05:30:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=1LQQDj3c; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.46, mailfrom: gjb@semihalf.com) Received: by mail-lf1-f46.google.com with SMTP id b26so3306342lfo.4 for ; Wed, 14 Jul 2021 05:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Vl08TNSMbMLWVPruCi2zDnCQRcZsOIgxHgx82iug9o0=; b=1LQQDj3c4S3nOq9msYf7Xw7eF5rEqtMmvsakDKlozr33Vb6Zaa/KBBUqkimOdRgIUn bm7pqnKdrYIy5VttJL1kpMP8q8+jRs/MSXxq3LGV+8075pm2Cgvu3TKfoiHriaGkIJsf 1Nd6GKfDg/+wgaNbJejWEkl//oE2Iva5NlQPViCLejdyrmjfQLv0cFC8gBdyTOSVyLY9 vf0TxtYJfwn2KrzX4GTpICge0kJellWe5AvjLK1F+yGrqdAwJypuV9cakYK6vfEvV/F3 oxKu0cOLsFsfAenhTCYfhElarlw3627bk6k85Rsykegz2TPfzxiSanLfmVYQ/tdy3g7L xWjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vl08TNSMbMLWVPruCi2zDnCQRcZsOIgxHgx82iug9o0=; b=C9LGxnd5YugEMsHni2gIDsTAFGvf4MTeMGC98CbzetyZJNpKkDjhkih8L3hZMo6SdH hWq3dfq+WgTbjiYlaRgmwwJc8BYijS/8D/ypXekk9+BLXzIQo/HDJuCdggm8cRsIJauF MCICecgQp/V14DZEOiiujMZGI3tyFusUxaX/KtjJu/I3FuDXUSJbkU0wiz9HDPSOy52t k+Xh79dmswV6Cr8ntg+eEPo+OR8M5HI2fNFJeHVhBEdJTVfZq1RzpIRNQvka0NpmuP/M yEU4n7caAoQDMomS7kFF5IZKcnJHPfGaTibEXyfBkBFwsRmNRbdqesxRMMmY0aF9LAmt V7bg== X-Gm-Message-State: AOAM532uz6FUIUiOrv1bO9eZlPiV1QdXtVlWZWHLofTWp6aZWg1cCSV4 23oxLsecoT/HOdomEfC5H++g8hnDknwM3RAd X-Google-Smtp-Source: ABdhPJyjRa9W+95ZXTP0D4OixWb6WKS14p3ufVYHTnYjT2s9bqf2312QpbUkBEf7UPBg1vVy4J6M4Q== X-Received: by 2002:a05:6512:16a9:: with SMTP id bu41mr7737323lfb.428.1626265816509; Wed, 14 Jul 2021 05:30:16 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id j2sm224846ljc.49.2021.07.14.05.30.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 05:30:16 -0700 (PDT) From: "Grzegorz Bernacki" To: devel@edk2.groups.io Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, Samer.El-Haj-Mahmoud@arm.com, sunny.Wang@arm.com, mw@semihalf.com, upstream@semihalf.com, jiewen.yao@intel.com, jian.j.wang@intel.com, min.m.xu@intel.com, lersek@redhat.com, sami.mujawar@arm.com, afish@apple.com, ray.ni@intel.com, jordan.l.justen@intel.com, rebecca@bsdio.com, grehan@freebsd.org, thomas.abraham@arm.com, chasel.chiu@intel.com, nathaniel.l.desimone@intel.com, gaoliming@byosoft.com.cn, eric.dong@intel.com, michael.d.kinney@intel.com, zailiang.sun@intel.com, yi.qian@intel.com, graeme@nuviainc.com, rad@semihalf.com, pete@akeo.ie, Grzegorz Bernacki , Sunny Wang Subject: [PATCH v6 04/11] OvmfPkg: add SecureBootVariableLib class resolution Date: Wed, 14 Jul 2021 14:29:45 +0200 Message-Id: <20210714122952.1340890-5-gjb@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210714122952.1340890-1-gjb@semihalf.com> References: <20210714122952.1340890-1-gjb@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The edk2 patch SecurityPkg: Create library for setting Secure Boot variables. moves generic functions from SecureBootConfigDxe and places them into SecureBootVariableLib. This patch adds SecureBootVariableLib mapping for OvmfPkg. Signed-off-by: Grzegorz Bernacki Reviewed-by: Laszlo Ersek Reviewed-by: Sunny Wang --- OvmfPkg/Bhyve/BhyveX64.dsc | 2 ++ OvmfPkg/OvmfPkgIa32.dsc | 2 ++ OvmfPkg/OvmfPkgIa32X64.dsc | 2 ++ OvmfPkg/OvmfPkgX64.dsc | 2 ++ 4 files changed, 8 insertions(+) diff --git a/OvmfPkg/Bhyve/BhyveX64.dsc b/OvmfPkg/Bhyve/BhyveX64.dsc index 0068314495..d8fe607d1c 100644 --- a/OvmfPkg/Bhyve/BhyveX64.dsc +++ b/OvmfPkg/Bhyve/BhyveX64.dsc @@ -197,6 +197,8 @@ !if $(SECURE_BOOT_ENABLE) == TRUE PlatformSecureLib|OvmfPkg/Bhyve/Library/PlatformSecureLib/PlatformSecureLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf + SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf !else AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf !endif diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index f53efeae79..4afa136fb2 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -204,6 +204,8 @@ !if $(SECURE_BOOT_ENABLE) == TRUE PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf + SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf !else AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf !endif diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index b3662e17f2..3982b67b12 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -208,6 +208,8 @@ !if $(SECURE_BOOT_ENABLE) == TRUE PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf + SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf !else AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf !endif diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 0a237a9058..7db418e5e7 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -208,6 +208,8 @@ !if $(SECURE_BOOT_ENABLE) == TRUE PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf + SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf !else AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf !endif -- 2.25.1