|
@@ -36,6 +36,11 @@
|
|
|
|
|
|
!include OvmfPkg/OvmfTpmDefines.dsc.inc
|
|
|
|
|
|
+ #
|
|
|
+ # Shell can be useful for debugging but should not be enabled for production
|
|
|
+ #
|
|
|
+ DEFINE BUILD_SHELL = TRUE
|
|
|
+
|
|
|
#
|
|
|
# Network definition
|
|
|
#
|
|
@@ -229,8 +234,11 @@
|
|
|
TlsLib|CryptoPkg/Library/TlsLib/TlsLib.inf
|
|
|
!endif
|
|
|
|
|
|
+!if $(BUILD_SHELL) == TRUE
|
|
|
ShellLib|ShellPkg/Library/UefiShellLib/UefiShellLib.inf
|
|
|
+!endif
|
|
|
ShellCEntryLib|ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
|
|
|
+
|
|
|
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
|
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
|
|
OrderedCollectionLib|MdePkg/Library/BaseOrderedCollectionRedBlackTreeLib/BaseOrderedCollectionRedBlackTreeLib.inf
|
|
@@ -895,7 +903,7 @@
|
|
|
OvmfPkg/Csm/Csm16/Csm16.inf
|
|
|
!endif
|
|
|
|
|
|
-!if $(TOOL_CHAIN_TAG) != "XCODE5"
|
|
|
+!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(BUILD_SHELL) == TRUE
|
|
|
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf {
|
|
|
<PcdsFixedAtBuild>
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
@@ -909,6 +917,7 @@
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
|
}
|
|
|
!endif
|
|
|
+!if $(BUILD_SHELL) == TRUE
|
|
|
ShellPkg/Application/Shell/Shell.inf {
|
|
|
<LibraryClasses>
|
|
|
ShellCommandLib|ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
|
|
@@ -931,6 +940,7 @@
|
|
|
gEfiShellPkgTokenSpaceGuid.PcdShellLibAutoInitialize|FALSE
|
|
|
gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|8000
|
|
|
}
|
|
|
+!endif
|
|
|
|
|
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
|
|
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|