File ovmf-add-exclude-shell-flag.patch of Package ovmf.19611

Index: edk2-edk2-stable201911/OvmfPkg/OvmfPkgX64.fdf
===================================================================
--- edk2-edk2-stable201911.orig/OvmfPkg/OvmfPkgX64.fdf
+++ edk2-edk2-stable201911/OvmfPkg/OvmfPkgX64.fdf
@@ -282,7 +282,9 @@ INF  MdeModulePkg/Universal/Disk/UdfDxe/
 !if $(TOOL_CHAIN_TAG) != "XCODE5"
 INF  ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
 !endif
+!ifndef $(EXCLUDE_SHELL)
 INF  ShellPkg/Application/Shell/Shell.inf
+!endif
 
 INF MdeModulePkg/Logo/LogoDxe.inf
 
Index: edk2-edk2-stable201911/OvmfPkg/OvmfPkgIa32X64.fdf
===================================================================
--- edk2-edk2-stable201911.orig/OvmfPkg/OvmfPkgIa32X64.fdf
+++ edk2-edk2-stable201911/OvmfPkg/OvmfPkgIa32X64.fdf
@@ -282,7 +282,9 @@ INF  MdeModulePkg/Universal/Disk/UdfDxe/
 !if $(TOOL_CHAIN_TAG) != "XCODE5"
 INF  ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
 !endif
+!ifndef $(EXCLUDE_SHELL)
 INF  ShellPkg/Application/Shell/Shell.inf
+!endif
 
 INF MdeModulePkg/Logo/LogoDxe.inf
openSUSE Build Service is sponsored by