mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
add legacy target
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
7c21ded8c1
commit
3fa603faa8
@ -410,10 +410,10 @@ SetVariablesForOSX(LOADER_ENTRY *Entry)
|
||||
if (gSettings.RtVariables.HWTarget.notEmpty() && (Entry->LoaderType != OSTYPE_OSX_INSTALLER) &&
|
||||
(Entry->macOSVersion < MacOsVersion("13"_XS8)) ) {
|
||||
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 {
|
||||
DeleteNvramVariable(L"BridgeOSHardwareModel", gEfiAppleNvramGuid);
|
||||
DeleteNvramVariable(L"BridgeOSBootSessionUUID", gEfiAppleBootGuid);
|
||||
// DeleteNvramVariable(L"BridgeOSBootSessionUUID", gEfiAppleBootGuid);
|
||||
}
|
||||
|
||||
if ( gSettings.RtVariables.BooterCfgStr.notEmpty() ) {
|
||||
|
@ -96,6 +96,7 @@ EFI_PART_TYPE_LEGACY_MBR_GUID {0x024DEE41, 0x33E7, 0x11D3, {0x9D, 0x69, 0x00, 0x
|
||||
// B295BD1C-63E3-48E3-B265-F7DFA2070123 - success
|
||||
// 82ED9A9E-CCBB-4CD2-8A94-F4E3559AF911 - Gibraltar
|
||||
|
||||
|
||||
/**
|
||||
Apple Debug Log protocol GUID.
|
||||
DDFA34FB-FE1F-48EA-B213-FB4A4CD57BE3
|
||||
|
@ -79,6 +79,7 @@ Macmini8,1 (J174AP)
|
||||
iMac20,1 (J185AP) & 20,2 (J185fAP)
|
||||
iMacPro1,1 (J137AP)
|
||||
MacPro7,1 (J160AP)
|
||||
others X86LEGACYAP
|
||||
*/
|
||||
//--------------------------
|
||||
XString8 GetHWTarget(MacModel Model)
|
||||
@ -118,7 +119,8 @@ XString8 GetHWTarget(MacModel Model)
|
||||
case MacBookAir91:
|
||||
return "J230kAP"_XS8;
|
||||
default:
|
||||
return ""_XS8; // disabled
|
||||
return "X86LEGACYAP"_XS8;
|
||||
// return ""_XS8; // disabled
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user