Vishal Bhoj | 82c8071 | 2015-12-15 21:13:33 +0530 | [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.
|
| 7 | #
|
| 8 | # Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>
|
| 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.
|
| 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]
|
| 28 | ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
|
| 29 | FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
|
| 30 | SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
|
| 31 | ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
| 32 |
|
| 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.
|
| 52 | LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
|
| 53 |
|
| 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
|
| 58 | LibIIO|StdLib/LibC/Uefi/InteractiveIO/IIO.inf
|
| 59 |
|
| 60 | # Additional, non-standard, libraries
|
| 61 | LibContainer|StdLib/LibC/Containers/ContainerLib.inf
|
| 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
|
| 67 | DevShell|StdLib/LibC/Uefi/Devices/daShell.inf # DEPRECATED! Please use DevMedia for new code.
|
| 68 | DevMedia|StdLib/LibC/Uefi/Devices/daShell.inf
|
| 69 | DevUtility|StdLib/LibC/Uefi/Devices/daUtility.inf
|
| 70 |
|
| 71 | LuaLib|AppPkg/Applications/Lua/LuaLib.inf # Lua language library
|
| 72 |
|
| 73 | [LibraryClasses.ARM]
|
| 74 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
| 75 |
|
| 76 | [LibraryClasses.AArch64]
|
| 77 | NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
| 78 |
|
| 79 | [Components]
|
| 80 | # BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft
|
| 81 | # tool chain. This is required so that the library functions can be resolved during
|
| 82 | # the second pass of the linker during Link-time-code-generation.
|
| 83 | ###
|
| 84 | MdePkg/Library/BaseLib/BaseLib.inf {
|
| 85 | <BuildOptions>
|
| 86 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
|
| 87 | }
|
| 88 |
|
| 89 | MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {
|
| 90 | <BuildOptions>
|
| 91 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
|
| 92 | }
|
| 93 |
|
| 94 | ##########
|
| 95 | # Socket Layer
|
| 96 | ##########
|
| 97 | StdLib/SocketDxe/SocketDxe.inf
|
| 98 |
|
| 99 |
|
| 100 | ##############################################################################
|
| 101 | #
|
| 102 | # See the additional comments below if you plan to run applications under an
|
| 103 | # emulation environment.
|
| 104 | #
|
| 105 |
|
| 106 | [BuildOptions]
|
| 107 | !ifdef $(EMULATE)
|
| 108 | # The Build Options, below, are only used when building the Standard Libraries
|
| 109 | # to be run under an emulation environment; such as NT32Pkg.
|
| 110 | # They disable optimization which facillitates debugging under the Emulation environment.
|
| 111 | INTEL:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE
|
| 112 | MSFT:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE
|
| 113 | GCC:*_*_IA32_CC_FLAGS = -O0 -DUEFI_C_SOURCE
|
| 114 | RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm
|
| 115 | ARMGCC:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length
|
| 116 | XCODE:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized
|
| 117 |
|
| 118 | !else
|
| 119 | # These Build Options are used when building the Standard Libraries to be run
|
| 120 | # on real hardware.
|
| 121 | INTEL:*_*_*_CC_FLAGS = /Qfreestanding /D UEFI_C_SOURCE
|
| 122 | MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /D UEFI_C_SOURCE
|
| 123 | GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE
|
| 124 | RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm
|
| 125 | ARMGCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length
|
| 126 | XCODE:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized
|
| 127 | !endif
|