ArmPkg: remove redundant _ARM_PLATFORM_FLAGS overrides
[mirror_edk2.git] / ArmPkg / ArmPkg.dsc
1 #/** @file
2 # ARM processor package.
3 #
4 # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
5 # Copyright (c) 2011 - 2018, ARM Ltd. All rights reserved.<BR>
6 # Copyright (c) 2016, Linaro Ltd. All rights reserved.<BR>
7 #
8 # This program and the accompanying materials
9 # are licensed and made available under the terms and conditions of the BSD License
10 # which accompanies this distribution. The full text of the license may be found at
11 # http://opensource.org/licenses/bsd-license.php
12 #
13 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #
16 #**/
17
18 ################################################################################
19 #
20 # Defines Section - statements that will be processed to create a Makefile.
21 #
22 ################################################################################
23 [Defines]
24 PLATFORM_NAME = ArmPkg
25 PLATFORM_GUID = 5CFBD99E-3C43-4E7F-8054-9CDEAFF7710F
26 PLATFORM_VERSION = 0.1
27 DSC_SPECIFICATION = 0x00010005
28 OUTPUT_DIRECTORY = Build/Arm
29 SUPPORTED_ARCHITECTURES = ARM|AARCH64
30 BUILD_TARGETS = DEBUG|RELEASE|NOOPT
31 SKUID_IDENTIFIER = DEFAULT
32
33 [BuildOptions]
34 RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
35 *_*_*_CC_FLAGS = -DDISABLE_NEW_DEPRECATED_INTERFACES
36
37 [LibraryClasses.common]
38 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
39 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
40 CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
41 CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.inf
42 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
43 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
44 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
45 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
46 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
47 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
48 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
49 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
50 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
51 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
52 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
53 PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
54 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
55
56 NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
57 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
58 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
59
60 SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
61 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
62 DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
63 CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
64
65 CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
66 ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
67 ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
68 ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
69 ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
70 ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
71 OpteeLib|ArmPkg/Library/OpteeLib/OpteeLib.inf
72
73 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
74 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
75 SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
76
77 FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
78
79 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
80 FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
81 SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
82
83 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
84
85 ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
86 ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
87
88 ArmMtlLib|ArmPkg/Library/ArmMtlNullLib/ArmMtlNullLib.inf
89
90 [LibraryClasses.common.PEIM]
91 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
92 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
93 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
94 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
95 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
96
97 [LibraryClasses.ARM, LibraryClasses.AARCH64]
98 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
99
100 # Add support for GCC stack protector
101 NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
102
103 [Components.common]
104 ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
105 ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
106 ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
107 ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
108 ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
109 ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
110 ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
111 ArmPkg/Library/SemiHostingDebugLib/SemiHostingDebugLib.inf
112 ArmPkg/Library/SemiHostingSerialPortLib/SemiHostingSerialPortLib.inf
113 ArmPkg/Library/SemihostLib/SemihostLib.inf
114 ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
115 ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
116 ArmPkg/Library/ArmExceptionLib/ArmRelocateExceptionLib.inf
117
118 ArmPkg/Drivers/CpuDxe/CpuDxe.inf
119 ArmPkg/Drivers/CpuPei/CpuPei.inf
120 ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
121 ArmPkg/Drivers/ArmGic/ArmGicLib.inf
122 ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
123 ArmPkg/Drivers/TimerDxe/TimerDxe.inf
124
125 ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
126 ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
127
128 ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
129 ArmPkg/Library/ArmSmcLibNull/ArmSmcLibNull.inf
130 ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
131 ArmPkg/Library/ArmSvcLib/ArmSvcLib.inf
132 ArmPkg/Library/OpteeLib/OpteeLib.inf
133
134 ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
135
136 ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
137
138 ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
139 ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
140 ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
141 ArmPkg/Library/ArmGicArchSecLib/ArmGicArchSecLib.inf
142 ArmPkg/Library/ArmLib/ArmBaseLib.inf
143 ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
144 ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf
145 ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
146 ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
147
148 ArmPkg/Drivers/ArmScmiDxe/ArmScmiDxe.inf
149
150 [Components.AARCH64]
151 ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
152 ArmPkg/Library/StandaloneMmMmuLib/ArmMmuStandaloneMmLib.inf