UefiPayloadPkg: Add FIT support
Provide Fit format for UniversalPayload, developer can use argument "--Fit" to build UniversalPayload.fit Cc: Guo Dong <guo.dong@intel.com> Cc: Sean Rhodes <sean@starlabs.systems> Cc: James Lu <james.lu@intel.com> Cc: Gua Guo <gua.guo@intel.com> Reviewed-by: Gua Guo <gua.guo@intel.com> Signed-off-by: BruceX Wang <brucex.wang@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
d6b05375b4
commit
39f3c26e8c
@@ -30,7 +30,6 @@
|
||||
DEFINE PS2_KEYBOARD_ENABLE = FALSE
|
||||
DEFINE RAM_DISK_ENABLE = FALSE
|
||||
DEFINE SIO_BUS_ENABLE = FALSE
|
||||
DEFINE UNIVERSAL_PAYLOAD = FALSE
|
||||
DEFINE SECURITY_STUB_ENABLE = TRUE
|
||||
DEFINE SMM_SUPPORT = FALSE
|
||||
DEFINE PLATFORM_BOOT_TIMEOUT = 3
|
||||
@@ -44,6 +43,14 @@
|
||||
DEFINE BOOTSPLASH_IMAGE = FALSE
|
||||
DEFINE NVME_ENABLE = TRUE
|
||||
DEFINE CAPSULE_SUPPORT = FALSE
|
||||
#
|
||||
# Setup Universal Payload
|
||||
#
|
||||
# ELF: Build UniversalPayload file as UniversalPayload.elf
|
||||
# FIT: Build UniversalPayload file as UniversalPayload.fit
|
||||
#
|
||||
DEFINE UNIVERSAL_PAYLOAD = FALSE
|
||||
DEFINE UNIVERSAL_PAYLOAD_FORMAT = ELF
|
||||
|
||||
#
|
||||
# NULL: NullMemoryTestDxe
|
||||
@@ -311,7 +318,7 @@
|
||||
VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
|
||||
CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
|
||||
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
||||
|
||||
FdtLib|MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
|
||||
[LibraryClasses.common]
|
||||
!if $(BOOTSPLASH_IMAGE)
|
||||
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
||||
@@ -600,14 +607,26 @@
|
||||
!if "IA32" in "$(ARCH)"
|
||||
[Components.IA32]
|
||||
!if $(UNIVERSAL_PAYLOAD) == TRUE
|
||||
UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
|
||||
!if $(UNIVERSAL_PAYLOAD_FORMAT) == "ELF"
|
||||
UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
|
||||
!elseif $(UNIVERSAL_PAYLOAD_FORMAT) == "FIT"
|
||||
UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.inf
|
||||
!else
|
||||
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
|
||||
!endif
|
||||
!else
|
||||
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
|
||||
!endif
|
||||
!else
|
||||
[Components.X64]
|
||||
!if $(UNIVERSAL_PAYLOAD) == TRUE
|
||||
UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
|
||||
!if $(UNIVERSAL_PAYLOAD_FORMAT) == "ELF"
|
||||
UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
|
||||
!elseif $(UNIVERSAL_PAYLOAD_FORMAT) == "FIT"
|
||||
UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.inf
|
||||
!else
|
||||
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
|
||||
!endif
|
||||
!else
|
||||
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
|
||||
!endif
|
||||
|
Reference in New Issue
Block a user