* [edk2-devel] [PATCH edk2-platforms 0/2] Platform/StMmRpmb: Drop softfloat dependency
@ 2024-08-29 19:28 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
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Ard Biesheuvel via groups.io @ 2024-08-29 19:28 UTC (permalink / raw)
To: devel; +Cc: ilias.apalodimas, Ard Biesheuvel
From: Ard Biesheuvel <ardb@kernel.org>
Fix StMmRpmb and drop the dependency on softfloat for 32-bit ARM.
Ard Biesheuvel (2):
Platform/StMmRpmb: Fix build
Platform/StMmRpmb: Switch to MbedTls for crypto
Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
--
2.46.0.469.g59c65b2a67-goog
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120475): https://edk2.groups.io/g/devel/message/120475
Mute This Topic: https://groups.io/mt/108250185/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 6+ messages in thread
* [edk2-devel] [PATCH edk2-platforms 1/2] Platform/StMmRpmb: Fix build
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 ` Ard Biesheuvel via groups.io
2024-08-30 9:07 ` Ilias Apalodimas
2024-08-29 19:28 ` [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto Ard Biesheuvel via groups.io
2024-08-30 9:14 ` [edk2-devel] [PATCH edk2-platforms 0/2] Platform/StMmRpmb: Drop softfloat dependency Ard Biesheuvel via groups.io
2 siblings, 1 reply; 6+ messages in thread
From: Ard Biesheuvel via groups.io @ 2024-08-29 19:28 UTC (permalink / raw)
To: devel; +Cc: ilias.apalodimas, Ard Biesheuvel
From: Ard Biesheuvel <ardb@kernel.org>
Add some missing library class resolutions relating to changes in the
core upstream EDK2 repo.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
index 653029c52fdb..54c7a63b4157 100644
--- a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
+++ b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
@@ -41,11 +41,14 @@ [LibraryClasses]
ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
FvLib|StandaloneMmPkg/Library/FvLib/FvLib.inf
HobLib|StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
+ HobPrintLib|MdeModulePkg/Library/HobPrintLib/HobPrintLib.inf
+ ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
+ PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
--
2.46.0.469.g59c65b2a67-goog
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120476): https://edk2.groups.io/g/devel/message/120476
Mute This Topic: https://groups.io/mt/108250186/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [edk2-devel] [PATCH edk2-platforms 1/2] Platform/StMmRpmb: Fix build
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
0 siblings, 0 replies; 6+ messages in thread
From: Ilias Apalodimas @ 2024-08-30 9:07 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: devel, Ard Biesheuvel
Thanks Ard!
On Thu, 29 Aug 2024 at 22:29, Ard Biesheuvel <ardb+git@google.com> wrote:
>
> From: Ard Biesheuvel <ardb@kernel.org>
>
> Add some missing library class resolutions relating to changes in the
> core upstream EDK2 repo.
>
> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
> ---
> Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
> index 653029c52fdb..54c7a63b4157 100644
> --- a/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
> +++ b/Platform/StandaloneMm/PlatformStandaloneMmPkg/PlatformStandaloneMmRpmb.dsc
> @@ -41,11 +41,14 @@ [LibraryClasses]
> ExtractGuidedSectionLib|EmbeddedPkg/Library/PrePiExtractGuidedSectionLib/PrePiExtractGuidedSectionLib.inf
> FvLib|StandaloneMmPkg/Library/FvLib/FvLib.inf
> HobLib|StandaloneMmPkg/Library/StandaloneMmCoreHobLib/StandaloneMmCoreHobLib.inf
> + HobPrintLib|MdeModulePkg/Library/HobPrintLib/HobPrintLib.inf
> + ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
> IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
> NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
> MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
> MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmCoreMemoryAllocationLib/StandaloneMmCoreMemoryAllocationLib.inf
> PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
> + PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
> PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
> PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
> VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
> --
> 2.46.0.469.g59c65b2a67-goog
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120443): https://edk2.groups.io/g/devel/message/120443
Mute This Topic: https://groups.io/mt/108176227/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 6+ messages in thread
* [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto
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-29 19:28 ` Ard Biesheuvel via groups.io
2024-08-30 9:06 ` Ilias Apalodimas
2024-08-30 9:14 ` [edk2-devel] [PATCH edk2-platforms 0/2] Platform/StMmRpmb: Drop softfloat dependency Ard Biesheuvel via groups.io
2 siblings, 1 reply; 6+ messages in thread
From: Ard Biesheuvel via groups.io @ 2024-08-29 19:28 UTC (permalink / raw)
To: devel; +Cc: ilias.apalodimas, Ard Biesheuvel
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]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto
2024-08-29 19:28 ` [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto Ard Biesheuvel via groups.io
@ 2024-08-30 9:06 ` Ilias Apalodimas
0 siblings, 0 replies; 6+ messages in thread
From: Ilias Apalodimas @ 2024-08-30 9:06 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: devel, Ard Biesheuvel
On Thu, 29 Aug 2024 at 22:29, Ard Biesheuvel <ardb+git@google.com> wrote:
>
> 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
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120442): https://edk2.groups.io/g/devel/message/120442
Mute This Topic: https://groups.io/mt/108176226/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [edk2-devel] [PATCH edk2-platforms 0/2] Platform/StMmRpmb: Drop softfloat dependency
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-29 19:28 ` [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto Ard Biesheuvel via groups.io
@ 2024-08-30 9:14 ` Ard Biesheuvel via groups.io
2 siblings, 0 replies; 6+ messages in thread
From: Ard Biesheuvel via groups.io @ 2024-08-30 9:14 UTC (permalink / raw)
To: Ard Biesheuvel; +Cc: devel, ilias.apalodimas
On Thu, 29 Aug 2024 at 21:29, Ard Biesheuvel <ardb+git@google.com> wrote:
>
> From: Ard Biesheuvel <ardb@kernel.org>
>
> Fix StMmRpmb and drop the dependency on softfloat for 32-bit ARM.
>
> Ard Biesheuvel (2):
> Platform/StMmRpmb: Fix build
> Platform/StMmRpmb: Switch to MbedTls for crypto
>
Pushed as 03d3395552c5..bbdf397aabc6
Thanks,
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120444): https://edk2.groups.io/g/devel/message/120444
Mute This Topic: https://groups.io/mt/108176272/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-09-03 18:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [edk2-devel] [PATCH edk2-platforms 2/2] Platform/StMmRpmb: Switch to MbedTls for crypto Ard Biesheuvel via groups.io
2024-08-30 9:06 ` Ilias Apalodimas
2024-08-30 9:14 ` [edk2-devel] [PATCH edk2-platforms 0/2] Platform/StMmRpmb: Drop softfloat dependency Ard Biesheuvel via groups.io
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox