Changeset 105670 in vbox for trunk/src/VBox/Devices/EFI/FirmwareNew/UefiPayloadPkg/UefiPayloadPkg.dsc
- Timestamp:
- Aug 14, 2024 1:16:30 PM (8 months ago)
- svn:sync-xref-src-repo-rev:
- 164367
- Location:
- trunk/src/VBox/Devices/EFI/FirmwareNew
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/EFI/FirmwareNew
-
Property svn:mergeinfo
changed from (toggle deleted branches)
to (toggle deleted branches)/vendor/edk2/current 103735-103757,103769-103776,129194-159268 /vendor/edk2/current 103735-103757,103769-103776,129194-164365
-
Property svn:mergeinfo
changed from (toggle deleted branches)
-
trunk/src/VBox/Devices/EFI/FirmwareNew/UefiPayloadPkg/UefiPayloadPkg.dsc
r101291 r105670 23 23 BUILD_TARGETS = DEBUG|RELEASE|NOOPT 24 24 SKUID_IDENTIFIER = DEFAULT 25 OUTPUT_DIRECTORY = Build/UefiPayloadPkg X6425 OUTPUT_DIRECTORY = Build/UefiPayloadPkg$(BUILD_ARCH) 26 26 FLASH_DEFINITION = UefiPayloadPkg/UefiPayloadPkg.fdf 27 27 PCD_DYNAMIC_AS_DYNAMICEX = TRUE … … 31 31 DEFINE RAM_DISK_ENABLE = FALSE 32 32 DEFINE SIO_BUS_ENABLE = FALSE 33 DEFINE UNIVERSAL_PAYLOAD = FALSE34 33 DEFINE SECURITY_STUB_ENABLE = TRUE 35 34 DEFINE SMM_SUPPORT = FALSE … … 39 38 DEFINE SD_ENABLE = TRUE 40 39 DEFINE PS2_MOUSE_ENABLE = TRUE 41 DEFINE CRYPTO_PROTOCOL_SUPPORT = FALSE42 40 DEFINE SD_MMC_TIMEOUT = 1000000 43 41 DEFINE USE_CBMEM_FOR_CONSOLE = FALSE … … 45 43 DEFINE NVME_ENABLE = TRUE 46 44 DEFINE CAPSULE_SUPPORT = FALSE 45 46 # 47 # Crypto Support 48 # 49 DEFINE CRYPTO_PROTOCOL_SUPPORT = FALSE 50 DEFINE CRYPTO_DRIVER_EXTERNAL_SUPPORT = FALSE 51 52 # 53 # Setup Universal Payload 54 # 55 # ELF: Build UniversalPayload file as UniversalPayload.elf 56 # FIT: Build UniversalPayload file as UniversalPayload.fit 57 # 58 DEFINE UNIVERSAL_PAYLOAD = FALSE 59 DEFINE UNIVERSAL_PAYLOAD_FORMAT = ELF 47 60 48 61 # … … 132 145 # Note: for emulation platform such as QEMU, this may not work and should set it as FALSE 133 146 DEFINE CPU_TIMER_LIB_ENABLE = TRUE 147 148 # 149 # HPET: UEFI Payload will use HPET timer 150 # LAPIC: UEFI Payload will use local APIC timer 151 # 152 DEFINE TIMER_SUPPORT = HPET 134 153 135 154 DEFINE MULTIPLE_DEBUG_PORT_SUPPORT = FALSE … … 241 260 CustomizedDisplayLib|MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLib.inf 242 261 FrameBufferBltLib|MdeModulePkg/Library/FrameBufferBltLib/FrameBufferBltLib.inf 243 244 #245 # CPU246 #247 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf248 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf249 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf250 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf251 252 #253 # Platform254 #255 !if $(CPU_TIMER_LIB_ENABLE) == TRUE && $(UNIVERSAL_PAYLOAD) == TRUE256 TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf257 !else258 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf259 !endif260 262 ResetSystemLib|UefiPayloadPkg/Library/ResetSystemLib/ResetSystemLib.inf 261 263 !if $(USE_CBMEM_FOR_CONSOLE) == TRUE … … 278 280 DebugPrintErrorLevelLib|UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibHob.inf 279 281 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf 282 ImagePropertiesRecordLib|MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.inf 280 283 !if $(SOURCE_DEBUG_ENABLE) == TRUE 281 284 PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf … … 311 314 VariableFlashInfoLib|MdeModulePkg/Library/BaseVariableFlashInfoLib/BaseVariableFlashInfoLib.inf 312 315 CcExitLib|UefiCpuPkg/Library/CcExitLibNull/CcExitLibNull.inf 316 AmdSvsmLib|UefiCpuPkg/Library/AmdSvsmLibNull/AmdSvsmLibNull.inf 313 317 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf 318 FdtLib|MdePkg/Library/BaseFdtLib/BaseFdtLib.inf 319 SmmRelocationLib|UefiCpuPkg/Library/SmmRelocationLib/SmmRelocationLib.inf 314 320 315 321 [LibraryClasses.common] … … 318 324 BmpSupportLib|MdeModulePkg/Library/BaseBmpSupportLib/BaseBmpSupportLib.inf 319 325 !endif 326 327 [LibraryClasses.X64] 328 # 329 # CPU 330 # 331 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf 332 LocalApicLib|UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.inf 333 MicrocodeLib|UefiCpuPkg/Library/MicrocodeLib/MicrocodeLib.inf 334 IoApicLib|PcAtChipsetPkg/Library/BaseIoApicLib/BaseIoApicLib.inf 335 !if $(CPU_TIMER_LIB_ENABLE) == TRUE && $(UNIVERSAL_PAYLOAD) == TRUE 336 TimerLib|UefiCpuPkg/Library/CpuTimerLib/BaseCpuTimerLib.inf 337 !else 338 TimerLib|UefiPayloadPkg/Library/AcpiTimerLib/AcpiTimerLib.inf 339 !endif 340 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf 341 CpuPageTableLib|UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableLib.inf 320 342 321 343 [LibraryClasses.common.SEC] … … 335 357 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf 336 358 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf 359 360 [LibraryClasses.X64.DXE_CORE] 337 361 !if $(SOURCE_DEBUG_ENABLE) 338 362 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf … … 348 372 ExtractGuidedSectionLib|MdePkg/Library/DxeExtractGuidedSectionLib/DxeExtractGuidedSectionLib.inf 349 373 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf 374 375 [LibraryClasses.X64.DXE_DRIVER] 376 CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf 377 MpInitLib|UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf 350 378 !if $(SOURCE_DEBUG_ENABLE) 351 379 DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf … … 374 402 !endif 375 403 376 [LibraryClasses. common.SMM_CORE]404 [LibraryClasses.X64.SMM_CORE] 377 405 !if $(SMM_SUPPORT) == TRUE 378 406 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf … … 388 416 !endif 389 417 390 [LibraryClasses. common.DXE_SMM_DRIVER]418 [LibraryClasses.X64.DXE_SMM_DRIVER] 391 419 !if $(SMM_SUPPORT) == TRUE 392 420 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf … … 418 446 ################################################################################ 419 447 [PcdsFeatureFlag] 420 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE421 448 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutGopSupport|TRUE 422 449 gEfiMdeModulePkgTokenSpaceGuid.PcdConOutUgaSupport|FALSE … … 425 452 gEfiMdeModulePkgTokenSpaceGuid.PcdHiiOsRuntimeSupport|FALSE 426 453 gEfiMdeModulePkgTokenSpaceGuid.PcdPciDegradeResourceForOptionRom|FALSE 454 455 [PcdsFeatureFlag.X64] 456 gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode|TRUE 427 457 gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmEnableBspElection|FALSE 428 458 … … 460 490 461 491 !if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE 492 !if $(CRYPTO_DRIVER_EXTERNAL_SUPPORT) == FALSE 462 493 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.HmacSha256.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY 463 494 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.Md5.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY … … 481 512 gEfiCryptoPkgTokenSpaceGuid.PcdCryptoServiceFamilyEnable.TlsGet.Family | PCD_CRYPTO_SERVICE_ENABLE_FAMILY 482 513 !endif 514 !endif 483 515 484 516 [PcdsPatchableInModule.X64] … … 601 633 [Components.IA32] 602 634 !if $(UNIVERSAL_PAYLOAD) == TRUE 603 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf 635 !if $(UNIVERSAL_PAYLOAD_FORMAT) == "ELF" 636 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf 637 !elseif $(UNIVERSAL_PAYLOAD_FORMAT) == "FIT" 638 UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.inf 639 !else 640 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf 641 !endif 604 642 !else 605 643 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf … … 608 646 [Components.X64] 609 647 !if $(UNIVERSAL_PAYLOAD) == TRUE 610 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf 648 !if $(UNIVERSAL_PAYLOAD_FORMAT) == "ELF" 649 UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf 650 !elseif $(UNIVERSAL_PAYLOAD_FORMAT) == "FIT" 651 UefiPayloadPkg/UefiPayloadEntry/FitUniversalPayloadEntry.inf 652 !else 653 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf 654 !endif 611 655 !else 612 656 UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf … … 656 700 657 701 702 !if $(TIMER_SUPPORT) == "HPET" 658 703 PcAtChipsetPkg/HpetTimerDxe/HpetTimerDxe.inf 704 !elseif $(TIMER_SUPPORT) == "LAPIC" 705 OvmfPkg/LocalApicTimerDxe/LocalApicTimerDxe.inf { 706 <LibraryClasses> 707 NestedInterruptTplLib|OvmfPkg/Library/NestedInterruptTplLib/NestedInterruptTplLib.inf 708 } 709 !else 710 !error "Invalid TIMER_SUPPORT" 711 !endif 712 659 713 MdeModulePkg/Universal/Metronome/Metronome.inf 660 714 MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf … … 824 878 # 825 879 !if $(CRYPTO_PROTOCOL_SUPPORT) == TRUE 880 !if $(CRYPTO_DRIVER_EXTERNAL_SUPPORT) == FALSE 826 881 CryptoPkg/Driver/CryptoDxe.inf { 827 882 <LibraryClasses> … … 829 884 TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf 830 885 } 886 !endif 831 887 !endif 832 888
Note:
See TracChangeset
for help on using the changeset viewer.