public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel via groups.io" <ardb+git=google.com@groups.io>
To: devel@edk2.groups.io
Cc: ilias.apalodimas@linaro.org, Ard Biesheuvel <ardb@kernel.org>
Subject: [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto
Date: Thu, 29 Aug 2024 21:28:54 +0200	[thread overview]
Message-ID: <20240829192854.1414325-3-ardb+git@google.com> (raw)
In-Reply-To: <20240829192854.1414325-1-ardb+git@google.com>

From: Ard Biesheuvel <ardb@kernel.org>

MbedTls is much smaller than OpenSSL, and does not require a softfloat
library on 32-bit ARM. So use that instead.

Note that we still need to resolve OpensslLib, given that MbedTlsLib has
a dependency on it (but only for SM3 digital signatures, which are not
used here)

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
 Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
index 54c7a63b4157..c54b235d4ac3 100644
--- a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
+++ b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
@@ -75,16 +75,14 @@ [LibraryClasses]
   #
   NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
 
-[LibraryClasses.ARM]
-  ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
-
 [LibraryClasses.common.MM_STANDALONE]
   HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
   MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
   MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
 
   IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
-  OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
+  MbedTlsLib|CryptoPkg/Library/MbedTlsLib/MbedTlsLib.inf
+  OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf
   PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
   SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
   TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
@@ -151,7 +149,7 @@ [Components.common]
   MdeModulePkg/Universal/Variable/RuntimeDxe/VariableStandaloneMm.inf {
     <LibraryClasses>
       AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
-      BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
+      BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/SmmCryptLib.inf
       DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
       VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
       NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
-- 
2.46.0.469.g59c65b2a67-goog



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120477): https://edk2.groups.io/g/devel/message/120477
Mute This Topic: https://groups.io/mt/108250187/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  parent reply	other threads:[~2024-09-03 18:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-29 19:28 [edk2-devel] [PATCH edk2-platforms 0/2] Platform/StMmRpmb: Drop softfloat dependency Ard Biesheuvel via groups.io
2024-08-29 19:28 ` [edk2-devel] [PATCH edk2-platforms 1/2] Platform/StMmRpmb: Fix build Ard Biesheuvel via groups.io
2024-08-30  9:07   ` Ilias Apalodimas
2024-08-29 19:28 ` Ard Biesheuvel via groups.io [this message]
2024-08-30  9:06   ` [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto Ilias Apalodimas
2024-08-30  9:14 ` [edk2-devel] [PATCH edk2-platforms 0/2] Platform/StMmRpmb: Drop softfloat dependency Ard Biesheuvel via groups.io

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240829192854.1414325-3-ardb+git@google.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox