UefiPayloadPkg: Add library for logging to EC
Make use of the SMFI command interface to forward logs from edk2 to System76 EC. Signed-off-by: Jeremy Soller <jeremy@system76.com> Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Tim Crawford
parent
648620d59d
commit
c418d4eb9e
@@ -37,6 +37,11 @@
|
||||
DEFINE ABOVE_4G_MEMORY = TRUE
|
||||
DEFINE BOOT_MANAGER_ESCAPE = FALSE
|
||||
DEFINE SD_MMC_TIMEOUT = 1000000
|
||||
#
|
||||
# Send logs to System76 EC
|
||||
#
|
||||
DEFINE SYSTEM76_EC_LOGGING = FALSE
|
||||
|
||||
#
|
||||
# SBL: UEFI payload for Slim Bootloader
|
||||
# COREBOOT: UEFI payload for coreboot
|
||||
@@ -232,8 +237,13 @@
|
||||
TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
|
||||
!endif
|
||||
ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
|
||||
!if $(SYSTEM76_EC_LOGGING) == TRUE
|
||||
SerialPortLib|UefiPayloadPkg/Library/System76EcLib/System76EcLib.inf
|
||||
PlatformHookLib|UefiPayloadPkg/Library/System76EcLib/System76EcLib.inf
|
||||
!else
|
||||
SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
|
||||
PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
|
||||
!endif
|
||||
PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
|
||||
IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
|
||||
|
||||
|
Reference in New Issue
Block a user