summaryrefslogtreecommitdiffstats
path: root/UefiPayloadPkg/UefiPayloadPkg.dsc
diff options
context:
space:
mode:
authorGua Guo <gua.guo@intel.com>2024-01-25 12:56:40 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-01-26 04:59:33 +0000
commit7d7decfa3dc817775322505ae770a27f185465cf (patch)
treebdadc8d063218bd788bdcd43c7774c384806eccc /UefiPayloadPkg/UefiPayloadPkg.dsc
parent9a75b030cf27d2530444e9a2f9f11867f79bf679 (diff)
downloadedk2-7d7decfa3dc817775322505ae770a27f185465cf.tar.gz
edk2-7d7decfa3dc817775322505ae770a27f185465cf.tar.bz2
edk2-7d7decfa3dc817775322505ae770a27f185465cf.zip
UefiPayloadPkg/Crypto: Support external Crypto drivers.
Crypto in serveral case will use old version or latest version, Platform may choose to only update Crypto drivers without updating whole UPL, in this case the Crypto driver will provide by platform payload outside the common UPL binary. Reviewed-by: Chasel Chiu <chasel.chiu@intel.com> Cc: Guo Dong <guo.dong@intel.com> Cc: Sean Rhodes <sean@starlabs.systems> Reviewed-by: James Lu <james.lu@intel.com> Cc: Gua Guo <gua.guo@intel.com> Signed-off-by: Gua Guo <gua.guo@intel.com>
Diffstat (limited to 'UefiPayloadPkg/UefiPayloadPkg.dsc')
-rw-r--r--UefiPayloadPkg/UefiPayloadPkg.dsc10
1 files changed, 9 insertions, 1 deletions
diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayloadPkg.dsc
index 4f195c1e52..2c4013bd9d 100644
--- a/UefiPayloadPkg/UefiPayloadPkg.dsc
+++ b/UefiPayloadPkg/UefiPayloadPkg.dsc
@@ -37,12 +37,18 @@
DEFINE ATA_ENABLE = TRUE
DEFINE SD_ENABLE = TRUE
DEFINE PS2_MOUSE_ENABLE = TRUE
- DEFINE CRYPTO_PROTOCOL_SUPPORT = FALSE
DEFINE SD_MMC_TIMEOUT = 1000000
DEFINE USE_CBMEM_FOR_CONSOLE = FALSE
DEFINE BOOTSPLASH_IMAGE = FALSE
DEFINE NVME_ENABLE = TRUE
DEFINE CAPSULE_SUPPORT = FALSE
+
+ #
+ # Crypto Support
+ #
+ DEFINE CRYPTO_PROTOCOL_SUPPORT = FALSE
+ DEFINE CRYPTO_DRIVER_EXTERNAL_SUPPORT = FALSE
+
#
# Setup Universal Payload
#
@@ -860,12 +866,14 @@
# Misc
#
!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE
+!if $(CRYPTO_DRIVER_EXTERNAL_SUPPORT) == FALSE
CryptoPkg/Driver/CryptoDxe.inf {
<LibraryClasses>
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
}
!endif
+!endif
#------------------------------
# Build the shell