darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 1 | ################################################################
|
| 2 | # Boilerplate text to be included by any DSC file using the
|
| 3 | # Standard Libraries.
|
| 4 | #
|
| 5 | # The including DSC file must DEFINE the EMULATE macro if
|
| 6 | # the application is to be run in an emulation environment.
|
darylm503 | 41b152c | 2011-10-03 18:54:12 +0000 | [diff] [blame] | 7 | #
|
Daryl McDaniel | caf89d6 | 2014-07-17 01:55:23 +0000 | [diff] [blame] | 8 | # Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
darylm503 | 41b152c | 2011-10-03 18:54:12 +0000 | [diff] [blame] | 9 | # This program and the accompanying materials
|
| 10 | # are licensed and made available under the terms and conditions of the BSD License
|
| 11 | # which accompanies this distribution. The full text of the license may be found at
|
| 12 | # http://opensource.org/licenses/bsd-license.
|
| 13 | #
|
| 14 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 15 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 16 | ################################################################
|
| 17 |
|
| 18 | ##########
|
| 19 | # Socket Support Libraries
|
| 20 | ##########
|
| 21 |
|
| 22 | [LibraryClasses.common]
|
| 23 | BsdSocketLib|StdLib/BsdSocketLib/BsdSocketLib.inf
|
| 24 | EfiSocketLib|StdLib/EfiSocketLib/EfiSocketLib.inf
|
| 25 | UseSocketDxe|StdLib/UseSocketDxe/UseSocketDxe.inf
|
| 26 |
|
| 27 | [LibraryClasses.Common.UEFI_APPLICATION]
|
darylm503 | a7a8363 | 2012-06-15 19:58:39 +0000 | [diff] [blame] | 28 | ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
|
Daryl McDaniel | 6a013e5 | 2015-01-13 23:35:33 +0000 | [diff] [blame] | 29 | FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
|
| 30 | SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
|
darylm503 | a7a8363 | 2012-06-15 19:58:39 +0000 | [diff] [blame] | 31 | ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
| 32 |
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 33 | #
|
| 34 | # C Standard Libraries
|
| 35 | #
|
| 36 | LibC|StdLib/LibC/LibC.inf
|
| 37 | LibCType|StdLib/LibC/Ctype/Ctype.inf
|
| 38 | LibLocale|StdLib/LibC/Locale/Locale.inf
|
| 39 | LibMath|StdLib/LibC/Math/Math.inf
|
| 40 | LibSignal|StdLib/LibC/Signal/Signal.inf
|
| 41 | LibStdio|StdLib/LibC/Stdio/Stdio.inf
|
| 42 | LibStdLib|StdLib/LibC/StdLib/StdLib.inf
|
| 43 | LibString|StdLib/LibC/String/String.inf
|
| 44 | LibTime|StdLib/LibC/Time/Time.inf
|
| 45 | LibUefi|StdLib/LibC/Uefi/Uefi.inf
|
| 46 | LibWchar|StdLib/LibC/Wchar/Wchar.inf
|
| 47 |
|
| 48 | # Common Utilities for Networking Libraries
|
| 49 | LibNetUtil|StdLib/LibC/NetUtil/NetUtil.inf
|
| 50 |
|
| 51 | # Additional libraries for POSIX functionality.
|
Daryl McDaniel | caf89d6 | 2014-07-17 01:55:23 +0000 | [diff] [blame] | 52 | LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
|
| 53 |
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 54 | LibErr|StdLib/PosixLib/Err/LibErr.inf
|
| 55 | LibGen|StdLib/PosixLib/Gen/LibGen.inf
|
| 56 | LibGlob|StdLib/PosixLib/Glob/LibGlob.inf
|
| 57 | LibStringlist|StdLib/PosixLib/Stringlist/LibStringlist.inf
|
darylm503 | 6c6c850 | 2012-12-11 21:19:14 +0000 | [diff] [blame] | 58 | LibIIO|StdLib/LibC/Uefi/InteractiveIO/IIO.inf
|
| 59 |
|
| 60 | # Additional, non-standard, libraries
|
| 61 | LibContainer|StdLib/LibC/Containers/ContainerLib.inf
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 62 |
|
| 63 | # Libraries for device abstractions within the Standard C Library
|
| 64 | # Applications should not directly access any functions defined in these libraries.
|
| 65 | LibGdtoa|StdLib/LibC/gdtoa/gdtoa.inf
|
| 66 | DevConsole|StdLib/LibC/Uefi/Devices/daConsole.inf
|
Daryl McDaniel | efb419e | 2014-09-18 19:13:22 +0000 | [diff] [blame] | 67 | DevShell|StdLib/LibC/Uefi/Devices/daShell.inf # DEPRECATED! Please use DevMedia for new code.
|
| 68 | DevMedia|StdLib/LibC/Uefi/Devices/daShell.inf
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 69 | DevUtility|StdLib/LibC/Uefi/Devices/daUtility.inf
|
| 70 |
|
darylm503 | 16a5fed | 2014-11-07 20:18:01 +0000 | [diff] [blame] | 71 | LuaLib|AppPkg/Applications/Lua/LuaLib.inf # Lua language library
|
| 72 |
|
lpleahy | 86a7f72 | 2012-06-26 17:48:28 +0000 | [diff] [blame] | 73 | [LibraryClasses.ARM]
|
darylm503 | c614ca5 | 2011-09-16 20:59:10 +0000 | [diff] [blame] | 74 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
NetBSD project | 3352b62 | 2015-07-30 09:50:51 +0000 | [diff] [blame] | 75 | NULL|StdLib/LibC/Softfloat/Softfloat.inf
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 76 |
|
Olivier Martin | b393333 | 2015-07-30 09:50:43 +0000 | [diff] [blame] | 77 | # Add support for GCC stack protector
|
| 78 | NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
| 79 |
|
Harry Liebel | 6ba46a9 | 2013-07-23 18:51:51 +0000 | [diff] [blame] | 80 | [LibraryClasses.AArch64]
|
| 81 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
| 82 |
|
Harry Liebel | 1bbb83b | 2015-07-30 09:51:04 +0000 | [diff] [blame] | 83 | # Use the softfloat library to cover missing hardfloat operations.
|
| 84 | NULL|StdLib/LibC/Softfloat/Softfloat.inf
|
| 85 |
|
Olivier Martin | b393333 | 2015-07-30 09:50:43 +0000 | [diff] [blame] | 86 | # Add support for GCC stack protector
|
| 87 | NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
| 88 |
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 89 | [Components]
|
| 90 | # BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft
|
| 91 | # tool chain. This is required so that the library functions can be resolved during
|
| 92 | # the second pass of the linker during Link-time-code-generation.
|
| 93 | ###
|
| 94 | MdePkg/Library/BaseLib/BaseLib.inf {
|
| 95 | <BuildOptions>
|
| 96 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
|
| 97 | }
|
| 98 |
|
| 99 | MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {
|
| 100 | <BuildOptions>
|
| 101 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
|
| 102 | }
|
| 103 |
|
| 104 | ##########
|
| 105 | # Socket Layer
|
| 106 | ##########
|
| 107 | StdLib/SocketDxe/SocketDxe.inf
|
| 108 |
|
| 109 |
|
| 110 | ##############################################################################
|
| 111 | #
|
| 112 | # See the additional comments below if you plan to run applications under an
|
| 113 | # emulation environment.
|
| 114 | #
|
| 115 |
|
| 116 | [BuildOptions]
|
darylm503 | 16a5fed | 2014-11-07 20:18:01 +0000 | [diff] [blame] | 117 | !ifdef $(EMULATE)
|
| 118 | # The Build Options, below, are only used when building the Standard Libraries
|
| 119 | # to be run under an emulation environment; such as NT32Pkg.
|
| 120 | # They disable optimization which facillitates debugging under the Emulation environment.
|
| 121 | INTEL:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE
|
| 122 | MSFT:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE
|
| 123 | GCC:*_*_IA32_CC_FLAGS = -O0 -DUEFI_C_SOURCE
|
| 124 | RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm
|
darylm503 | 16a5fed | 2014-11-07 20:18:01 +0000 | [diff] [blame] | 125 | XCODE:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized
|
| 126 |
|
| 127 | !else
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 128 | # These Build Options are used when building the Standard Libraries to be run
|
| 129 | # on real hardware.
|
Andrew Fish | c21e7a7 | 2014-09-09 21:59:08 +0000 | [diff] [blame] | 130 | INTEL:*_*_*_CC_FLAGS = /Qfreestanding /D UEFI_C_SOURCE
|
| 131 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /D UEFI_C_SOURCE
|
| 132 | GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE
|
| 133 | RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm
|
Andrew Fish | c21e7a7 | 2014-09-09 21:59:08 +0000 | [diff] [blame] | 134 | XCODE:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized
|
darylm503 | d7ce700 | 2011-07-30 00:30:44 +0000 | [diff] [blame] | 135 | !endif
|