From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mx.groups.io with SMTP id smtpd.web12.5201.1625056486848479622 for ; Wed, 30 Jun 2021 05:34:47 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=PkVvPFVG; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.167.45, mailfrom: gjb@semihalf.com) Received: by mail-lf1-f45.google.com with SMTP id a15so4791522lfr.6 for ; Wed, 30 Jun 2021 05:34:46 -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=fUZiE/lSvyrWdcbzgArgWiG68ZKswNSjEHvIPpIpqng=; b=PkVvPFVGpWYNf7Ramorn8s6OtD+Wn2NPSiLzYuSt0bPYSbygnmwtpihOwKD+Dh7H1f TrY5vt+JSk78J4gyi3pL9DiH1ShUnGUHQkd+ZzSW4s5lPeK2eWZGMePR5u/rHwztiikC iNcjbgyxDEJHRH5Xiiw1JAeQAoyhkYn7S8BT6L4w8ZvXSUIuLycqx/6mJcwgRzRnzjym Wa/jFXjQD10/EfunE2GO++0IfLCOWS34RCFAYUWP/clJHRw42JW+v95oGoNe7o8mGALf Kt2WYqgTEk1BMfVe62+BKIbgkqvlwqhk93AvQFjXaaOG7QjsFqLmEiZQfmSplti3UfWG NnIA== 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=fUZiE/lSvyrWdcbzgArgWiG68ZKswNSjEHvIPpIpqng=; b=rqyvojd5Ywilql60o38G+9OxkJJRnkCqAcabTpiEONq1Q6x+W92BJQTsO2QDRJ3tcO m0Fq8ZTTP+GncLUneZrJkFaI12GKeSZEM07ANzlNHdwV/f1beyznIuhhorqujr1QLwNJ uF8zQDAaEpE6fiS+gnt2uXP3hVLi1XliWOl48W8bopw85Mr4DDTLdlB2wpbMsF3QulI4 vZotHTVoRjgjoGIaBywox2bT0/+izYSDuxiwsgVzaIa9egEIIiYvTJD8Odtz7T2Uox94 PHS/Kn35rtL/iSIvdDepDn2icoK7dhffOyrxdzX+uxSh0fjCXQudP1N6ftkYLW0dAdLX 6uMg== X-Gm-Message-State: AOAM531ZbxkjNHVu8FNzvETAkYbwDWfm6gzGopFRUdx1WrrCJm/89t9z XArehedsIY5GSwRGg8a8qDrUO+QSmEGx/ziP X-Google-Smtp-Source: ABdhPJxlNw+Z8x4GD+MUb8rCv7b0TzAoSWT67bzSlv8YYvcFcIz7QoFxR3IfkoalY5Fg6fYixzjWVg== X-Received: by 2002:a19:c506:: with SMTP id w6mr27339408lfe.656.1625056484988; Wed, 30 Jun 2021 05:34:44 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id d29sm1285624lfv.20.2021.06.30.05.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 05:34:44 -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 Subject: [edk2-platforms PATCH v4 11/12] RISC-V Platforms: add SecureBootVariableLib class resolution Date: Wed, 30 Jun 2021 14:34:11 +0200 Message-Id: <20210630123412.996158-12-gjb@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210630123412.996158-1-gjb@semihalf.com> References: <20210630123412.996158-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 --- Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc | 1 + Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc | 1 + 2 files changed, 2 insertions(+) diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc index b91823ceeb..fc5ba2a07f 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc +++ b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc @@ -122,6 +122,7 @@ OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.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..71add8ff9a 100644 --- a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc +++ b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc @@ -122,6 +122,7 @@ OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf !else TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf -- 2.25.1