mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-06 18:37:43 +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
|
#define EFI_CPU_DATA_MAXIMUM_LENGTH 0x100
|
||||||
//const char CDM[16] = "sha2-384";
|
//const char CDM[16] = "sha2-384";
|
||||||
const char HW[16] = "x86legacyap";
|
//const char HW[16] = "x86legacyap";
|
||||||
|
|
||||||
// gDataHub
|
// gDataHub
|
||||||
/// A pointer to the DataHubProtocol
|
/// A pointer to the DataHubProtocol
|
||||||
@ -476,13 +476,16 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
|||||||
DeleteNvramVariable(L"MixNMatchPreventionStatus", gAppleSecureBootVariableGuid);
|
DeleteNvramVariable(L"MixNMatchPreventionStatus", gAppleSecureBootVariableGuid);
|
||||||
DeleteNvramVariable(L"CryptoDigestMethod", gAppleSecureBootVariableGuid);
|
DeleteNvramVariable(L"CryptoDigestMethod", gAppleSecureBootVariableGuid);
|
||||||
DeleteNvramVariable(L"InternalUseOnlyUnit", 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.
|
//Now we want manually install some SecureBoot Variables while boot.efi do this automatically.
|
||||||
//set same values
|
//set same values
|
||||||
UINT64 ecid = 0;
|
// UINT64 ecid = 0;
|
||||||
CopyMem(&ecid, &uuid, 8);
|
// CopyMem(&ecid, &uuid, 8);
|
||||||
SetNvramVariable(L"ApECID", gAppleSecureBootVariableGuid, Attributes, 8, &ecid);
|
// SetNvramVariable(L"ApECID", gAppleSecureBootVariableGuid, Attributes, 8, &ecid);
|
||||||
SetNvramVariable(L"HardwareModel", gAppleSecureBootVariableGuid, Attributes, 16, HW);
|
// SetNvramVariable(L"HardwareModel", gAppleSecureBootVariableGuid, Attributes, 16, HW);
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user