From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id 0C552D8046F for ; Tue, 3 Sep 2024 18:03:35 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=pAgWFgiLeug94oYmgoGHRqOpchOGinTqv10AjO9VgXk=; c=relaxed/simple; d=groups.io; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240830; t=1725386615; v=1; x=1725645814; b=LlpbQIVQSUBygbDPraspuXyf2Aa4jwmzu3DeLKy+NqrNwBPAOt833XV860wno7l28Vkp9HTh 7sSsX5s9ttrXR624bajorp5NqeXndhy8f+wrtjo3mfH7z4IorvDbCxkP4RrPUnbKSz0szbY2sb5 E2mLvqZcCPRixUpUCQ5NSw9RW9dEz+i7zcm1ppwnYlM/rbLOTQpeazecRoxYDcSOJLdgzLnywyz 03gVI4/hnup4F0i75Op+QjZnh9WOXxhpsU2Zm1W8giGhSIpIlLM/EQGhOQGY3+4s8+utUU98t88 U6iLnzgkXx4yodbaa8CwsfyNxtOjOAPv2vUkNhXQq8/8g== X-Received: by 127.0.0.2 with SMTP id 6U66YY7687511xfTlcnfcNSK; Tue, 03 Sep 2024 11:03:34 -0700 X-Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) by mx.groups.io with SMTP id smtpd.web10.29758.1724959750981350679 for ; Thu, 29 Aug 2024 12:29:11 -0700 X-Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-42809eb7b99so6301055e9.0 for ; Thu, 29 Aug 2024 12:29:10 -0700 (PDT) X-Gm-Message-State: aD7hfbJUch45dXvwZvfeWGEmx7686176AA= X-Google-Smtp-Source: AGHT+IENQfsmzmd7JrFvCzsZaIPVNodSZK66NMdokiJiToKcHt5C7z1mPdwcaSGU0Amy7NLMQX93Mlwf X-Received: from palermo.c.googlers.com ([fda3:e722:ac3:cc00:7b:198d:ac11:8138]) (user=ardb job=sendgmr) by 2002:a05:600c:6543:b0:428:e074:ccb2 with SMTP id 5b1f17b1804b1-42bb37bb71dmr1224975e9.0.1724959749379; Thu, 29 Aug 2024 12:29:09 -0700 (PDT) Date: Thu, 29 Aug 2024 21:28:54 +0200 In-Reply-To: <20240829192854.1414325-1-ardb+git@google.com> Mime-Version: 1.0 References: <20240829192854.1414325-1-ardb+git@google.com> Message-ID: <20240829192854.1414325-3-ardb+git@google.com> Subject: [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto From: "Ard Biesheuvel via groups.io" To: devel@edk2.groups.io Cc: ilias.apalodimas@linaro.org, Ard Biesheuvel Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Tue, 03 Sep 2024 11:03:33 -0700 Resent-From: ardb+git@google.com Reply-To: devel@edk2.groups.io,ardb+git@google.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=LlpbQIVQ; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io From: Ard Biesheuvel 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 --- 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 { 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] -=-=-=-=-=-=-=-=-=-=-=-