mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-23 16:17:40 +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>
|
||||
<key>#EfiVersion</key>
|
||||
<string>288.0.0.0.0</string>
|
||||
<key>#NoRomInfo</key>
|
||||
<true/>
|
||||
<key>#SerialNumber</key>
|
||||
<string>C02JBSAMDNCW</string>
|
||||
<key>#Family</key>
|
||||
|
@ -940,6 +940,9 @@ typedef struct {
|
||||
BOOLEAN UseARTFreq;
|
||||
// SMBIOS TYPE133
|
||||
UINT64 PlatformFeature;
|
||||
|
||||
// PatchTableType11
|
||||
BOOLEAN NoRomInfo;
|
||||
|
||||
// OS parameters
|
||||
CHAR8 Language[16];
|
||||
|
@ -4821,6 +4821,11 @@ ParseSMBIOSSettings(
|
||||
gSettings.ChassisType = (UINT8)GetPropertyInteger (Prop, gSettings.ChassisType);
|
||||
DBG ("ChassisType: 0x%x\n", gSettings.ChassisType);
|
||||
}
|
||||
|
||||
Prop = GetProperty (DictPointer, "NoRomInfo");
|
||||
if (Prop != NULL) {
|
||||
gSettings.NoRomInfo = IsPropertyTrue (Prop);
|
||||
}
|
||||
}
|
||||
|
||||
EFI_STATUS
|
||||
|
@ -2042,7 +2042,9 @@ VOID PatchSmbios(VOID) //continue
|
||||
PatchTableType4();
|
||||
// PatchTableType6();
|
||||
PatchTableType9();
|
||||
PatchTableType11();
|
||||
if (!gSettings.NoRomInfo) {
|
||||
PatchTableType11();
|
||||
}
|
||||
PatchTableTypeSome();
|
||||
PatchTableType17();
|
||||
PatchTableType16();
|
||||
|
Loading…
Reference in New Issue
Block a user