Added NoRomInfo key

to disable rom info in hardware overview in system profiler
This commit is contained in:
Sherlocks 2019-12-12 23:51:55 +09:00
parent 1615a158ec
commit 489f4c5a44
4 changed files with 13 additions and 1 deletions

View File

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

View File

@ -940,6 +940,9 @@ typedef struct {
BOOLEAN UseARTFreq;
// SMBIOS TYPE133
UINT64 PlatformFeature;
// PatchTableType11
BOOLEAN NoRomInfo;
// OS parameters
CHAR8 Language[16];

View File

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

View File

@ -2042,7 +2042,9 @@ VOID PatchSmbios(VOID) //continue
PatchTableType4();
// PatchTableType6();
PatchTableType9();
PatchTableType11();
if (!gSettings.NoRomInfo) {
PatchTableType11();
}
PatchTableTypeSome();
PatchTableType17();
PatchTableType16();