add legacy target

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2022-08-12 21:06:10 +03:00
parent 7c21ded8c1
commit 3fa603faa8
3 changed files with 6 additions and 3 deletions

View File

@ -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() ) {

View File

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

View File

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