From cd44da292989e41064d643a84f9e09e898058a84 Mon Sep 17 00:00:00 2001 From: Chao Li Date: Tue, 17 Dec 2024 18:05:45 +0800 Subject: [PATCH] OvmfPkg/LoongArch: Enabling some base libraries BaseCryptLib, RngLib, IntrinsicLib and OpensslLib are enabled by default on LoongArch VM, since some APPs or OS require them. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Gerd Hoffmann Signed-off-by: Chao Li --- OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc b/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc index 128fdd9d7e6b..921917d31cd7 100644 --- a/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc +++ b/OvmfPkg/LoongArchVirt/LoongArchVirtQemu.dsc @@ -156,6 +156,18 @@ FileExplorerLib | MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf ImagePropertiesRecordLib | MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf + # + # CryptoPkg libraries needed by multiple firmware features + # + IntrinsicLib | CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf +!if $(NETWORK_TLS_ENABLE) == TRUE + OpensslLib | CryptoPkg/Library/OpensslLib/OpensslLib.inf +!else + OpensslLib | CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf +!endif + BaseCryptLib | CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf + RngLib | MdeModulePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf + !if $(HTTP_BOOT_ENABLE) == TRUE HttpLib | MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.inf !endif