2 # Build description file for PrmPkg
4 # Copyright (C) Microsoft Corporation
5 # Copyright (c) 2022, Arm Limited. All rights reserved.<BR>
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
11 PLATFORM_GUID = C29BB610-84F9-448D-A7DD-5A04C5A54F52
12 PLATFORM_VERSION = 0.1
13 DSC_SPECIFICATION = 0x00010005
14 OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME)
15 SUPPORTED_ARCHITECTURES = IA32|X64|AARCH64
16 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
17 SKUID_IDENTIFIER = DEFAULT
19 DEFINE PLATFORM_PACKAGE = $(PLATFORM_NAME)Pkg
21 [LibraryClasses.common]
25 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
26 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
27 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
28 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
29 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
30 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
31 MemoryAllocationLib|MdeModulePkg/Library/BaseMemoryAllocationLibNull/BaseMemoryAllocationLibNull.inf
32 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
33 PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
34 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
35 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
36 RegisterFilterLib|MdePkg/Library/RegisterFilterLibNull/RegisterFilterLibNull.inf
37 RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
38 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
39 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
41 [LibraryClasses.IA32, LibraryClasses.X64]
42 MtrrLib|UefiCpuPkg/Library/MtrrLib/MtrrLib.inf
44 [LibraryClasses.AARCH64]
45 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
46 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
48 [LibraryClasses.common.DXE_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
52 BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
53 DevicePathLib|MdePkg/Library/UefiDevicePathLibDevicePathProtocol/UefiDevicePathLibDevicePathProtocol.inf
54 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
55 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
56 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
57 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
58 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
59 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
60 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
65 PrmContextBufferLib|$(PLATFORM_PACKAGE)/Library/DxePrmContextBufferLib/DxePrmContextBufferLib.inf
66 PrmModuleDiscoveryLib|$(PLATFORM_PACKAGE)/Library/DxePrmModuleDiscoveryLib/DxePrmModuleDiscoveryLib.inf
67 PrmPeCoffLib|$(PLATFORM_PACKAGE)/Library/DxePrmPeCoffLib/DxePrmPeCoffLib.inf
70 [LibraryClasses.common.UEFI_APPLICATION]
71 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
72 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
73 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
74 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
75 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
76 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
77 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
79 ################################################################################
81 # Pcd Section - List of PCD entries modified by this package
83 ################################################################################
85 [PcdsFixedAtBuild.common]
86 gPrmPkgTokenSpaceGuid.PcdPrmInfoPrintHandlerExecutionTime|FALSE
88 ###################################################################################################
90 # Components Section - List of the modules and components that will be processed by compilation
91 # tools and the EDK II tools to generate PE32/PE32+/Coff image file.
93 ###################################################################################################
99 $(PLATFORM_PACKAGE)/Library/DxePrmContextBufferLib/DxePrmContextBufferLib.inf
100 $(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/Library/DxeAcpiParameterBufferModuleConfigLib/DxeAcpiParameterBufferModuleConfigLib.inf
101 $(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf
102 $(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/Library/DxeHardwareAccessModuleConfigLib/DxeHardwareAccessModuleConfigLib.inf
103 $(PLATFORM_PACKAGE)/Test/UnitTest/Library/UefiBootServicesTableLibUnitTest/UefiBootServicesTableLibUnitTest.inf
106 # PRM Module Discovery Library
108 $(PLATFORM_PACKAGE)/Library/DxePrmModuleDiscoveryLib/DxePrmModuleDiscoveryLib.inf
111 # PRM PE/COFF Library
113 $(PLATFORM_PACKAGE)/Library/DxePrmPeCoffLib/DxePrmPeCoffLib.inf
116 # PRM Configuration Driver
118 $(PLATFORM_PACKAGE)/PrmConfigDxe/PrmConfigDxe.inf {
120 NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/Library/DxeAcpiParameterBufferModuleConfigLib/DxeAcpiParameterBufferModuleConfigLib.inf
121 NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/Library/DxeContextBufferModuleConfigLib/DxeContextBufferModuleConfigLib.inf
122 NULL|$(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/Library/DxeHardwareAccessModuleConfigLib/DxeHardwareAccessModuleConfigLib.inf
126 # PRM Module Loader Driver
128 $(PLATFORM_PACKAGE)/PrmLoaderDxe/PrmLoaderDxe.inf
131 # PRM SSDT Installation Driver
133 $(PLATFORM_PACKAGE)/PrmSsdtInstallDxe/PrmSsdtInstallDxe.inf
138 $(PLATFORM_PACKAGE)/Samples/PrmSampleAcpiParameterBufferModule/PrmSampleAcpiParameterBufferModule.inf
139 $(PLATFORM_PACKAGE)/Samples/PrmSampleContextBufferModule/PrmSampleContextBufferModule.inf
142 # PRM Information UEFI Application
144 $(PLATFORM_PACKAGE)/Application/PrmInfo/PrmInfo.inf
146 [Components.IA32, Components.X64]
148 # PRM Sample Modules for IA32 and X64
150 $(PLATFORM_PACKAGE)/Samples/PrmSampleHardwareAccessModule/PrmSampleHardwareAccessModule.inf
153 ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
155 # Add support for GCC stack protector
156 MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
159 # Force deprecated interfaces off
160 *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES