2019-04-11 17:51:22 +02:00
|
|
|
## @file
|
|
|
|
# Bootloader Payload Package
|
|
|
|
#
|
|
|
|
# Provides drivers and definitions to create uefi payload for bootloaders.
|
|
|
|
#
|
2023-03-01 07:09:51 +01:00
|
|
|
# Copyright (c) 2014 - 2023, Intel Corporation. All rights reserved.<BR>
|
2020-11-09 07:45:17 +01:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
2019-04-11 17:51:22 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Defines Section - statements that will be processed to create a Makefile.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
[Defines]
|
|
|
|
PLATFORM_NAME = UefiPayloadPkg
|
|
|
|
PLATFORM_GUID = F71608AB-D63D-4491-B744-A99998C8CD96
|
|
|
|
PLATFORM_VERSION = 0.1
|
|
|
|
DSC_SPECIFICATION = 0x00010005
|
|
|
|
SUPPORTED_ARCHITECTURES = IA32|X64
|
|
|
|
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
|
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
|
|
OUTPUT_DIRECTORY = Build/UefiPayloadPkgX64
|
|
|
|
FLASH_DEFINITION = UefiPayloadPkg/UefiPayloadPkg.fdf
|
2021-07-12 10:09:34 +02:00
|
|
|
PCD_DYNAMIC_AS_DYNAMICEX = TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
2019-12-18 01:12:17 +01:00
|
|
|
DEFINE PS2_KEYBOARD_ENABLE = FALSE
|
2021-09-18 09:10:29 +02:00
|
|
|
DEFINE RAM_DISK_ENABLE = FALSE
|
|
|
|
DEFINE SIO_BUS_ENABLE = FALSE
|
2021-09-27 03:59:59 +02:00
|
|
|
DEFINE SECURITY_STUB_ENABLE = TRUE
|
2021-09-24 06:54:23 +02:00
|
|
|
DEFINE SMM_SUPPORT = FALSE
|
2022-03-29 19:55:53 +02:00
|
|
|
DEFINE PLATFORM_BOOT_TIMEOUT = 3
|
2022-03-05 11:14:34 +01:00
|
|
|
DEFINE BOOT_MANAGER_ESCAPE = FALSE
|
2022-07-07 18:15:09 +02:00
|
|
|
DEFINE ATA_ENABLE = TRUE
|
|
|
|
DEFINE SD_ENABLE = TRUE
|
|
|
|
DEFINE PS2_MOUSE_ENABLE = TRUE
|
2022-07-22 08:50:09 +02:00
|
|
|
DEFINE CRYPTO_PROTOCOL_SUPPORT = FALSE
|
2022-02-18 15:52:25 +01:00
|
|
|
DEFINE SD_MMC_TIMEOUT = 1000000
|
UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.
The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.
More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.
Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-05-22 20:20:55 +02:00
|
|
|
DEFINE USE_CBMEM_FOR_CONSOLE = FALSE
|
2022-07-10 20:20:40 +02:00
|
|
|
DEFINE BOOTSPLASH_IMAGE = FALSE
|
2022-08-22 15:50:15 +02:00
|
|
|
DEFINE NVME_ENABLE = TRUE
|
2023-06-12 07:59:55 +02:00
|
|
|
DEFINE CAPSULE_SUPPORT = FALSE
|
2023-09-06 03:08:12 +02:00
|
|
|
#
|
|
|
|
# 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
|
2022-07-07 18:15:09 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# NULL: NullMemoryTestDxe
|
|
|
|
# GENERIC: GenericMemoryTestDxe
|
|
|
|
#
|
|
|
|
DEFINE MEMORY_TEST = NULL
|
2019-04-11 17:51:22 +02:00
|
|
|
#
|
|
|
|
# SBL: UEFI payload for Slim Bootloader
|
|
|
|
# COREBOOT: UEFI payload for coreboot
|
|
|
|
#
|
2021-09-24 06:54:23 +02:00
|
|
|
DEFINE BOOTLOADER = SBL
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# CPU options
|
|
|
|
#
|
2023-03-14 10:08:59 +01:00
|
|
|
DEFINE MAX_LOGICAL_PROCESSORS = 1024
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# PCI options
|
|
|
|
#
|
2020-06-17 10:34:29 +02:00
|
|
|
DEFINE PCIE_BASE_SUPPORT = TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Serial port set up
|
|
|
|
#
|
|
|
|
DEFINE BAUD_RATE = 115200
|
|
|
|
DEFINE SERIAL_CLOCK_RATE = 1843200
|
|
|
|
DEFINE SERIAL_LINE_CONTROL = 3 # 8-bits, no parity
|
|
|
|
DEFINE SERIAL_HARDWARE_FLOW_CONTROL = FALSE
|
|
|
|
DEFINE SERIAL_DETECT_CABLE = FALSE
|
|
|
|
DEFINE SERIAL_FIFO_CONTROL = 7 # Enable FIFO
|
|
|
|
DEFINE UART_DEFAULT_BAUD_RATE = $(BAUD_RATE)
|
|
|
|
DEFINE UART_DEFAULT_DATA_BITS = 8
|
|
|
|
DEFINE UART_DEFAULT_PARITY = 1
|
|
|
|
DEFINE UART_DEFAULT_STOP_BITS = 1
|
|
|
|
DEFINE DEFAULT_TERMINAL_TYPE = 0
|
|
|
|
|
2020-07-11 02:12:56 +02:00
|
|
|
# Enabling the serial terminal will slow down the boot menu redering!
|
|
|
|
DEFINE DISABLE_SERIAL_TERMINAL = FALSE
|
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
#
|
|
|
|
# typedef struct {
|
|
|
|
# UINT16 VendorId; ///< Vendor ID to match the PCI device. The value 0xFFFF terminates the list of entries.
|
|
|
|
# UINT16 DeviceId; ///< Device ID to match the PCI device
|
|
|
|
# UINT32 ClockRate; ///< UART clock rate. Set to 0 for default clock rate of 1843200 Hz
|
|
|
|
# UINT64 Offset; ///< The byte offset into to the BAR
|
|
|
|
# UINT8 BarIndex; ///< Which BAR to get the UART base address
|
|
|
|
# UINT8 RegisterStride; ///< UART register stride in bytes. Set to 0 for default register stride of 1 byte.
|
|
|
|
# UINT16 ReceiveFifoDepth; ///< UART receive FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
|
|
|
|
# UINT16 TransmitFifoDepth; ///< UART transmit FIFO depth in bytes. Set to 0 for a default FIFO depth of 16 bytes.
|
|
|
|
# UINT8 Reserved[2];
|
|
|
|
# } PCI_SERIAL_PARAMETER;
|
|
|
|
#
|
|
|
|
# Vendor FFFF Device 0000 Prog Interface 1, BAR #0, Offset 0, Stride = 1, Clock 1843200 (0x1c2000)
|
|
|
|
#
|
|
|
|
# [Vendor] [Device] [----ClockRate---] [------------Offset-----------] [Bar] [Stride] [RxFifo] [TxFifo] [Rsvd] [Vendor]
|
|
|
|
DEFINE PCI_SERIAL_PARAMETERS = {0xff,0xff, 0x00,0x00, 0x0,0x20,0x1c,0x00, 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, 0x00, 0x01, 0x0,0x0, 0x0,0x0, 0x0,0x0, 0xff,0xff}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Shell options: [BUILD_SHELL, MIN_BIN, NONE, UEFI_BIN]
|
|
|
|
#
|
|
|
|
DEFINE SHELL_TYPE = BUILD_SHELL
|
|
|
|
|
2021-09-24 06:54:23 +02:00
|
|
|
#
|
|
|
|
# EMU: UEFI payload with EMU variable
|
|
|
|
# SPI: UEFI payload with SPI NV variable support
|
|
|
|
# NONE: UEFI payload with no variable modules
|
|
|
|
#
|
|
|
|
DEFINE VARIABLE_SUPPORT = EMU
|
|
|
|
|
2021-06-17 04:09:34 +02:00
|
|
|
DEFINE DISABLE_RESET_SYSTEM = FALSE
|
2021-09-09 12:12:46 +02:00
|
|
|
DEFINE NETWORK_DRIVER_ENABLE = FALSE
|
2021-06-17 04:09:34 +02:00
|
|
|
|
2021-08-06 04:15:47 +02:00
|
|
|
# Dfine the maximum size of the capsule image without a reset flag that the platform can support.
|
|
|
|
DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000
|
|
|
|
|
|
|
|
# Define RTC related register.
|
|
|
|
DEFINE RTC_INDEX_REGISTER = 0x70
|
|
|
|
DEFINE RTC_TARGET_REGISTER = 0x71
|
|
|
|
|
2021-08-06 04:40:24 +02:00
|
|
|
DEFINE SERIAL_DRIVER_ENABLE = TRUE
|
2021-11-24 10:15:09 +01:00
|
|
|
DEFINE PERFORMANCE_MEASUREMENT_ENABLE = FALSE
|
2021-08-06 04:40:24 +02:00
|
|
|
|
2022-01-19 10:16:46 +01:00
|
|
|
# For recent X86 CPU, 0x15 CPUID instruction will return Time Stamp Counter Frequence.
|
|
|
|
# This is how BaseCpuTimerLib works, and a recommended way to get Frequence, so set the default value as TRUE.
|
|
|
|
# Note: for emulation platform such as QEMU, this may not work and should set it as FALSE
|
|
|
|
DEFINE CPU_TIMER_LIB_ENABLE = TRUE
|
2022-01-14 07:15:18 +01:00
|
|
|
|
2022-09-07 09:12:25 +02:00
|
|
|
DEFINE MULTIPLE_DEBUG_PORT_SUPPORT = FALSE
|
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
[BuildOptions]
|
|
|
|
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|
UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.
The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.
More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.
Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-05-22 20:20:55 +02:00
|
|
|
!if $(USE_CBMEM_FOR_CONSOLE) == FALSE
|
2019-04-11 17:51:22 +02:00
|
|
|
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
|
|
|
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
|
|
|
MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.
The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.
More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.
Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-05-22 20:20:55 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
2020-09-13 01:31:14 +02:00
|
|
|
[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
|
|
|
|
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
|
|
|
XCODE:*_*_*_DLINK_FLAGS = -seg1addr 0x1000 -segalign 0x1000
|
|
|
|
XCODE:*_*_*_MTOC_FLAGS = -align 0x1000
|
|
|
|
CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096
|
|
|
|
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# SKU Identification section - list of all SKU IDs supported by this Platform.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
[SkuIds]
|
|
|
|
0|DEFAULT
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Library Class section - list of all Library Classes needed by this Platform.
|
|
|
|
#
|
|
|
|
################################################################################
|
2021-03-12 06:36:35 +01:00
|
|
|
|
|
|
|
!include MdePkg/MdeLibs.dsc.inc
|
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
[LibraryClasses]
|
|
|
|
#
|
|
|
|
# Entry point
|
|
|
|
#
|
|
|
|
DxeCoreEntryPoint|MdePkg/Library/DxeCoreEntryPoint/DxeCoreEntryPoint.inf
|
|
|
|
UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
|
|
|
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
|
|
|
|
|
|
|
|
#
|
|
|
|
# Basic
|
|
|
|
#
|
|
|
|
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
|
|
|
BaseMemoryLib|MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
|
|
|
|
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
|
|
|
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
|
|
|
CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
|
|
|
|
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
2020-06-17 10:34:29 +02:00
|
|
|
!if $(PCIE_BASE_SUPPORT) == FALSE
|
2019-04-11 17:51:22 +02:00
|
|
|
PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
|
|
|
|
PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
|
|
|
|
!else
|
|
|
|
PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
|
|
|
|
PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
|
|
|
|
!endif
|
2020-06-17 10:34:29 +02:00
|
|
|
PciSegmentLib|MdePkg/Library/PciSegmentLibSegmentInfo/BasePciSegmentLibSegmentInfo.inf
|
|
|
|
PciSegmentInfoLib|UefiPayloadPkg/Library/PciSegmentInfoLibAcpiBoardInfo/PciSegmentInfoLibAcpiBoardInfo.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
|
|
|
|
PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
|
|
|
CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
|
2020-12-03 16:43:47 +01:00
|
|
|
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
UefiPayloadPkg: Add HobLib for UniversalPayload
For payload entry, use PayloadEntryHobLib as HobLib and payload entry
should initialize hob base.
For DxeCore, use new added DxeHobLib as HobLib, and DxeCore will
initialize hob base.
For Dxe Driver, use new added DxeHobLib as HobLib, and use DxeHobListLib
to initialize hob base.
Adding a new library DxeHobLib + DxeHobListLib instead of using the
DxeHobLib.inf in MdePkg is because the constructor needed be separated
from DxeHobLib.
If not, when building UefiPayloadPkg, the dependency chain is as below:
DebugLib -> SerialPortLib -> PlatformHookLib -> HobLib -> DebugLib
Each library has a constructor, and this becomes a constructor circle.
To break the circle, separate the constructor from the HobLib as a new
DxeHobListLib, which won't depend on DebugLib.
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Signed-off-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2021-05-07 07:34:20 +02:00
|
|
|
DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf
|
2022-07-22 08:50:09 +02:00
|
|
|
!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE
|
2022-07-06 12:21:40 +02:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
|
|
|
|
TlsLib|CryptoPkg/Library/BaseCryptLibOnProtocolPpi/DxeCryptLib.inf
|
2022-07-22 08:50:09 +02:00
|
|
|
!else
|
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
|
|
|
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
|
|
|
!endif
|
2021-09-09 12:12:46 +02:00
|
|
|
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
|
|
|
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
|
|
|
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
UefiPayloadPkg: Add HobLib for UniversalPayload
For payload entry, use PayloadEntryHobLib as HobLib and payload entry
should initialize hob base.
For DxeCore, use new added DxeHobLib as HobLib, and DxeCore will
initialize hob base.
For Dxe Driver, use new added DxeHobLib as HobLib, and use DxeHobListLib
to initialize hob base.
Adding a new library DxeHobLib + DxeHobListLib instead of using the
DxeHobLib.inf in MdePkg is because the constructor needed be separated
from DxeHobLib.
If not, when building UefiPayloadPkg, the dependency chain is as below:
DebugLib -> SerialPortLib -> PlatformHookLib -> HobLib -> DebugLib
Each library has a constructor, and this becomes a constructor circle.
To break the circle, separate the constructor from the HobLib as a new
DxeHobListLib, which won't depend on DebugLib.
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Signed-off-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2021-05-07 07:34:20 +02:00
|
|
|
HobLib|UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# UEFI & PI
|
|
|
|
#
|
|
|
|
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
|
|
|
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
|
|
|
UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
|
|
|
|
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
|
|
|
UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
|
|
|
|
HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
|
|
|
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
|
|
|
UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
|
|
|
|
DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
|
|
|
|
DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
|
|
|
|
SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generic Modules
|
|
|
|
#
|
|
|
|
UefiUsbLib|MdePkg/Library/UefiUsbLib/UefiUsbLib.inf
|
|
|
|
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
|
|
|
|
OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
|
2023-06-12 07:59:55 +02:00
|
|
|
!if $(CAPSULE_SUPPORT) == TRUE
|
2022-08-25 04:32:46 +02:00
|
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf
|
|
|
|
BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
|
2023-06-12 07:59:55 +02:00
|
|
|
!else
|
|
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
|
|
|
|
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
|
2022-07-10 20:20:40 +02:00
|
|
|
BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
|
|
|
|
FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
|
|
|
|
|
|
|
|
#
|
|
|
|
# CPU
|
|
|
|
#
|
|
|
|
MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
|
|
|
|
LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
|
2021-04-02 07:34:56 +02:00
|
|
|
MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
|
2023-05-10 07:47:56 +02:00
|
|
|
CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Platform
|
|
|
|
#
|
2022-01-19 10:16:46 +01:00
|
|
|
!if $(CPU_TIMER_LIB_ENABLE) == TRUE && $(UNIVERSAL_PAYLOAD) == TRUE
|
2021-11-24 10:15:09 +01:00
|
|
|
TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
|
|
|
|
!else
|
2019-04-11 17:51:22 +02:00
|
|
|
TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
|
UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.
The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.
More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.
Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-05-22 20:20:55 +02:00
|
|
|
!if $(USE_CBMEM_FOR_CONSOLE) == TRUE
|
|
|
|
SerialPortLib|UefiPayloadPkg/Library/CbSerialPortLib/CbSerialPortLib.inf
|
|
|
|
PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
|
|
|
|
!else
|
2023-04-26 14:36:56 +02:00
|
|
|
!if $(MULTIPLE_DEBUG_PORT_SUPPORT) == TRUE
|
|
|
|
SerialPortLib|UefiPayloadPkg/Library/BaseSerialPortLibHob/DxeBaseSerialPortLibHob.inf
|
|
|
|
!else
|
|
|
|
SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
|
UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.
The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.
More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.
Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-05-22 20:20:55 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
|
|
|
|
IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
|
|
|
|
|
|
|
|
#
|
|
|
|
# Misc
|
|
|
|
#
|
2022-03-31 13:56:08 +02:00
|
|
|
DebugPrintErrorLevelLib|UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibHob.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
|
2023-11-03 16:29:42 +01:00
|
|
|
ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
!if $(SOURCE_DEBUG_ENABLE) == TRUE
|
|
|
|
PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf
|
|
|
|
DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf
|
|
|
|
!else
|
|
|
|
PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
|
|
|
|
DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
|
|
|
|
!endif
|
|
|
|
PlatformSupportLib|UefiPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf
|
2021-06-16 16:52:23 +02:00
|
|
|
!if $(UNIVERSAL_PAYLOAD) == FALSE
|
|
|
|
!if $(BOOTLOADER) == "COREBOOT"
|
|
|
|
BlParseLib|UefiPayloadPkg/Library/CbParseLib/CbParseLib.inf
|
|
|
|
!else
|
|
|
|
BlParseLib|UefiPayloadPkg/Library/SblParseLib/SblParseLib.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
!endif
|
|
|
|
|
2022-03-24 03:04:42 +01:00
|
|
|
DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
|
|
|
|
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
|
|
|
AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
|
2021-09-24 06:54:23 +02:00
|
|
|
!if $(VARIABLE_SUPPORT) == "EMU"
|
2019-04-11 17:51:22 +02:00
|
|
|
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
2021-09-24 06:54:23 +02:00
|
|
|
!elseif $(VARIABLE_SUPPORT) == "SPI"
|
|
|
|
PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
|
|
|
|
TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
|
|
|
S3BootScriptLib|MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
|
|
|
|
MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
|
2020-11-09 07:45:17 +01:00
|
|
|
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
|
|
|
|
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
|
2022-04-08 22:08:31 +02:00
|
|
|
VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
|
2022-11-07 07:30:26 +01:00
|
|
|
CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
|
2022-03-24 03:04:42 +01:00
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
2023-09-06 03:08:12 +02:00
|
|
|
FdtLib|MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
|
2022-07-10 20:27:46 +02:00
|
|
|
[LibraryClasses.common]
|
|
|
|
!if $(BOOTSPLASH_IMAGE)
|
|
|
|
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
|
|
|
BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
|
|
|
|
!endif
|
|
|
|
|
2020-09-13 01:31:14 +02:00
|
|
|
[LibraryClasses.common.SEC]
|
UefiPayloadPkg: Add HobLib for UniversalPayload
For payload entry, use PayloadEntryHobLib as HobLib and payload entry
should initialize hob base.
For DxeCore, use new added DxeHobLib as HobLib, and DxeCore will
initialize hob base.
For Dxe Driver, use new added DxeHobLib as HobLib, and use DxeHobListLib
to initialize hob base.
Adding a new library DxeHobLib + DxeHobListLib instead of using the
DxeHobLib.inf in MdePkg is because the constructor needed be separated
from DxeHobLib.
If not, when building UefiPayloadPkg, the dependency chain is as below:
DebugLib -> SerialPortLib -> PlatformHookLib -> HobLib -> DebugLib
Each library has a constructor, and this becomes a constructor circle.
To break the circle, separate the constructor from the HobLib as a new
DxeHobListLib, which won't depend on DebugLib.
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Signed-off-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2021-05-07 07:34:20 +02:00
|
|
|
HobLib|UefiPayloadPkg/Library/PayloadEntryHobLib/HobLib.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
UefiPayloadPkg: Add HobLib for UniversalPayload
For payload entry, use PayloadEntryHobLib as HobLib and payload entry
should initialize hob base.
For DxeCore, use new added DxeHobLib as HobLib, and DxeCore will
initialize hob base.
For Dxe Driver, use new added DxeHobLib as HobLib, and use DxeHobListLib
to initialize hob base.
Adding a new library DxeHobLib + DxeHobListLib instead of using the
DxeHobLib.inf in MdePkg is because the constructor needed be separated
from DxeHobLib.
If not, when building UefiPayloadPkg, the dependency chain is as below:
DebugLib -> SerialPortLib -> PlatformHookLib -> HobLib -> DebugLib
Each library has a constructor, and this becomes a constructor circle.
To break the circle, separate the constructor from the HobLib as a new
DxeHobListLib, which won't depend on DebugLib.
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Signed-off-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2021-05-07 07:34:20 +02:00
|
|
|
DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
|
2022-03-24 03:04:42 +01:00
|
|
|
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
2023-04-26 14:36:56 +02:00
|
|
|
!if $(MULTIPLE_DEBUG_PORT_SUPPORT) == TRUE
|
|
|
|
SerialPortLib|UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibHob.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_CORE]
|
UefiPayloadPkg: Add HobLib for UniversalPayload
For payload entry, use PayloadEntryHobLib as HobLib and payload entry
should initialize hob base.
For DxeCore, use new added DxeHobLib as HobLib, and DxeCore will
initialize hob base.
For Dxe Driver, use new added DxeHobLib as HobLib, and use DxeHobListLib
to initialize hob base.
Adding a new library DxeHobLib + DxeHobListLib instead of using the
DxeHobLib.inf in MdePkg is because the constructor needed be separated
from DxeHobLib.
If not, when building UefiPayloadPkg, the dependency chain is as below:
DebugLib -> SerialPortLib -> PlatformHookLib -> HobLib -> DebugLib
Each library has a constructor, and this becomes a constructor circle.
To break the circle, separate the constructor from the HobLib as a new
DxeHobListLib, which won't depend on DebugLib.
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Guo Dong <guo.dong@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Signed-off-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2021-05-07 07:34:20 +02:00
|
|
|
DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLibNull/DxeHobListLibNull.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
|
|
|
HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf
|
|
|
|
MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf
|
|
|
|
ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
|
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
|
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
|
|
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
|
|
|
|
!endif
|
|
|
|
CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_DRIVER]
|
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
|
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
|
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
|
|
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
|
|
|
|
!endif
|
|
|
|
CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
|
|
|
|
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_RUNTIME_DRIVER]
|
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
|
2020-11-09 07:45:17 +01:00
|
|
|
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.UEFI_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
|
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
2021-09-24 06:54:23 +02:00
|
|
|
[LibraryClasses.common.SMM_CORE]
|
|
|
|
!if $(SMM_SUPPORT) == TRUE
|
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
SmmServicesTableLib|MdeModulePkg/Library/PiSmmCoreSmmServicesTableLib/PiSmmCoreSmmServicesTableLib.inf
|
|
|
|
|
|
|
|
MemoryAllocationLib|MdeModulePkg/Library/PiSmmCoreMemoryAllocationLib/PiSmmCoreMemoryAllocationLib.inf
|
|
|
|
SmmCorePlatformHookLib|MdeModulePkg/Library/SmmCorePlatformHookLibNull/SmmCorePlatformHookLibNull.inf
|
|
|
|
SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
|
|
|
|
ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
PerformanceLib|MdeModulePkg/Library/SmmCorePerformanceLib/SmmCorePerformanceLib.inf
|
|
|
|
!endif
|
2021-09-24 06:54:23 +02:00
|
|
|
!endif
|
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_SMM_DRIVER]
|
|
|
|
!if $(SMM_SUPPORT) == TRUE
|
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
|
|
|
|
MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
|
|
|
|
SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
|
|
|
|
SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
|
|
|
|
MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
|
2022-03-24 03:04:42 +01:00
|
|
|
DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
2021-09-24 06:54:23 +02:00
|
|
|
SmmCpuPlatformHookLib|UefiCpuPkg/Library/SmmCpuPlatformHookLibNull/SmmCpuPlatformHookLibNull.inf
|
|
|
|
SmmCpuFeaturesLib|UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
|
|
|
|
CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SmmCpuExceptionHandlerLib.inf
|
|
|
|
ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
|
2022-03-29 09:12:01 +02:00
|
|
|
SmmCpuRendezvousLib|UefiCpuPkg/Library/SmmCpuRendezvousLib/SmmCpuRendezvousLib.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
PerformanceLib|MdeModulePkg/Library/SmmPerformanceLib/SmmPerformanceLib.inf
|
|
|
|
!endif
|
2021-09-24 06:54:23 +02:00
|
|
|
!endif
|
|
|
|
!if $(VARIABLE_SUPPORT) == "SPI"
|
|
|
|
SpiFlashLib|UefiPayloadPkg/Library/SpiFlashLib/SpiFlashLib.inf
|
|
|
|
FlashDeviceLib|UefiPayloadPkg/Library/FlashDeviceLib/FlashDeviceLib.inf
|
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
|
|
|
|
!endif
|
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
[PcdsFeatureFlag]
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
|
2021-06-17 18:39:33 +02:00
|
|
|
## This PCD specified whether ACPI SDT protocol is installed.
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
|
2021-08-06 04:34:10 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE
|
2021-09-24 06:54:23 +02:00
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
[PcdsFixedAtBuild]
|
2022-03-24 03:04:42 +01:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdHardwareErrorRecordLevel|1
|
2019-04-11 17:51:22 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
|
2021-09-24 06:54:23 +02:00
|
|
|
!if $(VARIABLE_SUPPORT) == "EMU"
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |TRUE
|
|
|
|
!else
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable |FALSE
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
|
2020-06-10 04:56:33 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
|
2019-04-11 17:51:22 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
|
|
|
|
|
2023-07-10 10:21:23 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
|
2021-06-10 09:08:13 +02:00
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
|
|
gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
|
|
|
|
!endif
|
2021-09-24 06:54:23 +02:00
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmStackSize|0x4000
|
2021-11-24 10:15:09 +01:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEdkiiFpdtStringRecordEnableOnly| TRUE
|
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1
|
|
|
|
!endif
|
2022-02-18 15:52:25 +01:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSdMmcGenericTimeoutValue|$(SD_MMC_TIMEOUT)
|
2019-04-11 17:51:22 +02:00
|
|
|
|
2022-03-05 11:14:34 +01:00
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdBootManagerEscape|$(BOOT_MANAGER_ESCAPE)
|
2022-07-10 20:20:40 +02:00
|
|
|
|
2022-06-15 12:11:08 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|1800000
|
2022-02-23 23:59:33 +01:00
|
|
|
|
2022-07-22 08:50:09 +02:00
|
|
|
!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE
|
2022-07-06 12:21:40 +02:00
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Pkcs.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Dh.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Random.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Rsa.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha1.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha384.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sha512.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.X509.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.GetContextSize | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.Init | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcEncrypt | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Aes.Services.CbcDecrypt | TRUE
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Sm3.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Hkdf.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Tls.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsSet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
|
|
|
gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY
|
2022-07-22 08:50:09 +02:00
|
|
|
!endif
|
2022-07-06 12:21:40 +02:00
|
|
|
|
2021-09-14 09:39:07 +02:00
|
|
|
[PcdsPatchableInModule.X64]
|
2022-02-08 23:51:55 +01:00
|
|
|
!if $(NETWORK_DRIVER_ENABLE) == TRUE
|
2021-09-14 09:39:07 +02:00
|
|
|
gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE
|
2022-02-08 23:51:55 +01:00
|
|
|
!endif
|
2021-09-14 09:39:07 +02:00
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
[PcdsPatchableInModule.common]
|
2021-06-21 10:23:28 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
|
2019-04-11 17:51:22 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
|
UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.
The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.
More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.
Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-05-22 20:20:55 +02:00
|
|
|
!if $(USE_CBMEM_FOR_CONSOLE) == FALSE
|
|
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
|
|
|
|
!else
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
!else
|
UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.
The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.
More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.
Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-05-22 20:20:55 +02:00
|
|
|
!if $(TARGET) == DEBUG
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x07
|
|
|
|
!else
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x03
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
!endif
|
2021-08-06 04:15:47 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)
|
2019-04-11 17:51:22 +02:00
|
|
|
#
|
|
|
|
# The following parameters are set by Library/PlatformHookLib
|
|
|
|
#
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
|
2020-09-09 00:19:31 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0
|
2019-04-11 17:51:22 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialBaudRate|$(BAUD_RATE)
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterStride|1
|
|
|
|
|
|
|
|
#
|
|
|
|
# Enable these parameters to be set on the command line
|
|
|
|
#
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialClockRate|$(SERIAL_CLOCK_RATE)
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialLineControl|$(SERIAL_LINE_CONTROL)
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|$(SERIAL_HARDWARE_FLOW_CONTROL)
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialDetectCable|$(SERIAL_DETECT_CABLE)
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialFifoControl|$(SERIAL_FIFO_CONTROL)
|
|
|
|
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
|
|
|
|
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
|
2021-08-06 04:34:10 +02:00
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0
|
2021-09-29 05:34:40 +02:00
|
|
|
gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter|0
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
################################################################################
|
|
|
|
#
|
2021-06-02 16:30:08 +02:00
|
|
|
# Pcd DynamicEx Section - list of all EDK II PCD Entries defined by this Platform
|
2019-04-11 17:51:22 +02:00
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-06-02 16:30:08 +02:00
|
|
|
[PcdsDynamicExDefault]
|
2021-08-06 04:24:04 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultBaudRate|$(UART_DEFAULT_BAUD_RATE)
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultDataBits|$(UART_DEFAULT_DATA_BITS)
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultParity|$(UART_DEFAULT_PARITY)
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultStopBits|$(UART_DEFAULT_STOP_BITS)
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdDefaultTerminalType|$(DEFAULT_TERMINAL_TYPE)
|
2022-12-19 12:59:42 +01:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAriSupport|TRUE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMrIovSupport|FALSE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSupport|TRUE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSrIovSystemPageSize|0x1
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds|50000
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuApLoopMode|1
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchAddress|0x0
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuMicrocodePatchRegionSize|0x0
|
UefiPayloadPkg: Add support for logging to CBMEM console
Writes TianoCore debug logs into the CBMEM console ringbuffer, from
where the user can retrieve them with the `cbmem` userspace utility.
The intention is to aid in debugging non-fatal issues even in release
builds, or simply make TianoCore's logs available to those interested.
Consequently, MDEPKG_NDEBUG must be masked. As an in-memory debug
logging library, ASSERTs must be non-fatal to be seen, so they neither
dead-loop nor create a breakpoint. It is assumed that ASSERT() neither
enforces fatal conditions nor security integrity, as release builds do
not call DebugAssert() from the ASSERT macro.
More detailed debug logs are produced with the DEBUG_CODE macro, but
this guards other debug-related code throughout the codebase. To avoid
changing behaviour on release builds, this is only set for debug builds.
Tested on QEMU, dumping the appropriate memory region in the UEFI shell
shows the TianoCore log. An improved revision of the debug library used
in several coreboot-related EDK2 forks, including MrChromebox's.
Previous revisions also tested on an Acer Aspire VN7-572G laptop.
Cc: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>
Signed-off-by: Benjamin Doron <benjamin.doron00@gmail.com>
2022-05-22 20:20:55 +02:00
|
|
|
!if ($(TARGET) == DEBUG || $(USE_CBMEM_FOR_CONSOLE) == TRUE)
|
2021-08-06 04:24:04 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
|
|
|
|
!else
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
|
|
|
|
!endif
|
2021-06-17 18:42:41 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
|
2019-04-11 17:51:22 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
|
2022-03-29 19:55:53 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|$(PLATFORM_BOOT_TIMEOUT)
|
2021-09-24 06:54:23 +02:00
|
|
|
!if $(VARIABLE_SUPPORT) == "SPI"
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize |0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize |0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase |0
|
|
|
|
!endif
|
|
|
|
# Disable SMM S3 script
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
## This PCD defines the video horizontal resolution.
|
|
|
|
# This PCD could be set to 0 then video resolution could be at highest resolution.
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0
|
|
|
|
## This PCD defines the video vertical resolution.
|
|
|
|
# This PCD could be set to 0 then video resolution could be at highest resolution.
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0
|
|
|
|
|
|
|
|
## The PCD is used to specify the video horizontal resolution of text setup.
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
|
|
|
|
## The PCD is used to specify the video vertical resolution of text setup.
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
|
|
|
|
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|31
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|100
|
2020-06-17 10:34:29 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseAddress|0
|
2020-07-22 11:00:29 +02:00
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdPciExpressBaseSize|0
|
2021-06-02 16:30:08 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdGhcbBase|0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdTestKeyUsed|FALSE
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdSevEsIsEnabled|0
|
2021-04-30 07:09:39 +02:00
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
|
2022-12-28 08:57:23 +01:00
|
|
|
gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)
|
|
|
|
gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)
|
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# Components Section - list of all EDK II Modules needed by this Platform.
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-08-20 07:04:29 +02:00
|
|
|
!if "IA32" in "$(ARCH)"
|
2020-09-13 01:31:14 +02:00
|
|
|
[Components.IA32]
|
2021-06-16 16:52:23 +02:00
|
|
|
!if $(UNIVERSAL_PAYLOAD) == TRUE
|
2023-09-06 03:08:12 +02:00
|
|
|
!if $(UNIVERSAL_PAYLOAD_FORMAT) == "ELF"
|
|
|
|
UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
|
|
|
|
!elseif $(UNIVERSAL_PAYLOAD_FORMAT) == "FIT"
|
|
|
|
UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.inf
|
|
|
|
!else
|
|
|
|
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
|
|
|
|
!endif
|
2021-06-16 16:52:23 +02:00
|
|
|
!else
|
2020-09-13 01:31:14 +02:00
|
|
|
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
|
2021-06-16 16:52:23 +02:00
|
|
|
!endif
|
2020-09-13 01:31:14 +02:00
|
|
|
!else
|
|
|
|
[Components.X64]
|
2021-06-16 16:52:23 +02:00
|
|
|
!if $(UNIVERSAL_PAYLOAD) == TRUE
|
2023-09-06 03:08:12 +02:00
|
|
|
!if $(UNIVERSAL_PAYLOAD_FORMAT) == "ELF"
|
|
|
|
UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf
|
|
|
|
!elseif $(UNIVERSAL_PAYLOAD_FORMAT) == "FIT"
|
|
|
|
UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.inf
|
|
|
|
!else
|
|
|
|
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
|
|
|
|
!endif
|
2021-06-16 16:52:23 +02:00
|
|
|
!else
|
2020-09-13 01:31:14 +02:00
|
|
|
UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf
|
2021-06-16 16:52:23 +02:00
|
|
|
!endif
|
2020-09-13 01:31:14 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
2021-09-09 12:12:46 +02:00
|
|
|
#
|
|
|
|
# UEFI network modules
|
|
|
|
#
|
|
|
|
!if $(NETWORK_DRIVER_ENABLE) == TRUE
|
2022-02-08 23:51:55 +01:00
|
|
|
[Defines]
|
|
|
|
DEFINE PLATFORMX64_ENABLE = TRUE
|
2021-09-09 12:12:46 +02:00
|
|
|
!include NetworkPkg/Network.dsc.inc
|
|
|
|
!endif
|
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
[Components.X64]
|
|
|
|
#
|
|
|
|
# DXE Core
|
|
|
|
#
|
|
|
|
MdeModulePkg/Core/Dxe/DxeMain.inf {
|
|
|
|
<LibraryClasses>
|
2022-09-07 09:12:25 +02:00
|
|
|
!if $(MULTIPLE_DEBUG_PORT_SUPPORT) == TRUE
|
|
|
|
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
2023-04-26 14:36:56 +02:00
|
|
|
SerialPortLib|UefiPayloadPkg/Library/BaseSerialPortLibHob/DxeBaseSerialPortLibHob.inf
|
2022-09-07 09:12:25 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Components that produce the architectural protocols
|
|
|
|
#
|
2021-09-27 03:59:59 +02:00
|
|
|
!if $(SECURITY_STUB_ENABLE) == TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
|
2021-09-27 03:59:59 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
UefiCpuPkg/CpuDxe/CpuDxe.inf
|
|
|
|
MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
2022-07-10 20:20:40 +02:00
|
|
|
!if $(BOOTSPLASH_IMAGE)
|
|
|
|
MdeModulePkg/Logo/LogoDxe.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Application/UiApp/UiApp.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
|
|
|
|
NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
|
|
|
|
NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
|
|
|
|
}
|
2023-07-10 10:21:23 +02:00
|
|
|
MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf
|
|
|
|
|
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
|
|
|
|
MdeModulePkg/Universal/Metronome/Metronome.inf
|
|
|
|
MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
|
|
|
|
MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
|
|
|
|
MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
|
|
|
|
MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
|
2021-06-17 04:09:34 +02:00
|
|
|
!if $(DISABLE_RESET_SYSTEM) == FALSE
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
|
2021-06-17 04:09:34 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
|
2021-06-17 04:09:34 +02:00
|
|
|
!if $(EMU_VARIABLE_ENABLE) == TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
2021-06-17 04:09:34 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
#
|
|
|
|
# Following are the DXE drivers
|
|
|
|
#
|
|
|
|
MdeModulePkg/Universal/PCD/Dxe/Pcd.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
|
|
|
}
|
|
|
|
|
|
|
|
MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
|
|
|
|
MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
|
|
|
|
UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
|
|
|
|
MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
|
2022-07-07 18:15:09 +02:00
|
|
|
!if $(MEMORY_TEST) == "GENERIC"
|
|
|
|
MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/GenericMemoryTestDxe.inf
|
|
|
|
!elseif $(MEMORY_TEST) == "NULL"
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
|
2022-07-07 18:15:09 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
|
|
|
MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
|
|
|
MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
2021-09-09 12:11:27 +02:00
|
|
|
MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
|
|
|
|
MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf
|
|
|
|
|
|
|
|
#
|
|
|
|
# SMBIOS Support
|
|
|
|
#
|
|
|
|
MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
|
|
|
|
|
|
|
#
|
|
|
|
# ACPI Support
|
|
|
|
#
|
|
|
|
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
2022-07-10 20:27:46 +02:00
|
|
|
!if $(BOOTSPLASH_IMAGE)
|
|
|
|
MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
|
|
|
MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# PCI Support
|
|
|
|
#
|
|
|
|
MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
|
|
|
|
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
PciHostBridgeLib|UefiPayloadPkg/Library/PciHostBridgeLib/PciHostBridgeLib.inf
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# SCSI/ATA/IDE/DISK Support
|
|
|
|
#
|
|
|
|
MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
|
|
|
|
MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
|
|
|
|
MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
|
|
|
|
FatPkg/EnhancedFatDxe/Fat.inf
|
2022-07-07 18:15:09 +02:00
|
|
|
!if $(ATA_ENABLE) == TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
|
|
|
|
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
2022-07-07 18:15:09 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
|
|
|
MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
|
|
|
MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
2022-08-22 15:50:15 +02:00
|
|
|
!if $(NVME_ENABLE) == TRUE
|
2021-02-12 04:55:47 +01:00
|
|
|
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
|
2022-08-22 15:50:15 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
2021-09-18 09:10:29 +02:00
|
|
|
!if $(RAM_DISK_ENABLE) == TRUE
|
|
|
|
MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
|
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
#
|
|
|
|
# SD/eMMC Support
|
|
|
|
#
|
2022-07-07 18:15:09 +02:00
|
|
|
!if $(SD_ENABLE) == TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
|
|
|
|
MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
|
|
|
|
MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
|
2022-07-07 18:15:09 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Usb Support
|
|
|
|
#
|
|
|
|
MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
|
|
|
|
MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
|
|
|
|
MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
|
|
|
|
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
2021-09-09 12:11:27 +02:00
|
|
|
MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# ISA Support
|
|
|
|
#
|
2021-08-06 04:40:24 +02:00
|
|
|
!if $(SERIAL_DRIVER_ENABLE) == TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
|
2021-08-06 04:40:24 +02:00
|
|
|
!endif
|
2021-09-18 09:10:29 +02:00
|
|
|
!if $(SIO_BUS_ENABLE) == TRUE
|
2019-12-18 01:12:17 +01:00
|
|
|
OvmfPkg/SioBusDxe/SioBusDxe.inf
|
2021-09-18 09:10:29 +02:00
|
|
|
!endif
|
|
|
|
!if $(PS2_KEYBOARD_ENABLE) == TRUE
|
2019-12-18 01:12:17 +01:00
|
|
|
MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
|
|
|
|
!endif
|
2022-07-07 18:15:09 +02:00
|
|
|
!if $(PS2_MOUSE_ENABLE) == TRUE
|
2021-09-09 12:11:27 +02:00
|
|
|
MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
|
2022-07-07 18:15:09 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Console Support
|
|
|
|
#
|
|
|
|
MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
|
|
|
MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
|
|
|
MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
2020-07-13 17:49:56 +02:00
|
|
|
!if $(DISABLE_SERIAL_TERMINAL) == FALSE
|
2019-04-11 17:51:22 +02:00
|
|
|
MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
2020-07-13 17:49:56 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
UefiPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
|
|
|
|
!endif
|
2021-09-24 06:54:23 +02:00
|
|
|
#
|
|
|
|
# SMM Support
|
|
|
|
#
|
|
|
|
!if $(SMM_SUPPORT) == TRUE
|
|
|
|
UefiPayloadPkg/SmmAccessDxe/SmmAccessDxe.inf
|
|
|
|
UefiPayloadPkg/SmmControlRuntimeDxe/SmmControlRuntimeDxe.inf
|
|
|
|
UefiPayloadPkg/BlSupportSmm/BlSupportSmm.inf
|
|
|
|
MdeModulePkg/Core/PiSmmCore/PiSmmIpl.inf
|
|
|
|
MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf
|
|
|
|
UefiPayloadPkg/PchSmiDispatchSmm/PchSmiDispatchSmm.inf
|
|
|
|
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
|
|
|
|
UefiCpuPkg/CpuIo2Smm/CpuIo2Smm.inf
|
2021-11-24 10:15:09 +01:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
|
|
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableSmm/FirmwarePerformanceSmm.inf
|
|
|
|
!endif
|
2021-09-24 06:54:23 +02:00
|
|
|
!endif
|
|
|
|
|
|
|
|
!if $(VARIABLE_SUPPORT) == "EMU"
|
|
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
|
|
|
|
!elseif $(VARIABLE_SUPPORT) == "SPI"
|
|
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
|
|
|
|
NULL|MdeModulePkg/Library/VarCheckHiiLib/VarCheckHiiLib.inf
|
|
|
|
NULL|MdeModulePkg/Library/VarCheckPcdLib/VarCheckPcdLib.inf
|
|
|
|
NULL|MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLib.inf
|
|
|
|
}
|
|
|
|
|
|
|
|
UefiPayloadPkg/FvbRuntimeDxe/FvbSmm.inf
|
|
|
|
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
|
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmmRuntimeDxe.inf
|
|
|
|
!endif
|
|
|
|
|
2022-07-06 12:21:40 +02:00
|
|
|
#
|
|
|
|
# Misc
|
|
|
|
#
|
2022-07-22 08:50:09 +02:00
|
|
|
!if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE
|
2022-07-06 12:21:40 +02:00
|
|
|
CryptoPkg/Driver/CryptoDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
|
|
|
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
|
|
|
}
|
2022-07-22 08:50:09 +02:00
|
|
|
!endif
|
2022-07-06 12:21:40 +02:00
|
|
|
|
2019-04-11 17:51:22 +02:00
|
|
|
#------------------------------
|
|
|
|
# Build the shell
|
|
|
|
#------------------------------
|
|
|
|
|
|
|
|
!if $(SHELL_TYPE) == BUILD_SHELL
|
|
|
|
|
|
|
|
#
|
|
|
|
# Shell Lib
|
|
|
|
#
|
|
|
|
[LibraryClasses]
|
|
|
|
BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
|
|
|
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
|
|
|
FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
|
|
|
|
ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
|
2019-05-28 13:33:43 +02:00
|
|
|
!include NetworkPkg/NetworkLibs.dsc.inc
|
2019-04-11 17:51:22 +02:00
|
|
|
|
|
|
|
[Components.X64]
|
|
|
|
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
|
|
|
|
<PcdsFixedAtBuild>
|
|
|
|
## This flag is used to control initialization of the shell library
|
|
|
|
# This should be FALSE for compiling the dynamic command.
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
|
|
}
|
2022-07-07 18:15:09 +02:00
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE) == TRUE
|
2019-04-11 17:51:22 +02:00
|
|
|
ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
|
|
|
|
<PcdsFixedAtBuild>
|
|
|
|
## This flag is used to control initialization of the shell library
|
|
|
|
# This should be FALSE for compiling the dynamic command.
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
|
|
}
|
2022-07-07 18:15:09 +02:00
|
|
|
!endif
|
2019-04-11 17:51:22 +02:00
|
|
|
ShellPkg/Application/Shell/Shell.inf {
|
|
|
|
<PcdsFixedAtBuild>
|
|
|
|
## This flag is used to control initialization of the shell library
|
|
|
|
# This should be FALSE for compiling the shell application itself only.
|
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
|
|
|
|
|
|
#------------------------------
|
|
|
|
# Basic commands
|
|
|
|
#------------------------------
|
|
|
|
|
|
|
|
<LibraryClasses>
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
|
|
|
|
NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
|
|
|
|
|
|
|
|
#------------------------------
|
|
|
|
# Networking commands
|
|
|
|
#------------------------------
|
|
|
|
|
|
|
|
<LibraryClasses>
|
|
|
|
NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
|
|
|
|
|
|
|
#------------------------------
|
|
|
|
# Support libraries
|
|
|
|
#------------------------------
|
|
|
|
|
|
|
|
<LibraryClasses>
|
|
|
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
|
|
|
HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
|
2021-01-13 09:54:48 +01:00
|
|
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
2019-04-11 17:51:22 +02:00
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
|
|
|
ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
|
|
|
|
SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
|
|
|
|
}
|
|
|
|
|
|
|
|
!endif
|