PrmPkg.dsc 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. ## @file
  2. # Build description file for PrmPkg
  3. #
  4. # Copyright (C) Microsoft Corporation
  5. # Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
  6. # SPDX-License-Identifier: BSD-2-Clause-Patent
  7. ##
  8. [Defines]
  9. PLATFORM_NAME = Prm
  10. PLATFORM_GUID = C29BB610-84F9-448D-A7DD-5A04C5A54F52
  11. PLATFORM_VERSION = 0.1
  12. DSC_SPECIFICATION = 0x00010005
  13. OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
  14. SUPPORTED_ARCHITECTURES = IA32|X64|AARCH64
  15. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  16. SKUID_IDENTIFIER = DEFAULT
  17. DEFINE PLATFORM_PACKAGE = $(PLATFORM_NAME)Pkg
  18. [LibraryClasses.common]
  19. #
  20. # EDK II Packages
  21. #
  22. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  23. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  24. CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
  25. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  26. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  27. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  28. MemoryAllocationLib|MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
  29. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  30. PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
  31. PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
  32. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  33. RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
  34. RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
  35. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  36. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  37. [LibraryClasses.IA32, LibraryClasses.X64]
  38. MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
  39. [LibraryClasses.AARCH64]
  40. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  41. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  42. [LibraryClasses.common.DXE_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
  43. #
  44. # EDK II Packages
  45. #
  46. BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
  47. DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
  48. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  49. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  50. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  51. PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
  52. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  53. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  54. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  55. #
  56. # PRM Package
  57. #
  58. PrmContextBufferLib|$(PLATFORM_PACKAGE)/Library/DxePrmContextBufferLib/DxePrmContextBufferLib.inf
  59. PrmModuleDiscoveryLib|$(PLATFORM_PACKAGE)/Library/DxePrmModuleDiscoveryLib/DxePrmModuleDiscoveryLib.inf
  60. PrmPeCoffLib|$(PLATFORM_PACKAGE)/Library/DxePrmPeCoffLib/DxePrmPeCoffLib.inf
  61. [LibraryClasses.common.UEFI_APPLICATION]
  62. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  63. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  64. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  65. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  66. TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
  67. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  68. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  69. ################################################################################
  70. #
  71. # Pcd Section - List of PCD entries modified by this package
  72. #
  73. ################################################################################
  74. [PcdsFixedAtBuild.common]
  75. gPrmPkgTokenSpaceGuid.PcdPrmInfoPrintHandlerExecutionTime|FALSE
  76. ###################################################################################################
  77. #
  78. # Components Section - List of the modules and components that will be processed by compilation
  79. # tools and the EDK II tools to generate PE32/PE32+/Coff image file.
  80. #
  81. ###################################################################################################
  82. [Components]
  83. #
  84. # PRM Libraries
  85. #
  86. $(PLATFORM_PACKAGE)/Library/DxePrmContextBufferLib/DxePrmContextBufferLib.inf
  87. $(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/Library/DxeAcpiParameterBufferModuleConfigLib/DxeAcpiParameterBufferModuleConfigLib.inf
  88. $(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf
  89. $(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/Library/DxeHardwareAccessModuleConfigLib/DxeHardwareAccessModuleConfigLib.inf
  90. #
  91. # PRM Module Discovery Library
  92. #
  93. $(PLATFORM_PACKAGE)/Library/DxePrmModuleDiscoveryLib/DxePrmModuleDiscoveryLib.inf
  94. #
  95. # PRM PE/COFF Library
  96. #
  97. $(PLATFORM_PACKAGE)/Library/DxePrmPeCoffLib/DxePrmPeCoffLib.inf
  98. #
  99. # PRM Configuration Driver
  100. #
  101. $(PLATFORM_PACKAGE)/PrmConfigDxe/PrmConfigDxe.inf {
  102. <LibraryClasses>
  103. NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/Library/DxeAcpiParameterBufferModuleConfigLib/DxeAcpiParameterBufferModuleConfigLib.inf
  104. NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf
  105. NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/Library/DxeHardwareAccessModuleConfigLib/DxeHardwareAccessModuleConfigLib.inf
  106. }
  107. #
  108. # PRM Module Loader Driver
  109. #
  110. $(PLATFORM_PACKAGE)/PrmLoaderDxe/PrmLoaderDxe.inf
  111. #
  112. # PRM SSDT Installation Driver
  113. #
  114. $(PLATFORM_PACKAGE)/PrmSsdtInstallDxe/PrmSsdtInstallDxe.inf
  115. #
  116. # PRM Sample Modules
  117. #
  118. $(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/PrmSampleAcpiParameterBufferModule.inf
  119. $(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
  120. #
  121. # PRM Information UEFI Application
  122. #
  123. $(PLATFORM_PACKAGE)/Application/PrmInfo/PrmInfo.inf
  124. [Components.IA32, Components.X64]
  125. #
  126. # PRM Sample Modules for IA32 and X64
  127. #
  128. $(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.inf
  129. [Components.AARCH64]
  130. ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  131. # Add support for GCC stack protector
  132. MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  133. [BuildOptions]
  134. # Force deprecated interfaces off
  135. *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES