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.build b/meson.build
index ac6ba29..8dfed27 100644
--- a/meson.build
+++ b/meson.build
@@ -23,7 +23,8 @@
configuration :{
'INVENTORY_JSON': '"'+get_option('INVENTORY_JSON')+'"',
'INVENTORY_PATH': '"'+get_option('INVENTORY_PATH')+'"',
- 'INVENTORY_MANAGER_SERVICE': '"'+get_option('INVENTORY_MANAGER_SERVICE')+'"'
+ 'INVENTORY_MANAGER_SERVICE': '"'+get_option('INVENTORY_MANAGER_SERVICE')+'"',
+ 'IPZ_INTERFACE': '"'+get_option('IPZ_INTERFACE')+'"'
}
)
ibm_read_vpd_SOURCES = ['ibm_vpd_app.cpp',