From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) by mx.groups.io with SMTP id smtpd.web10.4759.1625131271630480232 for ; Thu, 01 Jul 2021 02:21:12 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=rFYWfCkN; spf=none, err=SPF record not found (domain: semihalf.com, ip: 209.85.208.169, mailfrom: gjb@semihalf.com) Received: by mail-lj1-f169.google.com with SMTP id k8so7485085lja.4 for ; Thu, 01 Jul 2021 02:21:11 -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=p6FlIQlLMbY0BY7Cs/h0GJQPxG9/Ymlp3Xhg3TmabEE=; b=rFYWfCkNrkPe+FNS7HwJxQ86OqC5q9o2vHOrDjL15g5dadGtmndOsQi6F/t3KvtocX fmesjKiK2c7uDRNrSisrYUMcwhAjVXV8J09BaVXIlwuiVhRDn6OCmF7fMsfmTKdBBon0 jsP+ciGFZSrA4pmGgtRSA6GjrruQhEBOrwDCGF+WBGr62Bc8gfOKjadoX8pYizuoiHit 58SKYqJN4Pv5c7hMPqY+zkeDjHQFBDDd4KkpgW3nJfKrCsfZbJTeqeBz6JZWIc7J4L/1 coIBoZkDDRZ7K0neMJ12S8AGbGheF7sdBPj9N6heIkO2ujNOb9n6JZ79GY0jsi20cYe6 zswg== 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=p6FlIQlLMbY0BY7Cs/h0GJQPxG9/Ymlp3Xhg3TmabEE=; b=gMRO4GOmJvt46k2bKPzJBrqwLR/v1dZNWEkSt2q5ZOOeIMaZnNCDjjQ9VGggPLIwUC QVbWwOgXpPUy88yuzdQ3YGJ/U+AfSFYBAjEO7Znmr7LAxWbx6ehhPZ5JjoUcEPEcUvZj ME9Y8VVVeUUK2a73357JFcRAwr6fmVI9jpjZqB7i0RartaU3pi+JNS0yhKVcoXP2R9Sp yGvKKdkXwDKwy6iuqdqezZFjSXCNUM8Uiz/z09vtBH1ZM9qFDZ0r9cf4Yr76iwtyw2bL DQPwgBaEACSAlF6RhMW2e69U4oM84mCL2g0v3MZJmOhoBJLbOYwvyCb5riiWo8xgDDPS qtaA== X-Gm-Message-State: AOAM530UANOWg5Gf7VA64OwJhLZ9/2JjsCWZWPKDd8r8buEupp0OAtKA klCjqYXcImTgU5zoArQKlILkd6AXWdl9puFB X-Google-Smtp-Source: ABdhPJx0mKDxnevUE9FLTEjeonCLCnc7NzNIGePZ3GsuFBt4kS4c389TzCpt+kwaMsaHfKqzTY7gVg== X-Received: by 2002:a2e:a44d:: with SMTP id v13mr11198748ljn.297.1625131269668; Thu, 01 Jul 2021 02:21:09 -0700 (PDT) Return-Path: Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id g15sm2343205lfr.110.2021.07.01.02.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jul 2021 02:21:09 -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 v5 3/4] RISC-V Platforms: add SecureBootVariableLib class resolution Date: Thu, 1 Jul 2021 11:20:50 +0200 Message-Id: <20210701092051.1057606-4-gjb@semihalf.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20210701092051.1057606-1-gjb@semihalf.com> References: <20210701092051.1057606-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 | 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