smbios-mdr: Expose Firmware Inventory Information
SMBIOS Type 45 defines the data structure to expose Firmware
Inventory information. Added patch which exposes the same
on the DBus.
Introduced fw-inventory-dbus meson option which by default,
will be disabled. When enabled fw-inventory is exposed to dbus
Introduced expose-firmware-component-name meson option which
by default, will be disabled. When enabled fw-component name is
exposed as dbus object
Tested:
1) No crash is seen when firmware is flashed with change
2) Firmware Inventory information is available under dbus tree
```
busctl tree xyz.openbmc_project.Smbios.MDR_V2
`- /xyz
`- /xyz/openbmc_project
|- /xyz/openbmc_project/Smbios
| `- /xyz/openbmc_project/Smbios/MDR_V2
`- /xyz/openbmc_project/software
`- /xyz/openbmc_project/software/UEFI
```
Change-Id: If5b367f21dedc0addef4f7b1d4c6dac6a5dc17c2
Signed-off-by: Prithvi Pai <ppai@nvidia.com>
diff --git a/meson.options b/meson.options
index f93f1ea..2e302a4 100644
--- a/meson.options
+++ b/meson.options
@@ -55,3 +55,17 @@
value: 'disabled',
description: 'Expose TPM D-Bus Interface',
)
+
+option(
+ 'firmware-inventory-dbus',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Expose Firmware Inventory D-Bus Interface',
+)
+
+option(
+ 'expose-firmware-component-name',
+ type: 'feature',
+ value: 'disabled',
+ description: 'Use Firmware Component value as dbus object path',
+)