]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiPayloadPkg/UefiPayloadPkg.dsc
UefiPayloadPkg: Add SpiFlashLib
[mirror_edk2.git] / UefiPayloadPkg / UefiPayloadPkg.dsc
index d293211e46d4c415e7679de1507365ad9761ca47..5aaae94eeccbe3d02d0d3cb4499e0af8072fb73f 100644 (file)
 \r
   DEFINE SOURCE_DEBUG_ENABLE          = FALSE\r
   DEFINE PS2_KEYBOARD_ENABLE          = FALSE\r
+  DEFINE RAM_DISK_ENABLE              = FALSE\r
+  DEFINE SIO_BUS_ENABLE               = FALSE\r
   DEFINE UNIVERSAL_PAYLOAD            = FALSE\r
-\r
+  DEFINE SECURITY_STUB_ENABLE         = TRUE\r
   #\r
   # SBL:      UEFI payload for Slim Bootloader\r
   # COREBOOT: UEFI payload for coreboot\r
@@ -39,7 +41,7 @@
   #\r
   # CPU options\r
   #\r
-  DEFINE MAX_LOGICAL_PROCESSORS       = 64\r
+  DEFINE MAX_LOGICAL_PROCESSORS       = 256\r
 \r
   #\r
   # PCI options\r
@@ -90,6 +92,7 @@
 \r
   DEFINE EMU_VARIABLE_ENABLE   = TRUE\r
   DEFINE DISABLE_RESET_SYSTEM  = FALSE\r
+  DEFINE NETWORK_DRIVER_ENABLE = FALSE\r
 \r
   # Dfine the maximum size of the capsule image without a reset flag that the platform can support.\r
   DEFINE MAX_SIZE_NON_POPULATE_CAPSULE = 0xa00000\r
   DEFINE RTC_INDEX_REGISTER = 0x70\r
   DEFINE RTC_TARGET_REGISTER = 0x71\r
 \r
+  DEFINE SERIAL_DRIVER_ENABLE = TRUE\r
+\r
 [BuildOptions]\r
   *_*_*_CC_FLAGS                 = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
   GCC:*_UNIXGCC_*_CC_FLAGS       = -DMDEPKG_NDEBUG\r
   CacheMaintenanceLib|MdePkg/Library/BaseCacheMaintenanceLib/BaseCacheMaintenanceLib.inf\r
   SafeIntLib|MdePkg/Library/BaseSafeIntLib/BaseSafeIntLib.inf\r
   DxeHobListLib|UefiPayloadPkg/Library/DxeHobListLib/DxeHobListLib.inf\r
-\r
-!if $(UNIVERSAL_PAYLOAD) == TRUE\r
+  BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
+  TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf\r
+  IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
+  OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
+  RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf\r
   HobLib|UefiPayloadPkg/Library/DxeHobLib/DxeHobLib.inf\r
-!else\r
-  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
-!endif\r
 \r
   #\r
   # UEFI & PI\r
   TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf\r
   ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf\r
   SerialPortLib|MdeModulePkg/Library/BaseSerialPortLib16550/BaseSerialPortLib16550.inf\r
-!if $(UNIVERSAL_PAYLOAD) == TRUE\r
-  PlatformHookLib|UefiPayloadPkg/Library/UniversalPayloadPlatformHookLib/PlatformHookLib.inf\r
-!else\r
   PlatformHookLib|UefiPayloadPkg/Library/PlatformHookLib/PlatformHookLib.inf\r
-!endif\r
   PlatformBootManagerLib|UefiPayloadPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf\r
   IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf\r
 \r
   gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE\r
   ## This PCD specified whether ACPI SDT protocol is installed.\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdInstallAcpiSdtProtocol|TRUE\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE\r
+  gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE\r
 \r
 [PcdsFixedAtBuild]\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxVariableSize|0x10000\r
   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2\r
 !endif\r
 \r
+[PcdsPatchableInModule.X64]\r
+  gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)\r
+  gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)\r
+  gEfiNetworkPkgTokenSpaceGuid.PcdAllowHttpConnections|TRUE\r
+\r
 [PcdsPatchableInModule.common]\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdBootManagerMenuFile|{ 0x21, 0xaa, 0x2c, 0x46, 0x14, 0x76, 0x03, 0x45, 0x83, 0x6e, 0x8a, 0xb6, 0xf4, 0x66, 0x23, 0x31 }\r
   gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x7\r
   gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x2F\r
 !endif\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|$(MAX_SIZE_NON_POPULATE_CAPSULE)\r
-  gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER)\r
-  gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER)\r
   #\r
   # The following parameters are set by Library/PlatformHookLib\r
   #\r
   gEfiMdeModulePkgTokenSpaceGuid.PcdPciSerialParameters|$(PCI_SERIAL_PARAMETERS)\r
 \r
   gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber|$(MAX_LOGICAL_PROCESSORS)\r
-\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuNumberOfReservedVariableMtrrs|0\r
+  gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter|0\r
 \r
 ################################################################################\r
 #\r
 #\r
 ################################################################################\r
 \r
-!if "IA32" in $(ARCH)\r
+!if "IA32" in "$(ARCH)"\r
   [Components.IA32]\r
   !if $(UNIVERSAL_PAYLOAD) == TRUE\r
     UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf\r
   !endif\r
 !endif\r
 \r
+#\r
+# UEFI network modules\r
+#\r
+!if $(NETWORK_DRIVER_ENABLE) == TRUE\r
+  !include NetworkPkg/Network.dsc.inc\r
+!endif\r
+\r
 [Components.X64]\r
   #\r
   # DXE Core\r
   #\r
   # Components that produce the architectural protocols\r
   #\r
+!if $(SECURITY_STUB_ENABLE) == TRUE\r
   MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
+!endif\r
   UefiCpuPkg/CpuDxe/CpuDxe.inf\r
   MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r
   MdeModulePkg/Application/UiApp/UiApp.inf {\r
       NULL|MdeModulePkg/Library/BootManagerUiLib/BootManagerUiLib.inf\r
       NULL|MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManagerUiLib.inf\r
   }\r
+  MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenuApp.inf\r
 \r
   PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf\r
   MdeModulePkg/Universal/Metronome/Metronome.inf\r
   MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
   MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
   MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
+  MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf\r
+  MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
 \r
   UefiPayloadPkg/BlSupportDxe/BlSupportDxe.inf\r
 \r
   MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf\r
   MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf\r
 \r
+!if $(RAM_DISK_ENABLE) == TRUE\r
+  MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
+!endif\r
   #\r
   # SD/eMMC Support\r
   #\r
   MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r
   MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf\r
   MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r
+  MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf\r
 \r
   #\r
   # ISA Support\r
   #\r
+!if $(SERIAL_DRIVER_ENABLE) == TRUE\r
   MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
-!if $(PS2_KEYBOARD_ENABLE) == TRUE\r
+!endif\r
+!if $(SIO_BUS_ENABLE) == TRUE\r
   OvmfPkg/SioBusDxe/SioBusDxe.inf\r
+!endif\r
+!if $(PS2_KEYBOARD_ENABLE) == TRUE\r
   MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KeyboardDxe.inf\r
 !endif\r
+  MdeModulePkg/Bus/Isa/Ps2MouseDxe/Ps2MouseDxe.inf\r
 \r
   #\r
   # Console Support\r