]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/StdLib.dsc
Standard Libraries for EDK II.
[mirror_edk2.git] / StdLib / StdLib.dsc
diff --git a/StdLib/StdLib.dsc b/StdLib/StdLib.dsc
new file mode 100644 (file)
index 0000000..3024b02
--- /dev/null
@@ -0,0 +1,170 @@
+## @file\r
+#   Intel(r) UEFI Standard Libraries for EDK II.\r
+#   Build descriptions.\r
+#\r
+#   See the comments in the [LibraryClasses.IA32] and [BuildOptions] sections\r
+#   for important information about configuring this package for your\r
+#   environment.\r
+#\r
+# This package contains:\r
+#       Standard C Library.\r
+#\r
+#   Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
+#   This program and the accompanying materials\r
+#   are licensed and made available under the terms and conditions of the BSD License\r
+#   which accompanies this distribution. The full text of the license may be found at\r
+#   http://opensource.org/licenses/bsd-license.\r
+#\r
+#   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+##\r
+\r
+[Defines]\r
+  PLATFORM_NAME                  = StdLib\r
+  PLATFORM_GUID                  = 6135e67b-d813-4e4a-93c3-945d6af41858\r
+  PLATFORM_VERSION               = 0.01\r
+  DSC_SPECIFICATION              = 0x00010006\r
+  OUTPUT_DIRECTORY               = Build/StdLib\r
+  SUPPORTED_ARCHITECTURES        = IA32|IPF|X64\r
+  BUILD_TARGETS                  = DEBUG|RELEASE\r
+  SKUID_IDENTIFIER               = DEFAULT\r
+\r
+[PcdsFeatureFlag]\r
+\r
+[PcdsFixedAtBuild]\r
+  gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0f\r
+  gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000000\r
+\r
+[PcdsFixedAtBuild.IPF]\r
+\r
+[LibraryClasses]\r
+  #\r
+  # Entry Point Libraries\r
+  #\r
+  UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
+  ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r
+  #\r
+  # Common Libraries\r
+  #\r
+  BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
+  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
+  UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
+  PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
+  PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
+  MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
+  UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
+  UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
+  DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
+  DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
+  PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf\r
+  IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
+  PciLib|MdePkg/Library/BasePciLibCf8/BasePciLibCf8.inf\r
+  PciCf8Lib|MdePkg/Library/BasePciCf8Lib/BasePciCf8Lib.inf\r
+  SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
+  UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
+  HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r
+  UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r
+  PerformanceLib|MdeModulePkg/Library/DxePerformanceLib/DxePerformanceLib.inf\r
+  HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
+  ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
+  FileHandleLib|ShellPkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf\r
+  SortLib|ShellPkg/Library/UefiSortLib/UefiSortLib.inf\r
+\r
+  #\r
+  # C Standard Libraries\r
+  #\r
+  LibC|StdLib/LibC/LibC.inf\r
+  LibStdLib|StdLib/LibC/StdLib/StdLib.inf\r
+  LibString|StdLib/LibC/String/String.inf\r
+  LibWchar|StdLib/LibC/Wchar/Wchar.inf\r
+  LibCType|StdLib/LibC/Ctype/Ctype.inf\r
+  LibTime|StdLib/LibC/Time/Time.inf\r
+  LibStdio|StdLib/LibC/Stdio/Stdio.inf\r
+  LibGdtoa|StdLib/LibC/gdtoa/gdtoa.inf\r
+  LibLocale|StdLib/LibC/Locale/Locale.inf\r
+  LibUefi|StdLib/LibC/Uefi/Uefi.inf\r
+  LibMath|StdLib/LibC/Math/Math.inf\r
+  LibSignal|StdLib/LibC/Signal/Signal.inf\r
+  LibNetUtil|StdLib/LibC/NetUtil/NetUtil.inf\r
+\r
+[LibraryClasses.IA32]\r
+  TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf\r
+  ## Comment out the above line and un-comment the line below for running under Nt32 emulation.\r
+#  TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r
+\r
+[LibraryClasses.X64]\r
+  TimerLib|PerformancePkg/Library/DxeTscTimerLib/DxeTscTimerLib.inf\r
+\r
+[LibraryClasses.IPF]\r
+  PalLib|MdePkg/Library/UefiPalLib/UefiPalLib.inf\r
+  TimerLib|MdePkg/Library/SecPeiDxeTimerLibCpu/SecPeiDxeTimerLibCpu.inf\r
+\r
+###################################################################################################\r
+#\r
+# Components Section - list of the modules and components that will be processed by compilation\r
+#                      tools and the EDK II tools to generate PE32/PE32+/Coff image files.\r
+#\r
+# Note: The EDK II DSC file is not used to specify how compiled binary images get placed\r
+#       into firmware volume images. This section is just a list of modules to compile from\r
+#       source into UEFI-compliant binaries.\r
+#       It is the FDF file that contains information on combining binary files into firmware\r
+#       volume images, whose concept is beyond UEFI and is described in PI specification.\r
+#       Binary modules do not need to be listed in this section, as they should be\r
+#       specified in the FDF file. For example: Shell binary (Shell_Full.efi), FAT binary (Fat.efi),\r
+#       Logo (Logo.bmp), and etc.\r
+#       There may also be modules listed in this section that are not required in the FDF file,\r
+#       When a module listed here is excluded from FDF file, then UEFI-compliant binary will be\r
+#       generated for it, but the binary will not be put into any firmware volume.\r
+#\r
+###################################################################################################\r
+\r
+[Components]\r
+# BaseLib and BaseMemoryLib need to be built with the /GL- switch when using the Microsoft\r
+# tool chain.  This is required so that the library functions can be resolved during\r
+# the second pass of the linker during Link-time-code-generation.\r
+###\r
+#  MdePkg/Library/BaseLib/BaseLib.inf {\r
+#    <BuildOptions>\r
+#      MSFT:*_*_*_CC_FLAGS    = /X /Zc:wchar_t /GL-\r
+#  }\r
+#\r
+#  MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf {\r
+#    <BuildOptions>\r
+#      MSFT:*_*_*_CC_FLAGS    = /X /Zc:wchar_t /GL-\r
+#  }\r
+\r
+# Standard C Libraries.\r
+  StdLib/LibC/LibC.inf\r
+  StdLib/LibC/StdLib/StdLib.inf\r
+  StdLib/LibC/String/String.inf\r
+  StdLib/LibC/Wchar/Wchar.inf\r
+  StdLib/LibC/Ctype/Ctype.inf\r
+  StdLib/LibC/Time/Time.inf\r
+  StdLib/LibC/Stdio/Stdio.inf\r
+  StdLib/LibC/gdtoa/gdtoa.inf\r
+  StdLib/LibC/Locale/Locale.inf\r
+  StdLib/LibC/Uefi/Uefi.inf\r
+  StdLib/LibC/Math/Math.inf\r
+  StdLib/LibC/Signal/Signal.inf\r
+  StdLib/LibC/NetUtil/NetUtil.inf\r
+\r
+\r
+################################################################\r
+#\r
+# See the additional comments below if you plan to run applications under the\r
+# Nt32 emulation environment.\r
+#\r
+\r
+[BuildOptions]\r
+  INTEL:*_*_*_CC_FLAGS          = /Qfreestanding\r
+   MSFT:*_*_*_CC_FLAGS          = /X /Zc:wchar_t\r
+    GCC:*_*_*_CC_FLAGS          = -ffreestanding -nostdinc -nostdlib\r
+\r
+# The Build Options, below, are only used when building the C library\r
+# to be run under the NT32 emulation.  They disable the clock() system call\r
+# which is currently incompatible with the NT32 environment.\r
+# Just uncomment the lines below and select the correct TimerLib instance, above.\r
+\r
+  # INTEL:*_*_IA32_CC_FLAGS     = /D NT32dvm\r
+  #  MSFT:*_*_IA32_CC_FLAGS     = /D NT32dvm\r
+  #   GCC:*_*_IA32_CC_FLAGS     = -DNT32dvm\r