mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-06 18:37:43 +01:00
some research
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
629515fbfa
commit
6e94e88437
@ -6,8 +6,8 @@
|
|||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Clover r5149\n"
|
"Project-Id-Version: Clover r5150\n"
|
||||||
"POT-Creation-Date: 2022-10-17 22:07+0300\n"
|
"POT-Creation-Date: 2022-12-17 13:55+0300\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -398,6 +398,10 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gSettings.RtVariables.HWTarget.isEmpty()) {
|
if (gSettings.RtVariables.HWTarget.isEmpty()) {
|
||||||
|
// if (Entry->macOSVersion >= MacOsVersion("13"_XS8)) {
|
||||||
|
//test legacy model
|
||||||
|
// GlobalConfig.CurrentModel = iMac183;
|
||||||
|
// }
|
||||||
gSettings.RtVariables.HWTarget = GetHWTarget(GlobalConfig.CurrentModel);
|
gSettings.RtVariables.HWTarget = GetHWTarget(GlobalConfig.CurrentModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -412,7 +416,7 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
|||||||
|
|
||||||
|
|
||||||
if (gSettings.RtVariables.HWTarget.notEmpty() && (Entry->LoaderType != OSTYPE_OSX_INSTALLER) &&
|
if (gSettings.RtVariables.HWTarget.notEmpty() && (Entry->LoaderType != OSTYPE_OSX_INSTALLER) &&
|
||||||
(Entry->macOSVersion < MacOsVersion("13"_XS8)) ) {
|
(Entry->macOSVersion < MacOsVersion("13"_XS8)) ) { //test legacy model
|
||||||
SetNvramXString8(L"BridgeOSHardwareModel", gEfiAppleNvramGuid, Attributes, gSettings.RtVariables.HWTarget);
|
SetNvramXString8(L"BridgeOSHardwareModel", gEfiAppleNvramGuid, Attributes, gSettings.RtVariables.HWTarget);
|
||||||
// SetNvramVariable(L"BridgeOSBootSessionUUID", gEfiAppleBootGuid, Attributes, sizeof(uuid), &uuid);
|
// SetNvramVariable(L"BridgeOSBootSessionUUID", gEfiAppleBootGuid, Attributes, sizeof(uuid), &uuid);
|
||||||
} else {
|
} else {
|
||||||
@ -482,6 +486,7 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
|||||||
|
|
||||||
//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
|
||||||
|
//test legacy model
|
||||||
// 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);
|
||||||
|
Loading…
Reference in New Issue
Block a user