VPD ECC support
Added methods/interfaces to create ECC and verify the data using ECC
Tested: tested some of the EEPROMS on Rainier simics
root@rainier:/tmp# ./ipz-read-vpd --file /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a480.i2c-bus/i2c-8/8-0050/8-00500/nvmem
PASSED
root@rainier:/tmp# ./ipz-read-vpd --file /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0050/7-00500/nvmem
PASSED
root@rainier:/tmp# ./ipz-read-vpd --file /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a480.i2c-bus/i2c-8/8-0051/8-00510/nvmem
PASSED
root@rainier:/tmp# ./ipz-read-vpd --file /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a400.i2c-bus/i2c-7/7-0051/7-00510/nvmem
PASSED
root@rainier:/tmp# ./ipz-read-vpd --file /sys/devices/platform/ahb/ahb:apb/ahb:apb:bus@1e78a000/1e78a080.i2c-bus/i2c-0/0-0051/0-00510/nvmem
PASSED
Signed-off-by: Alpana Kumari <alpankum@in.ibm.com>
Change-Id: I863327f504c2dfa468d5ceadce10250292a968b7
diff --git a/test/Makefile.am b/test/Makefile.am
index 05785da..8b93faa 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -8,8 +8,12 @@
check_PROGRAMS += ipz_parser_test
-ipz_parser_test_SOURCES = ipz_parser/parser.cpp \
- ../impl.cpp
+ipz_parser_test_SOURCES = \
+ ipz_parser/parser.cpp \
+ ../impl.cpp \
+ ../vpdecc/vpdecc.c \
+ ../vpdecc/vpdecc_support.c
+
test_cppflags = \
-Igtest \
$(GTEST_CPPFLAGS) \
@@ -32,10 +36,11 @@
noinst_PROGRAMS = parser_test
parser_test_SOURCES = \
parser/parser.cpp \
- ../impl.cpp \
- ../parser.cpp \
- ../write.cpp \
- ../utils.cpp
+ ../impl.cpp \
+ ../parser.cpp \
+ ../write.cpp \
+ ../utils.cpp
+
parser_test_LDFLAGS = $(SDBUSPLUS_LIBS) $(PHOSPHOR_LOGGING_LIBS)
parser_test_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_LOGGING_CFLAGS)
endif