diff --git a/Docs/Configuration.pdf b/Docs/Configuration.pdf
index e5639ba2..f28996c8 100644
Binary files a/Docs/Configuration.pdf and b/Docs/Configuration.pdf differ
diff --git a/Docs/Configuration.tex b/Docs/Configuration.tex
index 3ff9c3ea..bee76382 100755
--- a/Docs/Configuration.tex
+++ b/Docs/Configuration.tex
@@ -1826,6 +1826,13 @@ rm vault.pub
reference for the entry. It is implementation defined whether this value is
used.
+\item
+ \texttt{Enabled}\\
+ \textbf{Type}: \texttt{plist\ boolean}\\
+ \textbf{Default value}: \texttt{false}\\
+ \textbf{Description}: This tool will not be listed unless set to
+ \texttt{true}.
+
\item
\texttt{Name}\\
\textbf{Type}: \texttt{plist\ string}\\
diff --git a/Docs/Differences/Differences.pdf b/Docs/Differences/Differences.pdf
index bbb65838..2297c0c3 100644
Binary files a/Docs/Differences/Differences.pdf and b/Docs/Differences/Differences.pdf differ
diff --git a/Docs/Differences/Differences.tex b/Docs/Differences/Differences.tex
index 9772c6ff..9465bbd9 100644
--- a/Docs/Differences/Differences.tex
+++ b/Docs/Differences/Differences.tex
@@ -1,7 +1,7 @@
\documentclass[]{article}
%DIF LATEXDIFF DIFFERENCE FILE
%DIF DEL PreviousConfiguration.tex Fri May 24 02:34:39 2019
-%DIF ADD ../Configuration.tex Sun Jun 9 16:31:33 2019
+%DIF ADD ../Configuration.tex Sun Jun 9 19:11:09 2019
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
@@ -1980,6 +1980,14 @@ rm vault.pub
used.
}
+\item
+ \texttt{\DIFadd{Enabled}}\\
+ \textbf{\DIFadd{Type}}\DIFadd{: }\texttt{\DIFadd{plist\ boolean}}\\
+ \textbf{\DIFadd{Default value}}\DIFadd{: }\texttt{\DIFadd{false}}\\
+ \textbf{\DIFadd{Description}}\DIFadd{: This tool will not be listed unless set to
+ }\texttt{\DIFadd{true}}\DIFadd{.
+}
+
\item
\texttt{\DIFadd{Name}}\\
\textbf{\DIFadd{Type}}\DIFadd{: }\texttt{\DIFadd{plist\ string}}\\
diff --git a/Docs/Sample.plist b/Docs/Sample.plist
index e787f66b..112e7340 100644
--- a/Docs/Sample.plist
+++ b/Docs/Sample.plist
@@ -430,6 +430,8 @@
UEFI Shell
Comment
Not signed for security reasons
+ Enabled
+
Path
Shell.efi
@@ -438,6 +440,8 @@
memcheck
Comment
Memory testing utility
+ Enabled
+
Path
memcheck/memcheck.efi
diff --git a/Docs/SampleFull.plist b/Docs/SampleFull.plist
index 1bea00e5..58f1180e 100644
--- a/Docs/SampleFull.plist
+++ b/Docs/SampleFull.plist
@@ -430,6 +430,8 @@
UEFI Shell
Comment
Not signed for security reasons
+ Enabled
+
Path
Shell.efi
@@ -438,6 +440,8 @@
memcheck
Comment
Memory testing utility
+ Enabled
+
Path
memcheck/memcheck.efi
diff --git a/Platform/OpenCore/OpenCoreMisc.c b/Platform/OpenCore/OpenCoreMisc.c
index fb40d0d0..b7b41561 100644
--- a/Platform/OpenCore/OpenCoreMisc.c
+++ b/Platform/OpenCore/OpenCoreMisc.c
@@ -322,6 +322,7 @@ OcMiscBoot (
OC_PICKER_CONTEXT *Context;
UINTN ContextSize;
UINT32 Index;
+ UINT32 ToolCount;
//
// Do not use our boot picker unless asked.
@@ -354,15 +355,21 @@ OcMiscBoot (
Context->ShowPicker = Config->Misc.Boot.ShowPicker;
Context->CustomBootGuid = CustomBootGuid;
Context->ExcludeHandle = LoadHandle;
- Context->CustomEntryCount = Config->Misc.Tools.Count;
Context->CustomEntryContext = Storage;
Context->CustomRead = OcToolLoadEntry;
+ ToolCount = 0;
+
for (Index = 0; Index < Context->CustomEntryCount; ++Index) {
- Context->CustomEntries[Index].Name = OC_BLOB_GET (&Config->Misc.Tools.Values[Index]->Name);
- Context->CustomEntries[Index].Path = OC_BLOB_GET (&Config->Misc.Tools.Values[Index]->Path);
+ if (Config->Misc.Tools.Values[Index]->Enabled) {
+ Context->CustomEntries[Index].Name = OC_BLOB_GET (&Config->Misc.Tools.Values[Index]->Name);
+ Context->CustomEntries[Index].Path = OC_BLOB_GET (&Config->Misc.Tools.Values[Index]->Path);
+ ++ToolCount;
+ }
}
+ Context->CustomEntryCount = ToolCount;
+
Status = OcRunSimpleBootPicker (
Context
);