IBM VPD main app & KeywordVPD parser:
IBM VPD main application triggers either
'IPZ/Keyword' type VPD parser. This commit also has
keyword VPD parser code.
Flag to enable IBM VPD main parser is
"--enable-ibm-parser"
Flag to debug the keyword vpd parser is
"--enable-debug-kw-vpd".
Steps to build and execute:
./bootstrap.sh
./configure ${CONFIGURE_FLAGS} --enable-ibm-parser
make
To run test cases:
make check
Test:
Tested on a rainier system to parse
[IPZ and Keyword] types of VPD.
Signed-off-by: PriyangaRamasamy <priyanga24@in.ibm.com>
Change-Id: Ie4466551a60acd16ad9e4852f9b4d14c51f0a44d
diff --git a/Makefile.am b/Makefile.am
index e70b061..56a3b57 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,8 +7,9 @@
write.hpp \
impl.hpp \
args.hpp \
- types.hpp \
- utils.hpp
+ utils.hpp \
+ keyword_vpd_parser.hpp \
+ ibm_vpd_type_check.hpp
if IBM_PARSER
noinst_HEADERS += \
@@ -17,12 +18,14 @@
bin_PROGRAMS = ibm-read-vpd
ibm_read_vpd_SOURCES = \
- ipz_app.cpp \
+ ibm_vpd_app.cpp \
+ ibm_vpd_type_check.cpp \
parser.cpp \
vpdecc/vpdecc.c \
vpdecc/vpdecc_support.c\
impl.cpp \
- utils.cpp
+ utils.cpp \
+ keyword_vpd_parser.cpp
ibm_read_vpd_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS)
ibm_read_vpd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)