]>
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 | |
41b152c5 | 7 | #\r |
d78fab6b | 8 | # Copyright (c) 2011 - 2012, Intel Corporation. All rights reserved.<BR>\r |
41b152c5 | 9 | # This program and the accompanying materials\r |
10 | # are licensed and made available under the terms and conditions of the BSD License\r | |
11 | # which accompanies this distribution. The full text of the license may be found at\r | |
12 | # http://opensource.org/licenses/bsd-license.\r | |
13 | #\r | |
14 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
15 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
d7ce7006 | 16 | ################################################################\r |
17 | \r | |
18 | ##########\r | |
19 | # Socket Support Libraries\r | |
20 | ##########\r | |
21 | \r | |
22 | [LibraryClasses.common]\r | |
23 | BsdSocketLib|StdLib/BsdSocketLib/BsdSocketLib.inf\r | |
24 | EfiSocketLib|StdLib/EfiSocketLib/EfiSocketLib.inf\r | |
25 | UseSocketDxe|StdLib/UseSocketDxe/UseSocketDxe.inf\r | |
26 | \r | |
27 | [LibraryClasses.Common.UEFI_APPLICATION]\r | |
a7a8363d | 28 | ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r |
29 | FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r | |
30 | SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf\r | |
31 | PathLib|ShellPkg/Library/BasePathLib/BasePathLib.inf\r | |
32 | ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r | |
33 | \r | |
d7ce7006 | 34 | #\r |
35 | # C Standard Libraries\r | |
36 | #\r | |
37 | LibC|StdLib/LibC/LibC.inf\r | |
38 | LibCType|StdLib/LibC/Ctype/Ctype.inf\r | |
39 | LibLocale|StdLib/LibC/Locale/Locale.inf\r | |
40 | LibMath|StdLib/LibC/Math/Math.inf\r | |
41 | LibSignal|StdLib/LibC/Signal/Signal.inf\r | |
42 | LibStdio|StdLib/LibC/Stdio/Stdio.inf\r | |
43 | LibStdLib|StdLib/LibC/StdLib/StdLib.inf\r | |
44 | LibString|StdLib/LibC/String/String.inf\r | |
45 | LibTime|StdLib/LibC/Time/Time.inf\r | |
46 | LibUefi|StdLib/LibC/Uefi/Uefi.inf\r | |
47 | LibWchar|StdLib/LibC/Wchar/Wchar.inf\r | |
48 | \r | |
49 | # Common Utilities for Networking Libraries\r | |
50 | LibNetUtil|StdLib/LibC/NetUtil/NetUtil.inf\r | |
51 | \r | |
52 | # Additional libraries for POSIX functionality.\r | |
53 | LibErr|StdLib/PosixLib/Err/LibErr.inf\r | |
54 | LibGen|StdLib/PosixLib/Gen/LibGen.inf\r | |
55 | LibGlob|StdLib/PosixLib/Glob/LibGlob.inf\r | |
56 | LibStringlist|StdLib/PosixLib/Stringlist/LibStringlist.inf\r | |
6c6c850a | 57 | LibIIO|StdLib/LibC/Uefi/InteractiveIO/IIO.inf\r |
58 | \r | |
59 | # Additional, non-standard, libraries\r | |
60 | LibContainer|StdLib/LibC/Containers/ContainerLib.inf\r | |
d7ce7006 | 61 | \r |
62 | # Libraries for device abstractions within the Standard C Library\r | |
63 | # Applications should not directly access any functions defined in these libraries.\r | |
64 | LibGdtoa|StdLib/LibC/gdtoa/gdtoa.inf\r | |
65 | DevConsole|StdLib/LibC/Uefi/Devices/daConsole.inf\r | |
66 | DevShell|StdLib/LibC/Uefi/Devices/daShell.inf\r | |
67 | DevUtility|StdLib/LibC/Uefi/Devices/daUtility.inf\r | |
68 | \r | |
86a7f720 | 69 | [LibraryClasses.ARM]\r |
c614ca50 | 70 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r |
6ba46a92 HL |
71 | \r |
72 | [LibraryClasses.AArch64]\r | |
73 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf\r | |
c614ca50 | 74 | \r |
d7ce7006 | 75 | [Components]\r |
76 | # BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft\r | |
77 | # tool chain. This is required so that the library functions can be resolved during\r | |
78 | # the second pass of the linker during Link-time-code-generation.\r | |
79 | ###\r | |
80 | MdePkg/Library/BaseLib/BaseLib.inf {\r | |
81 | <BuildOptions>\r | |
82 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-\r | |
83 | }\r | |
84 | \r | |
85 | MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {\r | |
86 | <BuildOptions>\r | |
87 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-\r | |
88 | }\r | |
89 | \r | |
90 | ##########\r | |
91 | # Socket Layer\r | |
92 | ##########\r | |
93 | StdLib/SocketDxe/SocketDxe.inf\r | |
94 | \r | |
95 | \r | |
96 | ##############################################################################\r | |
97 | #\r | |
98 | # See the additional comments below if you plan to run applications under an\r | |
99 | # emulation environment.\r | |
100 | #\r | |
101 | \r | |
102 | [BuildOptions]\r | |
103 | !ifndef $(EMULATE)\r | |
104 | # These Build Options are used when building the Standard Libraries to be run\r | |
105 | # on real hardware.\r | |
d78fab6b | 106 | INTEL:*_*_*_CC_FLAGS = /Qfreestanding /D UEFI_C_SOURCE\r |
107 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /D UEFI_C_SOURCE\r | |
108 | GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE\r | |
109 | RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm\r | |
110 | ARMGCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length\r | |
d7ce7006 | 111 | \r |
112 | !else\r | |
113 | # The Build Options, below, are only used when building the Standard Libraries\r | |
8aa163da | 114 | # to be run under an emulation environment.\r |
115 | # They disable optimization which facillitates debugging under the Emulation environment.\r | |
d78fab6b | 116 | INTEL:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE\r |
117 | MSFT:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE\r | |
118 | GCC:*_*_IA32_CC_FLAGS = -O0 -DUEFI_C_SOURCE\r | |
119 | RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm\r | |
120 | ARMGCC:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length\r | |
d7ce7006 | 121 | !endif\r |