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