VirtualBox

Ignore:
Timestamp:
Mar 31, 2025 11:31:09 AM (2 weeks ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
168237
Message:

Devices/EFI/FirmwareNew: Merge edk2-stable202502 from the vendor branch and make it build for the important platforms, bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/OvmfPkgX64.dsc

    r106190 r108794  
    22#  EFI/Framework Open Virtual Machine Firmware (OVMF) platform
    33#
    4 #  Copyright (c) 2006 - 2023, Intel Corporation. All rights reserved.<BR>
     4#  Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
    55#  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
    66#  Copyright (c) Microsoft Corporation.
     
    3737  DEFINE SMM_REQUIRE             = FALSE
    3838  DEFINE SOURCE_DEBUG_ENABLE     = FALSE
    39   DEFINE CC_MEASUREMENT_ENABLE   = FALSE
     39  DEFINE CC_MEASUREMENT_ENABLE   = TRUE
    4040
    4141!include OvmfPkg/Include/Dsc/OvmfTpmDefines.dsc.inc
     
    5454  DEFINE NETWORK_ALLOW_HTTP_CONNECTIONS = TRUE
    5555  DEFINE NETWORK_ISCSI_ENABLE           = TRUE
     56  DEFINE NETWORK_PXE_BOOT_ENABLE        = TRUE
    5657
    5758!include NetworkPkg/NetworkDefines.dsc.inc
     
    336337  MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/SecMemEncryptSevLib.inf
    337338  CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
     339  TdxMeasurementLib|OvmfPkg/IntelTdx/TdxMeasurementLib/SecPeiTdxMeasurementLib.inf
    338340
    339341[LibraryClasses.common.PEI_CORE]
     
    393395  MemEncryptSevLib|OvmfPkg/Library/BaseMemEncryptSevLib/PeiMemEncryptSevLib.inf
    394396  CcProbeLib|OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.inf
     397  BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
     398  TdxMeasurementLib|OvmfPkg/IntelTdx/TdxMeasurementLib/SecPeiTdxMeasurementLib.inf
     399  TdxHelperLib|OvmfPkg/IntelTdx/TdxHelperLib/PeiTdxHelperLib.inf
    395400
    396401[LibraryClasses.common.DXE_CORE]
     
    496501  QemuFwCfgS3Lib|OvmfPkg/Library/QemuFwCfgS3Lib/DxeQemuFwCfgS3LibFwCfg.inf
    497502  QemuLoadImageLib|OvmfPkg/Library/X86QemuLoadImageLib/X86QemuLoadImageLib.inf
     503  TdxMeasurementLib|OvmfPkg/IntelTdx/TdxMeasurementLib/DxeTdxMeasurementLib.inf
    498504
    499505[LibraryClasses.common.UEFI_APPLICATION]
     
    680686  # Network Pcds
    681687  #
    682 !include NetworkPkg/NetworkPcds.dsc.inc
     688!include NetworkPkg/NetworkFixedPcds.dsc.inc
    683689
    684690  gEfiShellPkgTokenSpaceGuid.PcdShellFileOperationSize|0x20000
     
    716722  gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|0
    717723!endif
    718 !ifndef $(VBOX)
    719   gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1280
    720   gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|800
    721 !else
    722   gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|FALSE
    723   gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1024
    724   gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|768
    725 !endif
    726   gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
    727   gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
    728724  gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable|FALSE
    729   gUefiOvmfPkgTokenSpaceGuid.PcdVideoResolutionSource|0
    730725  gUefiOvmfPkgTokenSpaceGuid.PcdOvmfHostBridgePciDevId|0
    731726  gUefiOvmfPkgTokenSpaceGuid.PcdPciIoBase|0x0
     
    739734
    740735  # Set video resolution for text setup.
     736!ifndef $(VBOX)
    741737  gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|640
    742738  gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|480
     739!else
     740  gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable|FALSE
     741  gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|1024
     742  gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|768
     743!endif
    743744
    744745  gEfiMdeModulePkgTokenSpaceGuid.PcdSmbiosVersion|0x0208
     
    769770  gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode|0x01
    770771  gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout|100000
     772  gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout2|100000
    771773!endif
    772774
     
    774776
    775777!include OvmfPkg/Include/Dsc/OvmfTpmPcds.dsc.inc
    776 
    777   # IPv4 and IPv6 PXE Boot support.
    778   gEfiNetworkPkgTokenSpaceGuid.PcdIPv4PXESupport|0x01
    779   gEfiNetworkPkgTokenSpaceGuid.PcdIPv6PXESupport|0x01
     778!include OvmfPkg/Include/Dsc/OvmfDisplayPcds.dsc.inc
     779
     780!include NetworkPkg/NetworkDynamicPcds.dsc.inc
    780781
    781782  # Set ConfidentialComputing defaults
     
    832833  MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
    833834
    834   OvmfPkg/PlatformPei/PlatformPei.inf {
    835     <LibraryClasses>
    836       NULL|OvmfPkg/IntelTdx/TdxHelperLib/PeiTdxHelperLib.inf
    837   }
     835  OvmfPkg/PlatformPei/PlatformPei.inf
     836
    838837  UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume2Pei.inf {
    839838    <LibraryClasses>
     
    871870  }
    872871
     872  #
     873  # Cc Measurement PPI for Td guest
     874  #
     875!if $(CC_MEASUREMENT_ENABLE) == TRUE
     876  OvmfPkg/Tcg/TdTcg2Pei/TdTcg2Pei.inf
     877!endif
     878
    873879!include OvmfPkg/Include/Dsc/OvmfTpmComponentsPei.dsc.inc
    874880
     
    968974  OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
    969975!ifndef $(VBOX)
    970   OvmfPkg/VirtioRngDxe/VirtioRng.inf
    971976  OvmfPkg/VirtioSerialDxe/VirtioSerial.inf
    972 !else
    973   SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
     977  OvmfPkg/VirtioKeyboardDxe/VirtioKeyboard.inf
    974978!endif
    975979!if $(PVSCSI_ENABLE) == TRUE
     
    10701074!include NetworkPkg/NetworkComponents.dsc.inc
    10711075!include OvmfPkg/Include/Dsc/NetworkComponents.dsc.inc
    1072 
    1073   OvmfPkg/VirtioNetDxe/VirtioNet.inf
    1074 !ifdef $(VBOX)
    1075   VBoxPkg/E1kNetDxe/E1kNet.inf
    1076 !endif
    1077 
    1078   #
    1079   # Usb Support
    1080   #
    1081   MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
    1082   MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
    1083   MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
    1084   MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
    1085   MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
    1086   MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
    1087 
     1076!include OvmfPkg/Include/Dsc/UsbComponents.dsc.inc
    10881077!include OvmfPkg/Include/Dsc/ShellComponents.dsc.inc
     1078!include OvmfPkg/Include/Dsc/MorLock.dsc.inc
     1079!include OvmfPkg/Include/Dsc/OvmfRngComponents.dsc.inc
    10891080
    10901081!if $(SECURE_BOOT_ENABLE) == TRUE
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette