• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#/** @file
2# ARM processor package.
3#
4# Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>
5# Copyright (c) 2011 - 2015, 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
31  SKUID_IDENTIFIER               = DEFAULT
32
33[BuildOptions]
34  XCODE:*_*_ARM_PLATFORM_FLAGS  == -arch armv7
35  GCC:*_*_ARM_PLATFORM_FLAGS    == -march=armv7-a -mfpu=neon
36  # We use A15 to get the Secure and Virtualization extensions
37  RVCT:*_*_ARM_PLATFORM_FLAGS  == --cpu Cortex-A15
38
39  RELEASE_*_*_CC_FLAGS  = -DMDEPKG_NDEBUG
40  *_*_*_CC_FLAGS  = -DDISABLE_NEW_DEPRECATED_INTERFACES
41
42[LibraryClasses.common]
43  BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
44  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
45  CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
46  DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
47  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
48  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
49  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
50  PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
51  TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
52  UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
53  UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
54  UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
55  DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
56  UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
57  PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
58  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
59
60  NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf
61  UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
62  HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
63
64  SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
65  UncachedMemoryAllocationLib|ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
66  DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
67  DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
68  CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
69
70  CpuLib|MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
71  ArmGicLib|ArmPkg/Drivers/ArmGic/ArmGicLib.inf
72  ArmGicArchLib|ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
73  ArmGenericTimerCounterLib|ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
74  ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
75  ArmDisassemblerLib|ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
76  DmaLib|ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
77
78  UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
79  PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
80  SerialPortLib|MdePkg/Library/BaseSerialPortLibNull/BaseSerialPortLibNull.inf
81
82  BdsLib|ArmPkg/Library/BdsLib/BdsLib.inf
83  FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
84
85  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
86  FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
87  SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
88
89  IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
90
91  ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
92  ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
93
94[LibraryClasses.common.PEIM]
95  HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
96  PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
97  MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
98  PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
99  PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
100
101[LibraryClasses.ARM, LibraryClasses.AARCH64]
102  NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
103
104  # Add support for GCC stack protector
105  NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
106
107[Components.common]
108  ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
109  ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf
110  ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf
111  ArmPkg/Library/BdsLib/BdsLib.inf
112  ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
113  ArmPkg/Library/DebugAgentSymbolsBaseLib/DebugAgentSymbolsBaseLib.inf
114  ArmPkg/Library/DebugPeCoffExtraActionLib/DebugPeCoffExtraActionLib.inf
115  ArmPkg/Library/DebugUncachedMemoryAllocationLib/DebugUncachedMemoryAllocationLib.inf
116  ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
117  ArmPkg/Library/RvdPeCoffExtraActionLib/RvdPeCoffExtraActionLib.inf
118  ArmPkg/Library/SemiHostingDebugLib/SemiHostingDebugLib.inf
119  ArmPkg/Library/SemiHostingSerialPortLib/SemiHostingSerialPortLib.inf
120  ArmPkg/Library/SemihostLib/SemihostLib.inf
121  ArmPkg/Library/UncachedMemoryAllocationLib/UncachedMemoryAllocationLib.inf
122  ArmPkg/Library/ArmPsciResetSystemLib/ArmPsciResetSystemLib.inf
123  ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
124  ArmPkg/Library/ArmExceptionLib/ArmRelocateExceptionLib.inf
125
126  ArmPkg/Drivers/CpuDxe/CpuDxe.inf
127  ArmPkg/Drivers/CpuPei/CpuPei.inf
128  ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
129  ArmPkg/Drivers/ArmGic/ArmGicLib.inf
130  ArmPkg/Drivers/ArmGic/ArmGicSecLib.inf
131  ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
132  ArmPkg/Drivers/TimerDxe/TimerDxe.inf
133
134  ArmPkg/Library/ArmGenericTimerPhyCounterLib/ArmGenericTimerPhyCounterLib.inf
135  ArmPkg/Library/ArmGenericTimerVirtCounterLib/ArmGenericTimerVirtCounterLib.inf
136
137  ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
138  ArmPkg/Library/ArmSmcLibNull/ArmSmcLibNull.inf
139  ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
140
141  ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
142
143  ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
144
145  ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
146  ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
147  ArmPkg/Library/ArmGicArchLib/ArmGicArchLib.inf
148  ArmPkg/Library/ArmGicArchSecLib/ArmGicArchSecLib.inf
149  ArmPkg/Library/ArmLib/ArmBaseLib.inf
150  ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
151  ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLibBase.inf
152  ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
153  ArmPkg/Library/PlatformBootManagerLib/PlatformBootManagerLib.inf
154
155[Components.ARM]
156  ArmPkg/Drivers/ArmCpuLib/ArmCortexA8Lib/ArmCortexA8Lib.inf
157  ArmPkg/Drivers/ArmCpuLib/ArmCortexA9Lib/ArmCortexA9Lib.inf
158  ArmPkg/Drivers/ArmCpuLib/ArmCortexA15Lib/ArmCortexA15Lib.inf
159
160[Components.AARCH64]
161  ArmPkg/Drivers/ArmCpuLib/ArmCortexAEMv8Lib/ArmCortexAEMv8Lib.inf
162  ArmPkg/Drivers/ArmCpuLib/ArmCortexA5xLib/ArmCortexA5xLib.inf
163  ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
164