Skip to content

Commit

Permalink
Disable Internal boot picker.
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Jan 2, 2024
1 parent 3361a58 commit 707007b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Include/Acidanthera/Library/OcBootManagementLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,12 @@ struct OC_PICKER_CONTEXT_ {
// Get entry icon.
//
OC_GET_ENTRY_ICON GetEntryIcon;
#ifndef CLOVER_BUILD
//
// Entry display routine.
//
OC_SHOW_MENU ShowMenu;
#endif
//
// Privilege escalation requesting routine.
//
Expand Down
5 changes: 5 additions & 0 deletions Library/OcBootManagementLib/OcBootManagementLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#include <Library/UefiLib.h>
#include <Library/ResetSystemLib.h>

#ifndef CLOVER_BUILD

STATIC UINT32 mSavedGopMode;
STATIC EFI_CONSOLE_CONTROL_SCREEN_MODE mSavedConsoleControlMode;
STATIC INT32 mSavedConsoleMode;
Expand Down Expand Up @@ -214,6 +216,7 @@ OcVerifyPassword (

return Result;
}
#endif

EFI_STATUS
InternalRunRequestPrivilege (
Expand Down Expand Up @@ -254,6 +257,7 @@ InternalRunRequestPrivilege (
return Status;
}

#ifndef CLOVER_BUILD
EFI_STATUS
OcRunBootPicker (
IN OC_PICKER_CONTEXT *Context
Expand Down Expand Up @@ -768,3 +772,4 @@ OcLaunchAppleBootPicker (

return Status;
}
#endif
2 changes: 2 additions & 0 deletions Library/OcTimerLib/OcTimerLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ GetTimeInNanoSecond (
return NanoSeconds;
}

#ifndef CLOVER_BUILD
/**
Return cached PerformanceCounterFrequency value.
Expand All @@ -246,6 +247,7 @@ GetTscFrequency (
{
return mTscFrequency;
}
#endif

/**
The constructor function caches PerformanceCounterFrequency.
Expand Down

0 comments on commit 707007b

Please sign in to comment.