ShellPkg.dsc 7.7 KB

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