]> git.proxmox.com Git - mirror_edk2.git/blob - StdLib/StdLib.dsc
Clean up DEC files:
[mirror_edk2.git] / StdLib / StdLib.dsc
1 ## @file
2 # Intel(r) UEFI Standard Libraries for EDK II.
3 # Build descriptions.
4 #
5 # See the comments in the [LibraryClasses.IA32] and [BuildOptions] sections
6 # for important information about configuring this package for your
7 # environment.
8 #
9 # This package contains:
10 # Standard C Library.
11 #
12 # Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
13 # This program and the accompanying materials
14 # are licensed and made available under the terms and conditions of the BSD License
15 # which accompanies this distribution. The full text of the license may be found at
16 # http://opensource.org/licenses/bsd-license.
17 #
18 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
19 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 ##
21
22 [Defines]
23 PLATFORM_NAME = StdLib
24 PLATFORM_GUID = 6135e67b-d813-4e4a-93c3-945d6af41858
25 PLATFORM_VERSION = 0.01
26 DSC_SPECIFICATION = 0x00010006
27 OUTPUT_DIRECTORY = Build/StdLib
28 SUPPORTED_ARCHITECTURES = IA32|IPF|X64
29 BUILD_TARGETS = DEBUG|RELEASE
30 SKUID_IDENTIFIER = DEFAULT
31
32 [PcdsFeatureFlag]
33
34 [PcdsFixedAtBuild]
35 gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f
36 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000
37
38 [PcdsFixedAtBuild.IPF]
39
40 [LibraryClasses]
41 #
42 # Entry Point Libraries
43 #
44 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
45 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
46 #
47 # Common Libraries
48 #
49 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
50 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
51 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
52 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
53 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
54 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
55 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
56 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
57 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
58 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
59 PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
60 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
61 PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf
62 PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf
63 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
64 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
65 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
66 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
67 PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf
68 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
69 ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
70 FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
71 SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf
72
73 #
74 # C Standard Libraries
75 #
76 LibC|StdLib/LibC/LibC.inf
77 LibStdLib|StdLib/LibC/StdLib/StdLib.inf
78 LibString|StdLib/LibC/String/String.inf
79 LibWchar|StdLib/LibC/Wchar/Wchar.inf
80 LibCType|StdLib/LibC/Ctype/Ctype.inf
81 LibTime|StdLib/LibC/Time/Time.inf
82 LibStdio|StdLib/LibC/Stdio/Stdio.inf
83 LibGdtoa|StdLib/LibC/gdtoa/gdtoa.inf
84 LibLocale|StdLib/LibC/Locale/Locale.inf
85 LibUefi|StdLib/LibC/Uefi/Uefi.inf
86 LibMath|StdLib/LibC/Math/Math.inf
87 LibSignal|StdLib/LibC/Signal/Signal.inf
88 LibNetUtil|StdLib/LibC/NetUtil/NetUtil.inf
89
90 [LibraryClasses.IA32]
91 TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf
92 ## Comment out the above line and un-comment the line below for running under Nt32 emulation.
93 # TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
94
95 [LibraryClasses.X64]
96 TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf
97
98 [LibraryClasses.IPF]
99 PalLib|MdePkg/Library/UefiPalLib/UefiPalLib.inf
100 TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf
101
102 ###################################################################################################
103 #
104 # Components Section - list of the modules and components that will be processed by compilation
105 # tools and the EDK II tools to generate PE32/PE32+/Coff image files.
106 #
107 # Note: The EDK II DSC file is not used to specify how compiled binary images get placed
108 # into firmware volume images. This section is just a list of modules to compile from
109 # source into UEFI-compliant binaries.
110 # It is the FDF file that contains information on combining binary files into firmware
111 # volume images, whose concept is beyond UEFI and is described in PI specification.
112 # Binary modules do not need to be listed in this section, as they should be
113 # specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),
114 # Logo (Logo.bmp), and etc.
115 # There may also be modules listed in this section that are not required in the FDF file,
116 # When a module listed here is excluded from FDF file, then UEFI-compliant binary will be
117 # generated for it, but the binary will not be put into any firmware volume.
118 #
119 ###################################################################################################
120
121 [Components]
122 # BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft
123 # tool chain. This is required so that the library functions can be resolved during
124 # the second pass of the linker during Link-time-code-generation.
125 ###
126 # MdePkg/Library/BaseLib/BaseLib.inf {
127 # <BuildOptions>
128 # MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
129 # }
130 #
131 # MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {
132 # <BuildOptions>
133 # MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
134 # }
135
136 # Standard C Libraries.
137 StdLib/LibC/LibC.inf
138 StdLib/LibC/StdLib/StdLib.inf
139 StdLib/LibC/String/String.inf
140 StdLib/LibC/Wchar/Wchar.inf
141 StdLib/LibC/Ctype/Ctype.inf
142 StdLib/LibC/Time/Time.inf
143 StdLib/LibC/Stdio/Stdio.inf
144 StdLib/LibC/gdtoa/gdtoa.inf
145 StdLib/LibC/Locale/Locale.inf
146 StdLib/LibC/Uefi/Uefi.inf
147 StdLib/LibC/Math/Math.inf
148 StdLib/LibC/Signal/Signal.inf
149 StdLib/LibC/NetUtil/NetUtil.inf
150
151
152 ################################################################
153 #
154 # See the additional comments below if you plan to run applications under the
155 # Nt32 emulation environment.
156 #
157
158 [BuildOptions]
159 INTEL:*_*_*_CC_FLAGS = /Qfreestanding
160 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t
161 GCC:*_*_*_CC_FLAGS = -ffreestanding -nostdinc -nostdlib
162
163 # The Build Options, below, are only used when building the C library
164 # to be run under the NT32 emulation. They disable the clock() system call
165 # which is currently incompatible with the NT32 environment.
166 # Just uncomment the lines below and select the correct TimerLib instance, above.
167
168 # INTEL:*_*_IA32_CC_FLAGS = /D NT32dvm
169 # MSFT:*_*_IA32_CC_FLAGS = /D NT32dvm
170 # GCC:*_*_IA32_CC_FLAGS = -DNT32dvm