]>
Commit | Line | Data |
---|---|---|
d7ce7006 | 1 | ################################################################\r |
2 | # Boilerplate text to be included by any DSC file using the\r | |
3 | # Standard Libraries.\r | |
4 | #\r | |
5 | # The including DSC file must DEFINE the EMULATE macro if\r | |
6 | # the application is to be run in an emulation environment.\r | |
7 | ################################################################\r | |
8 | \r | |
9 | ##########\r | |
10 | # Socket Support Libraries\r | |
11 | ##########\r | |
12 | \r | |
13 | [LibraryClasses.common]\r | |
14 | BsdSocketLib|StdLib/BsdSocketLib/BsdSocketLib.inf\r | |
15 | EfiSocketLib|StdLib/EfiSocketLib/EfiSocketLib.inf\r | |
16 | UseSocketDxe|StdLib/UseSocketDxe/UseSocketDxe.inf\r | |
17 | \r | |
18 | [LibraryClasses.Common.UEFI_APPLICATION]\r | |
19 | #\r | |
20 | # C Standard Libraries\r | |
21 | #\r | |
22 | LibC|StdLib/LibC/LibC.inf\r | |
23 | LibCType|StdLib/LibC/Ctype/Ctype.inf\r | |
24 | LibLocale|StdLib/LibC/Locale/Locale.inf\r | |
25 | LibMath|StdLib/LibC/Math/Math.inf\r | |
26 | LibSignal|StdLib/LibC/Signal/Signal.inf\r | |
27 | LibStdio|StdLib/LibC/Stdio/Stdio.inf\r | |
28 | LibStdLib|StdLib/LibC/StdLib/StdLib.inf\r | |
29 | LibString|StdLib/LibC/String/String.inf\r | |
30 | LibTime|StdLib/LibC/Time/Time.inf\r | |
31 | LibUefi|StdLib/LibC/Uefi/Uefi.inf\r | |
32 | LibWchar|StdLib/LibC/Wchar/Wchar.inf\r | |
33 | \r | |
34 | # Common Utilities for Networking Libraries\r | |
35 | LibNetUtil|StdLib/LibC/NetUtil/NetUtil.inf\r | |
36 | \r | |
37 | # Additional libraries for POSIX functionality.\r | |
38 | LibErr|StdLib/PosixLib/Err/LibErr.inf\r | |
39 | LibGen|StdLib/PosixLib/Gen/LibGen.inf\r | |
40 | LibGlob|StdLib/PosixLib/Glob/LibGlob.inf\r | |
41 | LibStringlist|StdLib/PosixLib/Stringlist/LibStringlist.inf\r | |
42 | \r | |
43 | # Libraries for device abstractions within the Standard C Library\r | |
44 | # Applications should not directly access any functions defined in these libraries.\r | |
45 | LibGdtoa|StdLib/LibC/gdtoa/gdtoa.inf\r | |
46 | DevConsole|StdLib/LibC/Uefi/Devices/daConsole.inf\r | |
47 | DevShell|StdLib/LibC/Uefi/Devices/daShell.inf\r | |
48 | DevUtility|StdLib/LibC/Uefi/Devices/daUtility.inf\r | |
49 | \r | |
50 | ###\r | |
51 | # Select the correct TimerLib instance depending upon whether running under\r | |
52 | # an emulation environment, or not.\r | |
53 | !ifndef $(EMULATE)\r | |
54 | # Not running in an Emulation Environment\r | |
55 | [LibraryClasses.IA32.UEFI_APPLICATION]\r | |
56 | TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf\r | |
57 | \r | |
58 | [LibraryClasses.X64.UEFI_APPLICATION]\r | |
59 | TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf\r | |
60 | \r | |
61 | [LibraryClasses.IPF.UEFI_APPLICATION]\r | |
62 | PalLib|MdePkg/Library/UefiPalLib/UefiPalLib.inf\r | |
63 | TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r | |
64 | \r | |
65 | !else\r | |
274402de | 66 | # Use this instance if Running in an Emulation Environment.\r |
d7ce7006 | 67 | [LibraryClasses.Common.UEFI_APPLICATION]\r |
68 | TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r | |
69 | !endif\r | |
70 | \r | |
71 | [Components]\r | |
72 | # BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft\r | |
73 | # tool chain. This is required so that the library functions can be resolved during\r | |
74 | # the second pass of the linker during Link-time-code-generation.\r | |
75 | ###\r | |
76 | MdePkg/Library/BaseLib/BaseLib.inf {\r | |
77 | <BuildOptions>\r | |
78 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-\r | |
79 | }\r | |
80 | \r | |
81 | MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {\r | |
82 | <BuildOptions>\r | |
83 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-\r | |
84 | }\r | |
85 | \r | |
86 | ##########\r | |
87 | # Socket Layer\r | |
88 | ##########\r | |
89 | StdLib/SocketDxe/SocketDxe.inf\r | |
90 | \r | |
91 | \r | |
92 | ##############################################################################\r | |
93 | #\r | |
94 | # See the additional comments below if you plan to run applications under an\r | |
95 | # emulation environment.\r | |
96 | #\r | |
97 | \r | |
98 | [BuildOptions]\r | |
99 | !ifndef $(EMULATE)\r | |
100 | # These Build Options are used when building the Standard Libraries to be run\r | |
101 | # on real hardware.\r | |
102 | INTEL:*_*_*_CC_FLAGS = /Qfreestanding\r | |
103 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t\r | |
104 | GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib\r | |
105 | \r | |
106 | !else\r | |
107 | # The Build Options, below, are only used when building the Standard Libraries\r | |
108 | # to be run under an emulation environment. They disable the clock() system call\r | |
109 | # which is currently incompatible with the most emulation environments.\r | |
110 | # Select the correct TimerLib instance, above.\r | |
111 | INTEL:*_*_IA32_CC_FLAGS = /Od /D NT32dvm\r | |
112 | MSFT:*_*_IA32_CC_FLAGS = /Od /D NT32dvm\r | |
113 | GCC:*_*_IA32_CC_FLAGS = -O0 -DNT32dvm\r | |
114 | !endif\r |