Enable support for SMBIOS version 3.7
Currently, SMBIOS-MDR supports up to version 3.5, and the changes
introduced in versions 3.6 and 3.7 are largely supported as well.
Therefore, enable the supported version to 3.7.
Tested:
The implementation was verified using EDK2, which supports
SMBIOS version 3.7, ensuring that all SMBIOS data is correctly populated
on D-Bus.
Change-Id: I61d3667d6ecf5635750022153ab30a54530ef2d3
Signed-off-by: Quang Nguyen <quangnguyen@os.amperecomputing.com>
diff --git a/include/smbios_mdrv2.hpp b/include/smbios_mdrv2.hpp
index 1224f1e..3638537 100644
--- a/include/smbios_mdrv2.hpp
+++ b/include/smbios_mdrv2.hpp
@@ -165,9 +165,10 @@
static constexpr const char* systemSuffix = "/chassis/motherboard/bios";
-constexpr std::array<SMBIOSVersion, 5> supportedSMBIOSVersions{
+constexpr std::array<SMBIOSVersion, 7> supportedSMBIOSVersions{
SMBIOSVersion{3, 0}, SMBIOSVersion{3, 2}, SMBIOSVersion{3, 3},
- SMBIOSVersion{3, 4}, SMBIOSVersion{3, 5}};
+ SMBIOSVersion{3, 4}, SMBIOSVersion{3, 5}, SMBIOSVersion{3, 6},
+ SMBIOSVersion{3, 7}};
typedef enum
{