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/configure.ac b/configure.ac
index 5e6bb8b..6657b52 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,6 @@
PKG_CHECK_MODULES([SDBUSPLUS], [sdbusplus])
PKG_CHECK_MODULES([PHOSPHOR_LOGGING], [phosphor-logging])
-
# Suppress the --with-libtool-sysroot error
LT_INIT
@@ -78,6 +77,19 @@
AX_PTHREAD([GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=1"],[GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=0"])
AC_SUBST(GTEST_CPPFLAGS)
+# Configure option to enable debug information for keyword VPD parser
+AC_ARG_ENABLE([debug-kw-vpd],
+ AS_HELP_STRING([--enable-debug-kw-vpd ],
+ [Debug statements for Keyword VPD Parser .
+ ]))
+AS_IF([ test "$enable_debug_kw_vpd" = "yes"],
+ [
+ AC_MSG_NOTICE([Enabling debug information for keyword vpd parser application])
+ kw_vpd_debug_flags=-DDEBUG_KW_VPD
+ AC_SUBST([KW_VPD_DEBUG_FLAGS], [$kw_vpd_debug_flags])
+ ]
+ )
+
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile test/Makefile])
AC_OUTPUT