mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-01-05 18:28:46 +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
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Clover r5149\n"
|
||||
"POT-Creation-Date: 2022-10-17 22:07+0300\n"
|
||||
"Project-Id-Version: Clover r5150\n"
|
||||
"POT-Creation-Date: 2022-12-17 13:55+0300\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
@ -398,6 +398,10 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
||||
}
|
||||
|
||||
if (gSettings.RtVariables.HWTarget.isEmpty()) {
|
||||
// if (Entry->macOSVersion >= MacOsVersion("13"_XS8)) {
|
||||
//test legacy model
|
||||
// GlobalConfig.CurrentModel = iMac183;
|
||||
// }
|
||||
gSettings.RtVariables.HWTarget = GetHWTarget(GlobalConfig.CurrentModel);
|
||||
}
|
||||
|
||||
@ -412,7 +416,7 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
||||
|
||||
|
||||
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);
|
||||
// SetNvramVariable(L"BridgeOSBootSessionUUID", gEfiAppleBootGuid, Attributes, sizeof(uuid), &uuid);
|
||||
} else {
|
||||
@ -482,6 +486,7 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
||||
|
||||
//Now we want manually install some SecureBoot Variables while boot.efi do this automatically.
|
||||
//set same values
|
||||
//test legacy model
|
||||
// UINT64 ecid = 0;
|
||||
// CopyMem(&ecid, &uuid, 8);
|
||||
// SetNvramVariable(L"ApECID", gAppleSecureBootVariableGuid, Attributes, 8, &ecid);
|
||||
|
Loading…
Reference in New Issue
Block a user