mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
revert commit f63935
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
9cdae6f9d1
commit
9d6f4fa5a3
@ -52,7 +52,7 @@
|
||||
|
||||
#define EFI_CPU_DATA_MAXIMUM_LENGTH 0x100
|
||||
//const char CDM[16] = "sha2-384";
|
||||
const char HW[16] = "x86legacyap";
|
||||
//const char HW[16] = "x86legacyap";
|
||||
|
||||
// gDataHub
|
||||
/// A pointer to the DataHubProtocol
|
||||
@ -476,13 +476,16 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
||||
DeleteNvramVariable(L"MixNMatchPreventionStatus", gAppleSecureBootVariableGuid);
|
||||
DeleteNvramVariable(L"CryptoDigestMethod", gAppleSecureBootVariableGuid);
|
||||
DeleteNvramVariable(L"InternalUseOnlyUnit", gAppleSecureBootVariableGuid);
|
||||
DeleteNvramVariable(L"ApECID", gAppleSecureBootVariableGuid);
|
||||
DeleteNvramVariable(L"HardwareModel", gAppleSecureBootVariableGuid);
|
||||
|
||||
|
||||
//Now we want manually install some SecureBoot Variables while boot.efi do this automatically.
|
||||
//set same values
|
||||
UINT64 ecid = 0;
|
||||
CopyMem(&ecid, &uuid, 8);
|
||||
SetNvramVariable(L"ApECID", gAppleSecureBootVariableGuid, Attributes, 8, &ecid);
|
||||
SetNvramVariable(L"HardwareModel", gAppleSecureBootVariableGuid, Attributes, 16, HW);
|
||||
// UINT64 ecid = 0;
|
||||
// CopyMem(&ecid, &uuid, 8);
|
||||
// SetNvramVariable(L"ApECID", gAppleSecureBootVariableGuid, Attributes, 8, &ecid);
|
||||
// SetNvramVariable(L"HardwareModel", gAppleSecureBootVariableGuid, Attributes, 16, HW);
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user