PEL: Create a PEL that takes parameters for test
Make a pelFactory() function that unit tests can use where the caller
can specify the following attributes:
* ID (PLID also set to this. BMC log ID = ID + 500)
* Creator ID
* Severity
* Action Flags
* PEL Size
The desired size is reached by adding a UserData section as the last
section.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I99add4c17a352030298874340f8bf9d8041a3e74
diff --git a/test/openpower-pels/Makefile.include b/test/openpower-pels/Makefile.include
index 0ee298b..bc10b89 100644
--- a/test/openpower-pels/Makefile.include
+++ b/test/openpower-pels/Makefile.include
@@ -35,7 +35,6 @@
pel_objects = \
$(top_builddir)/extensions/openpower-pels/ascii_string.o \
- $(top_builddir)/extensions/openpower-pels/bcd_time.o \
$(top_builddir)/extensions/openpower-pels/callout.o \
$(top_builddir)/extensions/openpower-pels/callouts.o \
$(top_builddir)/extensions/openpower-pels/device_callouts.o \
@@ -60,6 +59,7 @@
$(top_builddir)/extensions/openpower-pels/user_header.o
pel_test_utils_ldadd = \
+ $(top_builddir)/extensions/openpower-pels/bcd_time.o \
$(top_builddir)/test/openpower-pels/pel_utils.o \
$(top_builddir)/test/openpower-pels/paths.o
@@ -330,7 +330,6 @@
$(test_ldadd) \
$(pel_test_utils_ldadd) \
$(top_builddir)/extensions/openpower-pels/ascii_string.o \
- $(top_builddir)/extensions/openpower-pels/bcd_time.o \
$(top_builddir)/extensions/openpower-pels/callout.o \
$(top_builddir)/extensions/openpower-pels/callouts.o \
$(top_builddir)/extensions/openpower-pels/device_callouts.o \