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

View File

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

View File

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

View File

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