ShellPkg.dsc 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. ## @file
  2. # Shell Package
  3. #
  4. # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR>
  5. # Copyright (c) 2018 - 2020, Arm Limited. All rights reserved.<BR>
  6. # Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
  7. # Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
  8. #
  9. # SPDX-License-Identifier: BSD-2-Clause-Patent
  10. #
  11. ##
  12. [Defines]
  13. PLATFORM_NAME = Shell
  14. PLATFORM_GUID = E1DC9BF8-7013-4c99-9437-795DAA45F3BD
  15. PLATFORM_VERSION = 1.02
  16. DSC_SPECIFICATION = 0x00010006
  17. OUTPUT_DIRECTORY = Build/Shell
  18. SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
  19. BUILD_TARGETS = DEBUG|RELEASE|NOOPT
  20. SKUID_IDENTIFIER = DEFAULT
  21. !include MdePkg/MdeLibs.dsc.inc
  22. [LibraryClasses.common]
  23. UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
  24. UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
  25. UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
  26. DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLibOptionalDevicePathProtocol.inf
  27. !if $(TARGET) == RELEASE
  28. DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
  29. !else
  30. DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
  31. !endif
  32. DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
  33. PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
  34. MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
  35. UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
  36. BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
  37. BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
  38. PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
  39. FileHandleLib|MdePkg/Library/UefiFileHandleLib/UefiFileHandleLib.inf
  40. SortLib|MdeModulePkg/Library/UefiSortLib/UefiSortLib.inf
  41. UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
  42. UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
  43. HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
  44. VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
  45. !include NetworkPkg/NetworkLibs.dsc.inc
  46. ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  47. ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  48. ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  49. HandleParsingLib|ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  50. OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
  51. PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BasePeCoffGetEntryPointLib.inf
  52. BcfgCommandLib|ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  53. AcpiViewCommandLib|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  54. IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
  55. UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
  56. HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
  57. PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
  58. DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
  59. DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
  60. ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseReportStatusCodeLibNull.inf
  61. [LibraryClasses.ARM,LibraryClasses.AARCH64]
  62. #
  63. # It is not possible to prevent the ARM compiler for generic intrinsic functions.
  64. # This library provides the instrinsic functions generate by a given compiler.
  65. # [LibraryClasses.ARM] and NULL mean link this library into all ARM images.
  66. #
  67. NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
  68. # Add support for GCC stack protector
  69. NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
  70. [PcdsFixedAtBuild]
  71. gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF
  72. gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|16000
  73. !ifdef $(NO_SHELL_PROFILES)
  74. gEfiShellPkgTokenSpaceGuid.PcdShellProfileMask|0x00
  75. !endif #$(NO_SHELL_PROFILES)
  76. [Components]
  77. #
  78. # Build all the libraries when building this package.
  79. # This helps developers test changes and how they affect the package.
  80. #
  81. ShellPkg/Library/UefiShellLib/UefiShellLib.inf
  82. ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  83. ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
  84. ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
  85. ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.inf
  86. ShellPkg/Library/UefiShellBcfgCommandLib/UefiShellBcfgCommandLib.inf
  87. ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  88. ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  89. ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  90. ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  91. ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  92. ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  93. ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  94. ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  95. ShellPkg/Application/Shell/Shell.inf {
  96. <PcdsFixedAtBuild>
  97. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  98. <LibraryClasses>
  99. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  100. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  101. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  102. !ifndef $(NO_SHELL_PROFILES)
  103. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  104. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  105. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  106. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  107. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  108. !endif #$(NO_SHELL_PROFILES)
  109. }
  110. #
  111. # Build a second version of the shell with all commands integrated
  112. #
  113. ShellPkg/Application/Shell/Shell.inf {
  114. <Defines>
  115. FILE_GUID = EA4BB293-2D7F-4456-A681-1F22F42CD0BC
  116. <PcdsFixedAtBuild>
  117. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  118. <LibraryClasses>
  119. NULL|ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
  120. NULL|ShellPkg/Library/UefiShellLevel1CommandsLib/UefiShellLevel1CommandsLib.inf
  121. NULL|ShellPkg/Library/UefiShellLevel3CommandsLib/UefiShellLevel3CommandsLib.inf
  122. NULL|ShellPkg/Library/UefiShellDriver1CommandsLib/UefiShellDriver1CommandsLib.inf
  123. NULL|ShellPkg/Library/UefiShellInstall1CommandsLib/UefiShellInstall1CommandsLib.inf
  124. NULL|ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.inf
  125. NULL|ShellPkg/Library/UefiShellNetwork1CommandsLib/UefiShellNetwork1CommandsLib.inf
  126. NULL|ShellPkg/Library/UefiShellNetwork2CommandsLib/UefiShellNetwork2CommandsLib.inf
  127. NULL|ShellPkg/Library/UefiShellAcpiViewCommandLib/UefiShellAcpiViewCommandLib.inf
  128. }
  129. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
  130. <PcdsFixedAtBuild>
  131. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  132. }
  133. ShellPkg/DynamicCommand/TftpDynamicCommand/TftpApp.inf
  134. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf {
  135. <PcdsFixedAtBuild>
  136. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  137. }
  138. ShellPkg/DynamicCommand/HttpDynamicCommand/HttpApp.inf
  139. ShellPkg/DynamicCommand/DpDynamicCommand/DpDynamicCommand.inf {
  140. <PcdsFixedAtBuild>
  141. gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
  142. }
  143. ShellPkg/DynamicCommand/DpDynamicCommand/DpApp.inf
  144. ShellPkg/Application/AcpiViewApp/AcpiViewApp.inf
  145. [BuildOptions]
  146. *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES