mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-23 11:35:19 +01:00
Added NoRomInfo key
to disable rom info in hardware overview in system profiler
This commit is contained in:
parent
1615a158ec
commit
489f4c5a44
@ -961,6 +961,8 @@
|
|||||||
<string>IM131.88Z.F000.B00.1907241303</string>
|
<string>IM131.88Z.F000.B00.1907241303</string>
|
||||||
<key>#EfiVersion</key>
|
<key>#EfiVersion</key>
|
||||||
<string>288.0.0.0.0</string>
|
<string>288.0.0.0.0</string>
|
||||||
|
<key>#NoRomInfo</key>
|
||||||
|
<true/>
|
||||||
<key>#SerialNumber</key>
|
<key>#SerialNumber</key>
|
||||||
<string>C02JBSAMDNCW</string>
|
<string>C02JBSAMDNCW</string>
|
||||||
<key>#Family</key>
|
<key>#Family</key>
|
||||||
|
@ -940,6 +940,9 @@ typedef struct {
|
|||||||
BOOLEAN UseARTFreq;
|
BOOLEAN UseARTFreq;
|
||||||
// SMBIOS TYPE133
|
// SMBIOS TYPE133
|
||||||
UINT64 PlatformFeature;
|
UINT64 PlatformFeature;
|
||||||
|
|
||||||
|
// PatchTableType11
|
||||||
|
BOOLEAN NoRomInfo;
|
||||||
|
|
||||||
// OS parameters
|
// OS parameters
|
||||||
CHAR8 Language[16];
|
CHAR8 Language[16];
|
||||||
|
@ -4821,6 +4821,11 @@ ParseSMBIOSSettings(
|
|||||||
gSettings.ChassisType = (UINT8)GetPropertyInteger (Prop, gSettings.ChassisType);
|
gSettings.ChassisType = (UINT8)GetPropertyInteger (Prop, gSettings.ChassisType);
|
||||||
DBG ("ChassisType: 0x%x\n", gSettings.ChassisType);
|
DBG ("ChassisType: 0x%x\n", gSettings.ChassisType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Prop = GetProperty (DictPointer, "NoRomInfo");
|
||||||
|
if (Prop != NULL) {
|
||||||
|
gSettings.NoRomInfo = IsPropertyTrue (Prop);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
|
@ -2042,7 +2042,9 @@ VOID PatchSmbios(VOID) //continue
|
|||||||
PatchTableType4();
|
PatchTableType4();
|
||||||
// PatchTableType6();
|
// PatchTableType6();
|
||||||
PatchTableType9();
|
PatchTableType9();
|
||||||
PatchTableType11();
|
if (!gSettings.NoRomInfo) {
|
||||||
|
PatchTableType11();
|
||||||
|
}
|
||||||
PatchTableTypeSome();
|
PatchTableTypeSome();
|
||||||
PatchTableType17();
|
PatchTableType17();
|
||||||
PatchTableType16();
|
PatchTableType16();
|
||||||
|
Loading…
Reference in New Issue
Block a user