PrmPkg.dsc 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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. $(PLATFORM_PACKAGE)/Test/UnitTest/Library/UefiBootServicesTableLibUnitTest/UefiBootServicesTableLibUnitTest.inf
  91. #
  92. # PRM Module Discovery Library
  93. #
  94. $(PLATFORM_PACKAGE)/Library/DxePrmModuleDiscoveryLib/DxePrmModuleDiscoveryLib.inf
  95. #
  96. # PRM PE/COFF Library
  97. #
  98. $(PLATFORM_PACKAGE)/Library/DxePrmPeCoffLib/DxePrmPeCoffLib.inf
  99. #
  100. # PRM Configuration Driver
  101. #
  102. $(PLATFORM_PACKAGE)/PrmConfigDxe/PrmConfigDxe.inf {
  103. <LibraryClasses>
  104. NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/Library/DxeAcpiParameterBufferModuleConfigLib/DxeAcpiParameterBufferModuleConfigLib.inf
  105. NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf
  106. NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/Library/DxeHardwareAccessModuleConfigLib/DxeHardwareAccessModuleConfigLib.inf
  107. }
  108. #
  109. # PRM Module Loader Driver
  110. #
  111. $(PLATFORM_PACKAGE)/PrmLoaderDxe/PrmLoaderDxe.inf
  112. #
  113. # PRM SSDT Installation Driver
  114. #
  115. $(PLATFORM_PACKAGE)/PrmSsdtInstallDxe/PrmSsdtInstallDxe.inf
  116. #
  117. # PRM Sample Modules
  118. #
  119. $(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/PrmSampleAcpiParameterBufferModule.inf
  120. $(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
  121. #
  122. # PRM Information UEFI Application
  123. #
  124. $(PLATFORM_PACKAGE)/Application/PrmInfo/PrmInfo.inf
  125. [Components.IA32, Components.X64]
  126. #
  127. # PRM Sample Modules for IA32 and X64
  128. #
  129. $(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.inf
  130. [Components.AARCH64]
  131. ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  132. # Add support for GCC stack protector
  133. MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  134. [BuildOptions]
  135. # Force deprecated interfaces off
  136. *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES