some research

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2023-01-05 11:42:49 +03:00
parent 629515fbfa
commit 6e94e88437
2 changed files with 8 additions and 3 deletions

View File

@ -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"

View File

@ -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);