VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/StdLib/StdLib.inc@ 63524

最後變更 在這個檔案從63524是 58459,由 vboxsync 提交於 9 年 前

EFI/Firmware: 'svn merge /vendor/edk2/UDK2010.SR1 /vendor/edk2/current .', reverting and removing files+dirs listed in ReadMe.vbox, resolving conflicts with help from ../UDK2014.SP1/. This is a raw untested merge.

  • 屬性 svn:eol-style 設為 native
檔案大小: 5.1 KB
 
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|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
30 SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf
31 PathLib|ShellPkg/Library/BasePathLib/BasePathLib.inf
32 ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
33
34 #
35 # C Standard Libraries
36 #
37 LibC|StdLib/LibC/LibC.inf
38 LibCType|StdLib/LibC/Ctype/Ctype.inf
39 LibLocale|StdLib/LibC/Locale/Locale.inf
40 LibMath|StdLib/LibC/Math/Math.inf
41 LibSignal|StdLib/LibC/Signal/Signal.inf
42 LibStdio|StdLib/LibC/Stdio/Stdio.inf
43 LibStdLib|StdLib/LibC/StdLib/StdLib.inf
44 LibString|StdLib/LibC/String/String.inf
45 LibTime|StdLib/LibC/Time/Time.inf
46 LibUefi|StdLib/LibC/Uefi/Uefi.inf
47 LibWchar|StdLib/LibC/Wchar/Wchar.inf
48
49# Common Utilities for Networking Libraries
50 LibNetUtil|StdLib/LibC/NetUtil/NetUtil.inf
51
52# Additional libraries for POSIX functionality.
53 LibPosix|StdLib/PosixLib/PosixLib.inf # Combines LibErr, LibGen, LibGlob, LibStringlist, GetPass into one library
54
55 LibErr|StdLib/PosixLib/Err/LibErr.inf
56 LibGen|StdLib/PosixLib/Gen/LibGen.inf
57 LibGlob|StdLib/PosixLib/Glob/LibGlob.inf
58 LibStringlist|StdLib/PosixLib/Stringlist/LibStringlist.inf
59 LibIIO|StdLib/LibC/Uefi/InteractiveIO/IIO.inf
60
61# Additional, non-standard, libraries
62 LibContainer|StdLib/LibC/Containers/ContainerLib.inf
63
64# Libraries for device abstractions within the Standard C Library
65# Applications should not directly access any functions defined in these libraries.
66 LibGdtoa|StdLib/LibC/gdtoa/gdtoa.inf
67 DevConsole|StdLib/LibC/Uefi/Devices/daConsole.inf
68 DevShell|StdLib/LibC/Uefi/Devices/daShell.inf
69 DevUtility|StdLib/LibC/Uefi/Devices/daUtility.inf
70
71[LibraryClasses.ARM]
72 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
73
74[LibraryClasses.AArch64]
75 NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
76
77[Components]
78# BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft
79# tool chain. This is required so that the library functions can be resolved during
80# the second pass of the linker during Link-time-code-generation.
81###
82 MdePkg/Library/BaseLib/BaseLib.inf {
83 <BuildOptions>
84 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
85 }
86
87 MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {
88 <BuildOptions>
89 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /GL-
90 }
91
92##########
93# Socket Layer
94##########
95 StdLib/SocketDxe/SocketDxe.inf
96
97
98##############################################################################
99#
100# See the additional comments below if you plan to run applications under an
101# emulation environment.
102#
103
104[BuildOptions]
105!ifndef $(EMULATE)
106 # These Build Options are used when building the Standard Libraries to be run
107 # on real hardware.
108 INTEL:*_*_*_CC_FLAGS = /Qfreestanding /D UEFI_C_SOURCE
109 MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /D UEFI_C_SOURCE
110 GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE
111 RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm
112 ARMGCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length
113 XCODE:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized
114
115!else
116 # The Build Options, below, are only used when building the Standard Libraries
117 # to be run under an emulation environment.
118 # They disable optimization which facillitates debugging under the Emulation environment.
119 INTEL:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE
120 MSFT:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE
121 GCC:*_*_IA32_CC_FLAGS = -O0 -DUEFI_C_SOURCE
122 RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm
123 ARMGCC:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length
124 XCODE:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized
125!endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette