Enable pre and post actions
This commit enables the VPD parser to take certain
pre and post collection actions.
-- Set a GPIO in order to enable hardware paths (such as I2C)
-- Bind device drivers to the I2C device so as to generate a udev
event.
-- Set a GPIO as a post action on failure to collect VPD.
Pre-actions are taken when collecting system VPD.
Post actions can be taken either after a failure
to bind drivers or after failing to collect/parse VPD.
Change-Id: I26754000a72db53f00a5afc4925de27e3f7c3ba8
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
diff --git a/meson.build b/meson.build
index 1b7e271..32775ad 100644
--- a/meson.build
+++ b/meson.build
@@ -44,6 +44,7 @@
)
if get_option('ibm-parser').enabled()
+ libgpiodcxx = dependency('libgpiodcxx')
ibm_read_vpd_SOURCES = ['ibm_vpd_app.cpp',
'vpd-parser/ipz_parser.cpp',
'impl.cpp',
@@ -61,6 +62,7 @@
dependencies: [
sdbusplus,
phosphor_logging,
+ libgpiodcxx,
],
include_directories : 'vpd-parser/',
install: true,