X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=StdLib%2FStdLib.inc;h=1b7fcf0bae31acf3f8a550f4e1fa17de53469b4d;hb=92bea7c40f813dfef21422430b77712e06c22d50;hp=60f4cc4d1c68c69b261cfa85e715755717c4bef5;hpb=c21e7a7832f76260a27c5bde30f9593355909279;p=mirror_edk2.git diff --git a/StdLib/StdLib.inc b/StdLib/StdLib.inc index 60f4cc4d1c..1b7fcf0bae 100644 --- a/StdLib/StdLib.inc +++ b/StdLib/StdLib.inc @@ -26,9 +26,8 @@ [LibraryClasses.Common.UEFI_APPLICATION] ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf - FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf - SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf - PathLib|ShellPkg/Library/BasePathLib/BasePathLib.inf + FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf + SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf # @@ -65,9 +64,12 @@ # Applications should not directly access any functions defined in these libraries. LibGdtoa|StdLib/LibC/gdtoa/gdtoa.inf DevConsole|StdLib/LibC/Uefi/Devices/daConsole.inf - DevShell|StdLib/LibC/Uefi/Devices/daShell.inf + DevShell|StdLib/LibC/Uefi/Devices/daShell.inf # DEPRECATED! Please use DevMedia for new code. + DevMedia|StdLib/LibC/Uefi/Devices/daShell.inf DevUtility|StdLib/LibC/Uefi/Devices/daUtility.inf + LuaLib|AppPkg/Applications/Lua/LuaLib.inf # Lua language library + [LibraryClasses.ARM] NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf @@ -102,19 +104,9 @@ # [BuildOptions] -!ifndef $(EMULATE) - # These Build Options are used when building the Standard Libraries to be run - # on real hardware. - INTEL:*_*_*_CC_FLAGS = /Qfreestanding /D UEFI_C_SOURCE - MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /D UEFI_C_SOURCE - GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE - RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm - ARMGCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length - XCODE:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized - -!else +!ifdef $(EMULATE) # The Build Options, below, are only used when building the Standard Libraries - # to be run under an emulation environment. + # to be run under an emulation environment; such as NT32Pkg. # They disable optimization which facillitates debugging under the Emulation environment. INTEL:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE MSFT:*_*_IA32_CC_FLAGS = /Od /D UEFI_C_SOURCE @@ -122,4 +114,14 @@ RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm ARMGCC:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length XCODE:*_*_*_CC_FLAGS = -O0 -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized + +!else + # These Build Options are used when building the Standard Libraries to be run + # on real hardware. + INTEL:*_*_*_CC_FLAGS = /Qfreestanding /D UEFI_C_SOURCE + MSFT:*_*_*_CC_FLAGS = /X /Zc:wchar_t /D UEFI_C_SOURCE + GCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE + RVCT:*_*_*_CC_FLAGS = --library_interface=none -DUEFI_C_SOURCE -J$(WORKSPACE)/StdLib/Include -J$(WORKSPACE)/StdLib/Include/Arm + ARMGCC:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unknown-pragmas -Wno-unused -Wno-format-zero-length + XCODE:*_*_*_CC_FLAGS = -nostdinc -nostdlib -DUEFI_C_SOURCE -Wno-unused-const-variable -Wno-string-compare -Wno-sometimes-uninitialized !endif