From nobody Mon Feb 9 16:19:30 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+77783+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77783+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1626265863; cv=none; d=zohomail.com; s=zohoarc; b=R6r7Ir5Q1i3L1YuEBfcgHSPv/prDOUYh1XXhZQhfox5pUmuI6LVdLBpHHHJrjaXI5QhcR/Z0EDW/xtHAl7Shn8efoO33MQvBEexC7fNP61p1yzUfuPtfF19OLCrQvg1qfA0xfmYq4ZbbovMH2+J9/Uow4MuCRhKv+UnpSaWg5eA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626265863; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=6HYTjyYn/36WnQA6XNaGMOT6YxAL9tfnCHTlqLxn0vU=; b=AQCU3jYp7mPxKAWhlSFJ7ruZbLxE13vBTwrrndF5R5d8O/r9U128uE772/bUjw1D/f6B7q667eX8trdltE+pGUzL1euM5wC2sz5BxKw432cQznPvFB4vRrEk20aX10wnPH0ntRLzsy8eXL+lONRJTSZKjHMab9S+9f6E56Q1z1s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77783+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1626265863818978.2850425341635; Wed, 14 Jul 2021 05:31:03 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id Wmq4YY1788612xHtTjTyEJxM; Wed, 14 Jul 2021 05:31:03 -0700 X-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 X-Received: by mail-lf1-f41.google.com with SMTP id t17so3374121lfq.0 for ; Wed, 14 Jul 2021 05:31:02 -0700 (PDT) X-Gm-Message-State: 8RiY6OAsMy1q5zsQT6zUPOAjx1787277AA= 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) X-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-devel] [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> In-Reply-To: <20210714123045.1340940-1-gjb@semihalf.com> References: <20210714123045.1340940-1-gjb@semihalf.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,gjb@semihalf.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1626265863; bh=448+oEBZX17z7cQF1/PMTqF2Iyy5unFS8q/k5ebGqk4=; h=Cc:Date:From:Reply-To:Subject:To; b=r8SFhhNhh3c6hGfgo1My8Wu2lknVWsXnQ/aZsB0EUPot0nuqHjzGHj9eFmYEZ+suacb kxE3ZDATey6Q2cZfSxpMMJmgFAODj03oKqIzngXK73L6Ng51Hl0QZtVh2B09eTTCexDxE nBvBtzITanEg4rCyDXSwgasScXB0hSNgM5s= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1626265865779100002 Content-Type: text/plain; charset="utf-8" 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/P= latform/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/DxeTpmMeasure= mentLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBo= otVariableLib.inf + SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariablePro= visionLib/SecureBootVariableProvisionLib.inf !else TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurem= entLibNull.inf AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLib= Null.inf diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U5= 40.dsc b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.d= sc 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/DxeTpmMeasure= mentLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBo= otVariableLib.inf + SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariablePro= visionLib/SecureBootVariableProvisionLib.inf !else TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurem= entLibNull.inf AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLib= Null.inf --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#77783): https://edk2.groups.io/g/devel/message/77783 Mute This Topic: https://groups.io/mt/84200243/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-