mirror of
https://github.com/Dasharo/edk2.git
synced 2026-06-13 10:16:24 -07:00
eedcdea610
Modern AMD platforms cannot initialize graphics in 32bit mode (using PEI GOP or VBIOS), because of UMA memory allocation above 4G by default. One would have to force the recovery path so that UMA is allocated below 4G. To allow running AMD x64 GOP, some modifications are needed. Firstly, the GOP still needs VBIOS, so PCI IO must provide it from FFS. Then, the GOP driver must also be included in the FFS, so that DXE dispatcher picks it up and runs it. TEST=Successfully initialize integrated graphics on MSI PRO B850-P WIFI. Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
1123 lines
49 KiB
Plaintext
1123 lines
49 KiB
Plaintext
## @file
|
|
# Bootloader Payload Package
|
|
#
|
|
# Provides drivers and definitions to create uefi payload for bootloaders.
|
|
#
|
|
# Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
################################################################################
|
|
#
|
|
# Defines Section - statements that will be processed to create a Makefile.
|
|
#
|
|
################################################################################
|
|
[Defines]
|
|
PLATFORM_NAME = DasharoPayloadPkg
|
|
PLATFORM_GUID = 9EE9C760-A126-41E6-8D35-42FFF29C8DC8
|
|
PLATFORM_VERSION = 0.1
|
|
DSC_SPECIFICATION = 0x00010005
|
|
SUPPORTED_ARCHITECTURES = IA32|X64
|
|
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
OUTPUT_DIRECTORY = Build/DasharoPayloadPkgX64
|
|
FLASH_DEFINITION = DasharoPayloadPkg/DasharoPayloadPkg.fdf
|
|
|
|
DEFINE SOURCE_DEBUG_ENABLE = FALSE
|
|
DEFINE PS2_KEYBOARD_ENABLE = FALSE
|
|
|
|
#
|
|
# SBL: UEFI payload for Slim Bootloader
|
|
# COREBOOT: UEFI payload for coreboot
|
|
#
|
|
DEFINE BOOTLOADER = SBL
|
|
|
|
#
|
|
# CPU options
|
|
#
|
|
DEFINE MAX_LOGICAL_PROCESSORS = 64
|
|
|
|
#
|
|
# 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 SERIAL_EXTENDED_TX_FIFO_SIZE = 16
|
|
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 = 4
|
|
|
|
DEFINE FTDI_USB_UART_SUPPORT = FALSE
|
|
DEFINE UART_ON_SUPERIO = FALSE
|
|
|
|
DEFINE BOOT_MENU_KEY = 0x0016
|
|
DEFINE SETUP_MENU_KEY = 0x0017
|
|
|
|
DEFINE PLATFORM_BOOT_TIMEOUT = 5
|
|
|
|
#
|
|
# 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
|
|
|
|
# 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
|
|
DEFINE QEMU_PLATFORM = FALSE
|
|
#
|
|
# Security options:
|
|
#
|
|
DEFINE SECURE_BOOT_ENABLE = FALSE
|
|
DEFINE SECURE_BOOT_DEFAULT_ENABLE = TRUE
|
|
DEFINE TPM_ENABLE = TRUE
|
|
DEFINE SATA_PASSWORD_ENABLE = FALSE
|
|
DEFINE OPAL_PASSWORD_ENABLE = FALSE
|
|
DEFINE LOAD_OPTION_ROMS = TRUE
|
|
DEFINE DASHARO_SYSTEM_FEATURES_ENABLE = FALSE
|
|
DEFINE SETUP_PASSWORD_ENABLE = FALSE
|
|
DEFINE USE_CBMEM_FOR_CONSOLE = FALSE
|
|
DEFINE SYSTEM76_EC_LOGGING = FALSE
|
|
DEFINE ABOVE_4G_MEMORY = TRUE
|
|
DEFINE IOMMU_ENABLE = FALSE
|
|
DEFINE SD_MMC_TIMEOUT = 1000000
|
|
DEFINE BATTERY_CHECK = FALSE
|
|
DEFINE PERFORMANCE_MEASUREMENT_ENABLE = FALSE
|
|
DEFINE RAM_DISK_ENABLE = FALSE
|
|
DEFINE APU_CONFIG_ENABLE = FALSE
|
|
DEFINE USE_PLATFORM_GOP = FALSE
|
|
DEFINE USE_AMD_PLATFORM_GOP = FALSE
|
|
DEFINE USE_LAPTOP_LID_LIB = FALSE
|
|
DEFINE USE_UEFIVAR_BACKED_TPM_PPI = FALSE
|
|
DEFINE CAPSULE_SUPPORT = FALSE
|
|
DEFINE CAPSULE_MAIN_FW_GUID =
|
|
DEFINE GRAPHICAL_CAPSULE_PROGRESS = TRUE
|
|
|
|
DEFINE AMD_GOP_DRIVER_GUID = 2C4CB22B-E0F8-4457-A238-576A3D0201D6
|
|
DEFINE AMD_GOP_VBIOS_GUID = C38A9A34-2005-496E-94F2-8E1020B8FC6E
|
|
|
|
#
|
|
# Network definition
|
|
#
|
|
DEFINE NETWORK_PXE_BOOT = FALSE
|
|
DEFINE NETWORK_ENABLE = FALSE
|
|
DEFINE NETWORK_TLS_ENABLE = FALSE
|
|
DEFINE NETWORK_IP6_ENABLE = FALSE
|
|
DEFINE NETWORK_IP4_ENABLE = TRUE
|
|
DEFINE NETWORK_LAN_ROM = FALSE
|
|
|
|
!if $(NETWORK_ENABLE) == TRUE
|
|
!if $(NETWORK_PXE_BOOT) == TRUE
|
|
DEFINE NETWORK_SNP_ENABLE = TRUE
|
|
DEFINE NETWORK_HTTP_BOOT_ENABLE = FALSE
|
|
DEFINE NETWORK_ISCSI_ENABLE = FALSE
|
|
!else
|
|
DEFINE NETWORK_SNP_ENABLE = FALSE
|
|
DEFINE NETWORK_HTTP_BOOT_ENABLE = TRUE
|
|
DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
|
|
DEFINE NETWORK_ISCSI_ENABLE = TRUE
|
|
!endif
|
|
!endif
|
|
|
|
!include NetworkPkg/NetworkDefines.dsc.inc
|
|
#
|
|
# IPXE support
|
|
#
|
|
DEFINE NETWORK_IPXE = FALSE
|
|
|
|
[BuildOptions]
|
|
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES -Wno-stringop-overflow -mno-mmx -mno-sse
|
|
!if $(USE_CBMEM_FOR_CONSOLE) == FALSE
|
|
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
|
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
|
MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
|
!endif
|
|
|
|
|
|
################################################################################
|
|
#
|
|
# 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.
|
|
#
|
|
################################################################################
|
|
[LibraryClasses]
|
|
#
|
|
# Entry point
|
|
#
|
|
PeiCoreEntryPoint|MdePkg/Library/PeiCoreEntryPoint/PeiCoreEntryPoint.inf
|
|
PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
|
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
|
|
PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
|
|
PciLib|DasharoPayloadPkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
|
|
!if $(QEMU_PLATFORM) == TRUE # Needed for Virtio10.inf in QEMU
|
|
PciCapLib|OvmfPkg/Library/BasePciCapLib/BasePciCapLib.inf
|
|
PciCapPciIoLib|OvmfPkg/Library/UefiPciCapPciIoLib/UefiPciCapPciIoLib.inf
|
|
VirtioLib|OvmfPkg/Library/VirtioLib/VirtioLib.inf
|
|
!endif
|
|
PciExpressLib|DasharoPayloadPkg/Library/BasePciExpressLib/BasePciExpressLib.inf
|
|
PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
|
PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
|
|
PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
|
|
CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf
|
|
SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf
|
|
StackCheckLib|MdePkg/Library/StackCheckLibNull/StackCheckLibNull.inf
|
|
RngLib|DasharoPayloadPkg/Library/BaseRngLib/BaseRngLib.inf
|
|
NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf
|
|
|
|
#
|
|
# 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
|
|
FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
|
|
UefiDecompressLib|MdePkg/Library/BaseUefiDecompressLib/BaseUefiDecompressLib.inf
|
|
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf
|
|
PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.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
|
|
SecurityManagementLib|MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.inf
|
|
UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
|
|
BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
|
|
BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf
|
|
CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf
|
|
FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf
|
|
|
|
#
|
|
# Capsule Updates
|
|
#
|
|
!if $(CAPSULE_SUPPORT) == TRUE
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.inf
|
|
# At the moment there are no update checks to do, so null-library suffices
|
|
CapsuleUpdatePolicyLib|FmpDevicePkg/Library/CapsuleUpdatePolicyLibNull/CapsuleUpdatePolicyLibNull.inf
|
|
!if $(GRAPHICAL_CAPSULE_PROGRESS) == TRUE
|
|
DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibGraphics/DisplayUpdateProgressLibGraphics.inf
|
|
!else
|
|
DisplayUpdateProgressLib|MdeModulePkg/Library/DisplayUpdateProgressLibText/DisplayUpdateProgressLibText.inf
|
|
!endif
|
|
FmpAuthenticationLib|SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf
|
|
FmpDependencyCheckLib|FmpDevicePkg/Library/FmpDependencyCheckLib/FmpDependencyCheckLib.inf
|
|
# No need to save/restore FMP dependencies until they are utilized
|
|
FmpDependencyDeviceLib|FmpDevicePkg/Library/FmpDependencyDeviceLibNull/FmpDependencyDeviceLibNull.inf
|
|
FmpDependencyLib|FmpDevicePkg/Library/FmpDependencyLib/FmpDependencyLib.inf
|
|
FmpDeviceLib|DasharoPayloadPkg/Library/FmpDeviceSmmLib/FmpDeviceSmmLib.inf
|
|
FmpPayloadHeaderLib|FmpDevicePkg/Library/FmpPayloadHeaderLibV1/FmpPayloadHeaderLibV1.inf
|
|
PopUpLib|DasharoPayloadPkg/Library/PopUpLib/PopUpLib.inf
|
|
!else
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
|
|
!endif
|
|
|
|
#
|
|
# CPU
|
|
#
|
|
MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
|
|
LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf
|
|
MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf
|
|
CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf
|
|
CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf
|
|
BaseCpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
|
|
|
|
#
|
|
# Platform
|
|
#
|
|
!if $(QEMU_PLATFORM) == TRUE
|
|
# coreboot will expose proper ACPI Timer I/O port from QEMU too
|
|
# No need to use OVMF HPET Timer libraries
|
|
TimerLib|DasharoPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
|
|
!elseif $(CPU_TIMER_LIB_ENABLE) == TRUE
|
|
# QEMU_PLATFORM and CPU_TIMER_LIB_ENABLE are mutually exclusive
|
|
TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
|
|
!else
|
|
# coreboot always uses TSC for timestamps, force correct timer library so performance
|
|
# measurements are accurate, regardless of the timer built for other modules. Mismatch
|
|
# of the timers will result in incorrect tick and nanosecond calculations due to
|
|
# different timer frequency.
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE) == TRUE
|
|
TimerLib|DasharoPayloadPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf
|
|
!else
|
|
TimerLib|DasharoPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf
|
|
!endif
|
|
!endif # $(QEMU_PLATFORM) == FASLE && $(CPU_TIMER_LIB_ENABLE) == FALSE
|
|
|
|
ResetSystemLib|DasharoPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf
|
|
!if (($(USE_CBMEM_FOR_CONSOLE) == TRUE) && ($(TARGET) == RELEASE))
|
|
SerialPortLib|UefiPayloadPkg/Library/CbSerialPortLib/CbSerialPortLib.inf
|
|
PlatformHookLib|MdeModulePkg/Library/BasePlatformHookLibNull/BasePlatformHookLibNull.inf
|
|
!elseif $(SYSTEM76_EC_LOGGING) == TRUE
|
|
SerialPortLib|DasharoPayloadPkg/Library/System76EcLib/System76EcLib.inf
|
|
PlatformHookLib|DasharoPayloadPkg/Library/System76EcLib/System76EcLib.inf
|
|
!else
|
|
SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
|
|
PlatformHookLib|DasharoPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
|
|
!endif
|
|
PlatformBootManagerLib|DasharoPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
|
|
IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf
|
|
|
|
#
|
|
# Misc
|
|
#
|
|
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
|
PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
|
|
ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf
|
|
!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|DasharoPayloadPkg/Library/PlatformSupportLibNull/PlatformSupportLibNull.inf
|
|
!if $(BOOTLOADER) == "COREBOOT"
|
|
BlParseLib|DasharoPayloadPkg/Library/CbParseLib/CbParseLib.inf
|
|
!else
|
|
BlParseLib|DasharoPayloadPkg/Library/SblParseLib/SblParseLib.inf
|
|
!endif
|
|
FmapLib|DasharoPayloadPkg/Library/FmapLib/FmapLib.inf
|
|
CbfsLib|DasharoPayloadPkg/Library/CbfsLib/CbfsLib.inf
|
|
EfiVarsLib|DasharoPayloadPkg/Library/EfiVarsLib/EfiVarsLib.inf
|
|
CmosOptionsLib|DasharoPayloadPkg/Library/CmosOptionsLib/CmosOptionsLib.inf
|
|
|
|
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
|
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
|
|
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
|
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
|
VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
|
|
RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
|
|
VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf
|
|
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLib.inf
|
|
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
|
|
AmdSvsmLib|UefiCpuPkg/Library/AmdSvsmLibNull/AmdSvsmLibNull.inf
|
|
|
|
DasharoVariablesLib|DasharoModulePkg/Library/DasharoVariablesLib/DasharoVariablesLib.inf
|
|
|
|
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
|
ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
|
|
|
!if $(OPAL_PASSWORD_ENABLE) == TRUE
|
|
TcgStorageCoreLib|SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCoreLib.inf
|
|
TcgStorageOpalLib|SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalLib.inf
|
|
!endif
|
|
S3BootScriptLib|MdePkg/Library/BaseS3BootScriptLibNull/BaseS3BootScriptLibNull.inf
|
|
|
|
#
|
|
# Network
|
|
#
|
|
!include NetworkPkg/NetworkLibs.dsc.inc
|
|
|
|
MbedTlsLib|CryptoPkg/Library/MbedTlsLib/MbedTlsLib.inf
|
|
MbedTlsCrtLib|CryptoPkg/Library/MbedTlsCrtLib/MbedTlsCrtLib.inf
|
|
!if $(NETWORK_TLS_ENABLE) == TRUE
|
|
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
|
!endif
|
|
|
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
|
PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf
|
|
AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
|
|
SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
|
|
SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
|
|
PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
|
|
!else
|
|
AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLibNull.inf
|
|
!endif
|
|
|
|
#
|
|
# SMMSTORE
|
|
#
|
|
!if $(BOOTLOADER) == "COREBOOT"
|
|
SmmStoreLib|DasharoPayloadPkg/Library/SmmStoreLib/SmmStoreLib.inf
|
|
!endif
|
|
|
|
!if $(TPM_ENABLE) == TRUE
|
|
Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
|
|
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
|
|
|
!if $(USE_UEFIVAR_BACKED_TPM_PPI) == TRUE
|
|
Tcg2PhysicalPresenceLib|SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.inf
|
|
TcgPhysicalPresenceLib|SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
|
|
!else
|
|
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibQemu/DxeTcg2PhysicalPresenceLib.inf
|
|
Tcg2PhysicalPresencePlatformLib|DasharoPayloadPkg/Library/Tcg2PhysicalPresencePlatformLibUefipayload/DxeTcg2PhysicalPresencePlatformLib.inf
|
|
TcgPhysicalPresenceLib|OvmfPkg/Library/TcgPhysicalPresenceLibQemu/DxeTcgPhysicalPresenceLib.inf
|
|
!endif
|
|
|
|
TcgPpVendorLib|SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibNull.inf
|
|
Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
|
|
TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
|
!else
|
|
# TPM disabled
|
|
TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.inf
|
|
Tcg2PhysicalPresenceLib|OvmfPkg/Library/Tcg2PhysicalPresenceLibNull/DxeTcg2PhysicalPresenceLib.inf
|
|
TcgPhysicalPresenceLib|OvmfPkg/Library/TcgPhysicalPresenceLibNull/DxeTcgPhysicalPresenceLib.inf
|
|
!endif
|
|
|
|
!if $(USE_PLATFORM_GOP) == TRUE
|
|
!if $(USE_LAPTOP_LID_LIB) == TRUE
|
|
LaptopLidLib|DasharoPayloadPkg/Library/LaptopLidLib/LaptopLidLib.inf
|
|
!else
|
|
LaptopLidLib|DasharoPayloadPkg/Library/LaptopLidLib/LaptopLidLibNull.inf
|
|
!endif
|
|
!endif
|
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
|
|
|
[LibraryClasses.IA32.SEC]
|
|
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
|
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
|
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
|
DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
|
|
ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
|
|
PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
|
|
|
|
[LibraryClasses.common.SEC]
|
|
!if $(QEMU_PLATFORM) == TRUE
|
|
TimerLib|OvmfPkg/Library/AcpiTimerLib/BaseRomAcpiTimerLib.inf
|
|
!endif
|
|
|
|
[LibraryClasses.IA32.PEI_CORE, LibraryClasses.IA32.PEIM]
|
|
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
|
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
|
PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
|
|
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
|
ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
|
ExtractGuidedSectionLib|MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.inf
|
|
PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
|
|
!endif
|
|
|
|
[LibraryClasses.common.PEIM]
|
|
!if $(TPM_ENABLE) == TRUE
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/PeiCryptLib.inf
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
|
Tcg2PhysicalPresenceLib|SecurityPkg/Library/PeiTcg2PhysicalPresenceLib/PeiTcg2PhysicalPresenceLib.inf
|
|
!endif
|
|
PerformanceLib|MdeModulePkg/Library/PeiPerformanceLib/PeiPerformanceLib.inf
|
|
|
|
[LibraryClasses.common.DXE_CORE]
|
|
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
|
|
PerformanceLib|MdeModulePkg/Library/DxeCorePerformanceLib/DxeCorePerformanceLib.inf
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
|
|
!endif
|
|
CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/BaseCryptLib.inf
|
|
|
|
[LibraryClasses.common.DXE_DRIVER]
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf
|
|
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
|
PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
|
|
!endif
|
|
CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
|
|
MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/BaseCryptLib.inf
|
|
!if $(TPM_ENABLE) == TRUE
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
|
!endif
|
|
!if $(BATTERY_CHECK)
|
|
LaptopBatteryLib|DasharoPayloadPkg/Library/LaptopBatteryLib/LaptopBatteryLib.inf
|
|
!else
|
|
LaptopBatteryLib|DasharoPayloadPkg/Library/LaptopBatteryLib/LaptopBatteryLibNull.inf
|
|
!endif
|
|
|
|
[LibraryClasses.common.DXE_RUNTIME_DRIVER]
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
|
|
VariablePolicyLib|MdeModulePkg/Library/VariablePolicyLib/VariablePolicyLibRuntimeDxe.inf
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/RuntimeCryptLib.inf
|
|
DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
|
PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
|
|
MbedTlsCrtLib|CryptoPkg/Library/MbedTlsCrtRuntimeLib/MbedTlsCrtRuntimeLib.inf
|
|
!if $(CAPSULE_SUPPORT) == TRUE
|
|
CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLib.inf
|
|
!endif
|
|
|
|
[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
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/BaseCryptLib.inf
|
|
DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
|
|
|
################################################################################
|
|
#
|
|
# Pcd Section - list of all EDK II PCD Entries defined by this Platform.
|
|
#
|
|
################################################################################
|
|
[PcdsFeatureFlag]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|TRUE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwarePerformanceDataTableS3Support|FALSE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPs2KbdExtendedVerification|TRUE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSupportUpdateCapsuleReset|$(CAPSULE_SUPPORT)
|
|
|
|
[PcdsFixedAtBuild]
|
|
# UEFI spec: Minimal value is 0x8000!
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x8000
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxAuthVariableSize|0x8800
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdMaxHardwareErrorVariableSize|0x8000
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVariableStoreSize|0x10000
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdVpdBaseAddress|0x0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdUse1GPageTable|TRUE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }
|
|
gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
|
|
# 4K displays may need bigger buffers for the option strings in forms
|
|
gEfiMdePkgTokenSpaceGuid.PcdMaximumUnicodeStringLength|2000000
|
|
gDasharoPayloadPkgTokenSpaceGuid.PcdBootMenuKey|$(BOOT_MENU_KEY)
|
|
gDasharoPayloadPkgTokenSpaceGuid.PcdSetupMenuKey|$(SETUP_MENU_KEY)
|
|
gDasharoPayloadPkgTokenSpaceGuid.PcdLoadOptionRoms|$(LOAD_OPTION_ROMS)
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSdMmcGenericTimeoutValue|$(SD_MMC_TIMEOUT)
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdCapsuleFmpSupport|$(CAPSULE_SUPPORT)
|
|
|
|
gDasharoPayloadPkgTokenSpaceGuid.PcdSerialOnSuperIo|$(UART_ON_SUPERIO)
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdFirstTimeWakeUpAPsBySipi|FALSE
|
|
|
|
# Disable MTRR programming as coreboot has already done it
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuDisableMtrrProgramming|TRUE
|
|
|
|
!if $(SECURE_BOOT_DEFAULT_ENABLE) == TRUE
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdSecureBootDefaultEnable|1
|
|
!else
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdSecureBootDefaultEnable|0
|
|
!endif
|
|
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2
|
|
!endif
|
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask|0x1
|
|
!endif
|
|
|
|
!if $(DASHARO_SYSTEM_FEATURES_ENABLE) == TRUE
|
|
gDasharoSystemFeaturesTokenSpaceGuid.PcdShowMenu|TRUE
|
|
gDasharoSystemFeaturesTokenSpaceGuid.PcdShowIommuOptions|$(IOMMU_ENABLE)
|
|
gDasharoSystemFeaturesTokenSpaceGuid.PcdShowSerialPortMenu|$(SERIAL_TERMINAL)
|
|
gDasharoSystemFeaturesTokenSpaceGuid.PcdShowPs2Option|$(PS2_KEYBOARD_ENABLE)
|
|
!endif
|
|
|
|
[PcdsPatchableInModule.common]
|
|
!if ($(TARGET) == DEBUG || $(USE_CBMEM_FOR_CONSOLE) == TRUE)
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|TRUE
|
|
!else
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial|FALSE
|
|
!endif
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory|FALSE
|
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x8000004F
|
|
!if $(USE_CBMEM_FOR_CONSOLE) == FALSE
|
|
!if $(SOURCE_DEBUG_ENABLE)
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
|
|
!else
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F
|
|
!endif
|
|
!else
|
|
!if $(TARGET) == DEBUG
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x07
|
|
!else
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x03
|
|
!endif
|
|
!endif
|
|
|
|
#
|
|
# Network Pcds
|
|
#
|
|
!include NetworkPkg/NetworkFixedPcds.dsc.inc
|
|
|
|
#
|
|
# The following parameters are set by Library/PlatformHookLib
|
|
#
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseMmio|FALSE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase|0x3f8
|
|
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.PcdSerialExtendedTxFifoSize|$(SERIAL_EXTENDED_TX_FIFO_SIZE)
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPciDisableBusEnumeration|TRUE
|
|
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)
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)
|
|
|
|
!if $(PS2_KEYBOARD_ENABLE) == TRUE
|
|
gDasharoPayloadPkgTokenSpaceGuid.PcdSkipPs2Detect|FALSE
|
|
!else
|
|
gDasharoPayloadPkgTokenSpaceGuid.PcdSkipPs2Detect|TRUE
|
|
!endif
|
|
|
|
################################################################################
|
|
#
|
|
# Pcd Dynamic Section - list of all EDK II PCD Entries defined by this Platform
|
|
#
|
|
################################################################################
|
|
|
|
[PcdsDynamicDefault]
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvStoreReserved|0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
|
|
gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|$(PLATFORM_BOOT_TIMEOUT)
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|FALSE
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize |0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize|0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize |0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase |0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|0
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|0
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE
|
|
|
|
## 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
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
|
|
|
|
# No need to initialize TPM again, coreboot already did that
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2InitializationPolicy|0
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2SelfTestPolicy|0
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy|0
|
|
!if $(USE_EDK2_PLATFORMS) == TRUE
|
|
gIntelSiliconPkgTokenSpaceGuid.PcdVTdPolicyPropertyMask|1
|
|
!endif
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConInConnectOnDemand|FALSE
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFastPS2Detection|FALSE
|
|
|
|
# coreboot produces SMBIOS v3.0 tables only
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0300
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosDocRev|0x0
|
|
|
|
!if $(QEMU_PLATFORM) == TRUE
|
|
gEfiMdePkgTokenSpaceGuid.PcdFSBClock|1000000000
|
|
!endif
|
|
|
|
[PcdsDynamicHii]
|
|
!if $(TPM_ENABLE) == TRUE
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|4|NV,BS
|
|
!endif
|
|
|
|
################################################################################
|
|
#
|
|
# Components Section - list of all EDK II Modules needed by this Platform.
|
|
#
|
|
################################################################################
|
|
[Components.IA32]
|
|
#
|
|
# SEC Core
|
|
#
|
|
DasharoPayloadPkg/SecCore/SecCore.inf
|
|
|
|
#
|
|
# PEI Core
|
|
#
|
|
MdeModulePkg/Core/Pei/PeiMain.inf
|
|
|
|
#
|
|
# PEIM
|
|
#
|
|
MdeModulePkg/Universal/PCD/Pei/Pcd.inf {
|
|
<LibraryClasses>
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
|
}
|
|
MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
|
|
MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
|
|
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTablePei/FirmwarePerformancePei.inf
|
|
MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
|
|
|
|
DasharoPayloadPkg/SmmStorePei/SmmStorePei.inf
|
|
DasharoPayloadPkg/BlSupportPei/BlSupportPei.inf
|
|
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
|
|
|
|
!if $(TPM_ENABLE) == TRUE
|
|
DasharoPayloadPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf
|
|
SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
|
|
<LibraryClasses>
|
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
}
|
|
!if $(OPAL_PASSWORD_ENABLE) == TRUE
|
|
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.inf
|
|
!endif
|
|
!endif
|
|
|
|
!if $(SATA_PASSWORD_ENABLE) == TRUE
|
|
SecurityPkg/HddPassword/HddPasswordPei.inf
|
|
!endif
|
|
|
|
[LibraryClasses.common.DXE_CORE,LibraryClasses.common.DXE_DRIVER,LibraryClasses.common.UEFI_APPLICATION]
|
|
DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebugLibReportStatusCode.inf
|
|
|
|
[Components.X64]
|
|
!if $(QEMU_PLATFORM) == TRUE
|
|
OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
|
|
OvmfPkg/Virtio10Dxe/Virtio10.inf
|
|
OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
|
|
OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
|
|
!endif
|
|
|
|
#
|
|
# DXE Core
|
|
#
|
|
MdeModulePkg/Core/Dxe/DxeMain.inf {
|
|
<LibraryClasses>
|
|
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
|
|
}
|
|
|
|
#
|
|
# Components that produce the architectural protocols
|
|
#
|
|
MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf {
|
|
<LibraryClasses>
|
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
|
NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
|
!endif
|
|
!if $(TPM_ENABLE) == TRUE
|
|
NULL|SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
|
|
NULL|SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
|
|
!endif
|
|
}
|
|
|
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
|
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
|
SecurityPkg/EnrollFromDefaultKeysApp/EnrollFromDefaultKeysApp.inf
|
|
SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf
|
|
!endif
|
|
|
|
!if $(SETUP_PASSWORD_ENABLE) == TRUE
|
|
DasharoModulePkg/UserAuthenticationDxe/UserAuthenticationDxe.inf {
|
|
<LibraryClasses>
|
|
PlatformPasswordLib|DasharoModulePkg/Library/PlatformPasswordLibNull/PlatformPasswordLibNull.inf
|
|
}
|
|
!endif
|
|
|
|
!if $(APU_CONFIG_ENABLE) == TRUE
|
|
DasharoPayloadPkg/ApuConfigurationUi/ApuConfigurationUi.inf
|
|
!endif
|
|
|
|
UefiCpuPkg/CpuDxe/CpuDxe.inf
|
|
MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
|
|
MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
|
|
MdeModulePkg/Logo/LogoDxe.inf
|
|
MdeModulePkg/Application/UiApp/UiApp.inf {
|
|
<LibraryClasses>
|
|
NULL|MdeModulePkg/Library/DeviceManagerUiLib/DeviceManagerUiLib.inf
|
|
NULL|DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesUiLib.inf
|
|
NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf
|
|
NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf
|
|
}
|
|
MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf
|
|
!if $(CAPSULE_SUPPORT) == TRUE
|
|
FmpDevicePkg/FmpDxe/FmpDxe.inf {
|
|
<Defines>
|
|
# FmpDxe interprets its FILE_GUID as firmware GUID. This allows including
|
|
# multiple FmpDxe instances along each other targeting different
|
|
# components.
|
|
FILE_GUID = $(CAPSULE_MAIN_FW_GUID)
|
|
<PcdsFixedAtBuild>
|
|
gFmpDevicePkgTokenSpaceGuid.PcdFmpDeviceImageIdName|L"System Firmware"
|
|
# Public certificate used for validation of UEFI capsules
|
|
#
|
|
# See BaseTools/Source/Python/Pkcs7Sign/Readme.md for more details on such
|
|
# PCDs and include files.
|
|
!include DasharoPayloadPkg/CapsuleRootKey.inc
|
|
}
|
|
MdeModulePkg/Application/CapsuleApp/CapsuleApp.inf
|
|
MdeModulePkg/Universal/EsrtDxe/EsrtDxe.inf
|
|
DasharoPayloadPkg/CapsuleSplashDxe/CapsuleSplashDxe.inf
|
|
DasharoPayloadPkg/CapsuleChargerCheckDxe/CapsuleChargerCheckDxe.inf
|
|
!endif
|
|
!if $(RAM_DISK_ENABLE) == TRUE
|
|
MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
|
|
!endif
|
|
!if $(QEMU_PLATFORM) == TRUE
|
|
OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf
|
|
!else
|
|
PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf
|
|
!endif
|
|
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
|
|
MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
|
|
PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
|
|
!if $(BOOTLOADER) == "COREBOOT"
|
|
DasharoPayloadPkg/SmmStoreFvb/SmmStoreFvbRuntimeDxe.inf
|
|
!endif
|
|
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
|
|
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf {
|
|
<LibraryClasses>
|
|
NULL|MdeModulePkg/Library/VarCheckUefiLib/VarCheckUefiLib.inf
|
|
NULL|EmbeddedPkg/Library/NvVarStoreFormattedLib/NvVarStoreFormattedLib.inf
|
|
}
|
|
|
|
#
|
|
# 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
|
|
MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
|
|
MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
|
|
MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
|
|
MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
|
|
DasharoPayloadPkg/BlSupportDxe/BlSupportDxe.inf
|
|
CrScreenshotDxe/CrScreenshotDxe.inf {
|
|
<BuildOptions>
|
|
# floats are used for encoding PNGs from firmware's UI
|
|
GCC:*_*_*_CC_FLAGS = -mmmx -msse
|
|
}
|
|
|
|
#
|
|
# SMBIOS Support
|
|
#
|
|
MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
|
|
MdeModulePkg/Universal/SmbiosMeasurementDxe/SmbiosMeasurementDxe.inf
|
|
|
|
#
|
|
# ACPI Support
|
|
#
|
|
MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
|
|
DasharoPayloadPkg/AcpiPlatformDxe/AcpiPlatformDxe.inf
|
|
MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
|
|
|
|
#
|
|
# PCI Support
|
|
#
|
|
MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
|
|
MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf {
|
|
<LibraryClasses>
|
|
PciHostBridgeLib|DasharoPayloadPkg/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
|
|
MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
|
|
MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
|
|
MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
|
|
MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
|
|
MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
|
|
MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
|
|
|
|
#
|
|
# SD/eMMC Support
|
|
#
|
|
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.inf
|
|
MdeModulePkg/Bus/Sd/EmmcDxe/EmmcDxe.inf
|
|
MdeModulePkg/Bus/Sd/SdDxe/SdDxe.inf
|
|
|
|
#
|
|
# 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/UsbMouseDxe/UsbMouseDxe.inf
|
|
MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
|
|
MdeModulePkg/Bus/Usb/UsbMouseAbsolutePointerDxe/UsbMouseAbsolutePointerDxe.inf
|
|
!if $(FTDI_USB_UART_SUPPORT) == TRUE
|
|
OptionRomPkg/Bus/Usb/FtdiUsbSerialDxe/FtdiUsbSerialDxe.inf
|
|
!endif
|
|
|
|
#
|
|
# ISA Support
|
|
#
|
|
!if $(UART_ON_SUPERIO) == TRUE && $(SYSTEM76_EC_LOGGING) == FALSE
|
|
MdeModulePkg/Bus/Pci/PciSioSerialDxe/PciSioSerialDxe.inf
|
|
!else
|
|
MdeModulePkg/Universal/SerialDxe/SerialDxe.inf {
|
|
<LibraryClasses>
|
|
!if $(SYSTEM76_EC_LOGGING) == TRUE
|
|
SerialPortLib|DasharoPayloadPkg/Library/System76EcLib/System76EcLib.inf
|
|
PlatformHookLib|DasharoPayloadPkg/Library/System76EcLib/System76EcLib.inf
|
|
!else
|
|
SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf
|
|
PlatformHookLib|DasharoPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf
|
|
!endif
|
|
}
|
|
!endif
|
|
|
|
OvmfPkg/SioBusDxe/SioBusDxe.inf
|
|
!if $(PS2_KEYBOARD_ENABLE) == TRUE
|
|
MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf
|
|
MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf
|
|
!endif
|
|
|
|
#
|
|
# Console Support
|
|
#
|
|
MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
|
|
MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
|
|
MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
|
|
MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
|
|
DasharoPayloadPkg/PciPlatformDxe/PciPlatformDxe.inf
|
|
|
|
!if $(USE_PLATFORM_GOP) == TRUE
|
|
DasharoPayloadPkg/PlatformGopPolicy/PlatformGopPolicy.inf
|
|
!elseif $(USE_AMD_PLATFORM_GOP) == FALSE
|
|
DasharoPayloadPkg/GraphicsOutputDxe/GraphicsOutputDxe.inf
|
|
!endif
|
|
|
|
#
|
|
# Network Support
|
|
#
|
|
!include NetworkPkg/NetworkComponents.dsc.inc
|
|
|
|
!if $(NETWORK_TLS_ENABLE) == TRUE
|
|
NetworkPkg/TlsAuthConfigDxe/TlsAuthConfigDxe.inf {
|
|
<LibraryClasses>
|
|
NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf
|
|
}
|
|
!endif
|
|
|
|
DasharoModulePkg/DasharoBootPolicies/DasharoBootPolicies.inf
|
|
|
|
!if $(USE_EDK2_PLATFORMS) == TRUE
|
|
DasharoModulePkg/DasharoBootPoliciesVTd/DasharoBootPoliciesVTd.inf
|
|
!endif
|
|
|
|
#
|
|
# Random Number Generator
|
|
#
|
|
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
|
|
|
|
#
|
|
# Hash2
|
|
#
|
|
SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf {
|
|
<LibraryClasses>
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibMbedTls/BaseCryptLib.inf
|
|
}
|
|
|
|
#
|
|
# PKCS7 Verification
|
|
#
|
|
SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.inf
|
|
|
|
!if $(TPM_ENABLE) == TRUE
|
|
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
|
|
<LibraryClasses>
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
|
NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
|
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
|
}
|
|
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf
|
|
SecurityPkg/Tcg/TcgDxe/TcgDxe.inf {
|
|
<LibraryClasses>
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
}
|
|
SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf
|
|
!if $(OPAL_PASSWORD_ENABLE) == TRUE
|
|
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordDxe.inf {
|
|
<LibraryClasses>
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
|
}
|
|
!endif
|
|
!endif
|
|
|
|
!if $(SATA_PASSWORD_ENABLE) == TRUE
|
|
SecurityPkg/HddPassword/HddPasswordDxe.inf
|
|
!endif
|
|
|
|
!if $(IOMMU_ENABLE) == TRUE
|
|
IntelSiliconPkg/Feature/VTd/IntelVTdDxe/IntelVTdDxe.inf
|
|
!endif
|
|
|
|
!if $(PERFORMANCE_MEASUREMENT_ENABLE)
|
|
MdeModulePkg/Universal/Acpi/FirmwarePerformanceDataTableDxe/FirmwarePerformanceDxe.inf
|
|
!endif
|
|
|
|
#------------------------------
|
|
# Build the shell
|
|
#------------------------------
|
|
|
|
!if $(SHELL_TYPE) == BUILD_SHELL
|
|
|
|
#
|
|
# Shell Lib
|
|
#
|
|
[LibraryClasses]
|
|
BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
|
|
ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
|
|
|
|
[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
|
|
}
|
|
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
|
|
}
|
|
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
|
|
NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
|
|
|
|
#------------------------------
|
|
# Networking commands
|
|
#------------------------------
|
|
|
|
<LibraryClasses>
|
|
NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
|
|
|
|
#------------------------------
|
|
# Support libraries
|
|
#------------------------------
|
|
|
|
<LibraryClasses>
|
|
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
|
|
HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
|
|
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
|