Attn: Add support for raw PEL creation
Attention handler needs to pass raw PEL's to phosphor logging in order
to submit PEL's on behalf of other components (e.g. hypervisor)
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: Id9a30728e7b463ac876b5dca023ca2627a25bb16
diff --git a/attn/meson.build b/attn/meson.build
index 815e038..d42289d 100644
--- a/attn/meson.build
+++ b/attn/meson.build
@@ -37,6 +37,14 @@
'vital_handler.cpp',
)
+# for custom/raw PEL creation
+pel_src = files(
+ 'pel/pel_minimal.cpp',
+ 'pel/private_header.cpp',
+ 'pel/primary_src.cpp',
+ 'pel/user_header.cpp',
+)
+
# Library dependencies.
attn_deps = [
libgpiod,
@@ -48,6 +56,7 @@
attn_lib = static_library(
'attn_lib',
attn_src,
+ pel_src,
include_directories : incdir,
dependencies : attn_deps,
cpp_args : [boost_args, test_arg],