VPD tool : Read Keyword option
One of the options the VPD tool provides is
to Read the value of the keyword. This commit has its implementation.
The user should provide a valid object path, valid record name
and valid keyword inorder to get the value of the keyword.
Test:
Tested on simics.
Output:
root@rainier:/tmp# ./vpd-tool -r -O /system/chassis/motherboard/vdd_vrm1 -R VINI -K FN
{
"/system/chassis/motherboard/vdd_vrm1": {
"FN": "F190827"
}
}
Signed-off-by: PriyangaRamasamy <priyanga24@in.ibm.com>
Change-Id: I244b9fe276feefa27e4c99063a9e9aa01aeb2f12
diff --git a/meson_options.txt b/meson_options.txt
index 9c094c7..b3e2a34 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -6,3 +6,4 @@
option('INVENTORY_JSON',type: 'string', value: '/usr/share/vpd/vpd_inventory.json', description: 'JSON file that defines inventory blueprint')
option('INVENTORY_PATH',type: 'string', value: '/xyz/openbmc_project/inventory', description: 'Prefix for inventory D-Bus objects')
option('INVENTORY_MANAGER_SERVICE',type: 'string', value: 'xyz.openbmc_project.Inventory.Manager', description: 'Inventory manager service')
+option('IPZ_INTERFACE', type: 'string', value: 'com.ibm.ipzvpd', description: 'IPZ vpd interface')