meta-ibm: collect PEL files during a dump

This collects all of the PEL files on user and elog dumps.

They will show up in a subdirectory named 'logs' in the dump.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ieac53baa4d6e4e7f556c4ac0caa06f533c928039
diff --git a/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/pels b/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/pels
new file mode 100644
index 0000000..2ad4ab0
--- /dev/null
+++ b/recipes-phosphor/dump/phosphor-debug-collector/plugins.d/pels
@@ -0,0 +1,14 @@
+#!/bin/bash
+#
+# config: 23 20
+#
+# 23 = User dump(2), elog dump(3)
+# 20 = priority
+
+# @brief: Collect the PEL files
+
+. $DREPORT_INCLUDE/functions
+
+dir="/var/lib/phosphor-logging/extensions/pels/logs"
+desc="PEL Files"
+add_copy_file "$dir" "$desc"