From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by mx.groups.io with SMTP id smtpd.web12.6067.1626265862585238373 for ; Wed, 14 Jul 2021 05:31:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=MKCQE6rZ; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.41, mailfrom: gjb@semihalf.com) Received: by mail-lf1-f41.google.com with SMTP id t17so3374121lfq.0 for ; Wed, 14 Jul 2021 05:31:02 -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=eUZkCSVPGnY/gpjb0TfLhojdo2WXV9GbPMhijWSjaRc=; b=MKCQE6rZ1yquivL5ImLmXJsqybjn7IZdtpMR0kliNDdRoX9bkVKbGeFzlIXwQdcmEr ZiZT1PSJUYk2vm3sQscl+8OlhcPewuorNVxSgT75AEHsN/W4dY90bhj5vZPYWNioTO51 fu9yhwQ2vvLEO/6UB0go9sqgc0FvPPs5YjHxSPstXqeLwGkkQSoEMNeZZFZUX76Uw40U XhAjpk58yFi0cgwb2KpXp8hfeKdVNm6OUHkUZIVDmx9DHa8eAGG1p9OpycF16woRhzia POtIqcxExWboy2Szr56WQU80LBKek0jAhBKPhxfdD41Yv44X5ZJOcz3t9rjXjvwK9R4K Vxpg== 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=eUZkCSVPGnY/gpjb0TfLhojdo2WXV9GbPMhijWSjaRc=; b=gC5DPyi85JMsIGxkHhAfi0s2YLHr99hAGULTIWt1nHskk4KuD09U4xCD7IEvEtFFEu u/drLrnaEE3NevK5y0WRCZtgSJFtoVttg8Nq11Z2RMDrKK6MbXUeiU86vnbktpd2X4JF iTZnQsYqvxENESKflk2FR9iV8LnR50TG+1JPGCHP/HgFPhH0pXjDgDfhwIT1WAJNFjcL tKWtjOVauZseGPMXDOE017qi5SWP0zSNdbmzAXvdj6arceNB67u9G1i3/rVvecEVDUNT b8rVlAZL8Rs+Df/1Z5om4WKtwmvGdMLdLxDGn2sVpFRfsHI01KKbbLipQUX+7C3nPSX8 VI1A== X-Gm-Message-State: AOAM531vRg+WrjnxbsE0EWCgWQ355rTyJ9u5h957yQXSnuSdLmsjT8qs ulNEiQ1wBMDb6T/pXpP0mUgbEOXCFI2X32Gg X-Google-Smtp-Source: ABdhPJyXhyAf92m7spMSTkXulgX2vifQjHws/sJP5oEVBTBeSYUnlU9GpAlP8BtxzvXS8LYw82BhFg== X-Received: by 2002:ac2:43a6:: with SMTP id t6mr6704258lfl.194.1626265860723; Wed, 14 Jul 2021 05:31:00 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id d24sm155525lfa.243.2021.07.14.05.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 05:31:00 -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 , Abner Chang , Daniel Schaefer Subject: [edk2-platforms PATCH v6 3/4] RISC-V Platforms: add SecureBootVariableLib class resolution Date: Wed, 14 Jul 2021 14:30:44 +0200 Message-Id: <20210714123045.1340940-4-gjb@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210714123045.1340940-1-gjb@semihalf.com> References: <20210714123045.1340940-1-gjb@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The edk2 patch SecurityPkg: Create library for setting Secure Boot variables. removes generic functions from SecureBootConfigDxe and places them into SecureBootVariableLib. This patch adds SecureBootVariableLib mapping for each RICS-V platform which uses SecureBootConfigDxe. Signed-off-by: Grzegorz Bernacki Reviewed-by: Abner Chang Reviewed-by: Daniel Schaefer --- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc | 2 ++ Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc index b91823ceeb..c8efa35029 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc +++ b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc @@ -122,6 +122,8 @@ OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf + SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf !else TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc index 0eafe29880..a5ffa79dd0 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc +++ b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc @@ -122,6 +122,8 @@ OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf + SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf !else TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf -- 2.25.1