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.web10.22191.1627640631750379409 for ; Fri, 30 Jul 2021 03:23:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=gA3QD4Cf; 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 h14so16900836lfv.7 for ; Fri, 30 Jul 2021 03:23:51 -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=qAW1q0a0Qa41/JTGGb66suYhWNvhSjmgt046nyozLtQ=; b=gA3QD4CfpwjNaY8sASBOQAYqyEjIAFwo+ftrrngG+gw/tjZojm8AOXO2+5nPPZlSiA UtfSpmoddlROYL5eEBWQcfqmn7VjeYuAlF1mNmEOqm5JNHv58zOAT0Hdk1pmF+dVMI5+ 0Oymz64L7PEx3wGnJIZCZUTNg8Zh/B0D7Gk7XjrtzNH8B8a70PH5agWINy72pkizj/Ei 54nTHaTCLN38zsWiqUbtZgxxSsUwK9at6kdAyXHKj4dcBFLFGF5mtisTrrO5we2+bNgn 1G6tFZLvdzFin2oDT7SGsKXRwbsyAokOVEzARBoWbQPt6IeS/a1+kjwfDmfHzFFz9I1B BSVQ== 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=qAW1q0a0Qa41/JTGGb66suYhWNvhSjmgt046nyozLtQ=; b=LbWDhN3KBU/FmCY/7wPBXfK7J1gzT5HQ+IvN64Km925156UIz76/Bcu9tFyKdFiCqq X9iwyKoOeKNrQc1qolNAkEKx7+gevYsWuiv7iM70ICQAVriOE+g4EMDpiYEq2NZl6eao cnZFNB3t96kOe8eMIVVPg/xsPetgVblbLfua15T3cGenEgLD+iMB3DYIQV9lGHswLZfc PzLmyFSWR0tYkCQMB/XqAaZZr3fTLjr+ipIvQBZTnSxKv/Q/w7kWTSWqHOEil0aXht7+ KFf15R/qo7DqWGLB+QWsPWRFlAx84AqurMwKpTl79oCZfC5K/2XF++VytsPtfT11JiN/ R7yw== X-Gm-Message-State: AOAM5332Dj5xtiqrlBwGypaT3gpZ3OAvmAjjvo2EZhC0fkCa7UkJIh1d 5Lh19iss5KPWyP7mMyGBLZpypCcG962eAdLg X-Google-Smtp-Source: ABdhPJyHImgH/27EXldr6wa5eHRqDhKGvnA8Hs/LAXlKJJ0NaDX3n0mVzF0ylWYQytaLp4mNjYTZfQ== X-Received: by 2002:a19:ae0f:: with SMTP id f15mr1384637lfc.117.1627640629670; Fri, 30 Jul 2021 03:23:49 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id d5sm114174lfs.61.2021.07.30.03.23.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jul 2021 03:23:49 -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 v7 04/11] OvmfPkg: add SecureBootVariableLib class resolution Date: Fri, 30 Jul 2021 12:23:19 +0200 Message-Id: <20210730102326.2814466-5-gjb@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210730102326.2814466-1-gjb@semihalf.com> References: <20210730102326.2814466-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 799a974cf2..d1d92c97ba 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 66ad5dc70c..a467ab7090 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 180565a100..e56b83d95e 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