debug-collector: add native recipe to copy error yamls
Add native recipe to copy application error yamls to
known location.
Change-Id: I9a776a8fe29f681ffa48bed6e1b37e6b934a0d52
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/openpower-debug-collector-error-native.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/openpower-debug-collector-error-native.bb
new file mode 100644
index 0000000..a79f172
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/openpower-debug-collector-error-native.bb
@@ -0,0 +1,19 @@
+SUMMARY = "Copy error yaml files to known path for elog parsing"
+
+PR = "r1"
+
+inherit native
+inherit obmc-phosphor-license
+inherit phosphor-logging
+
+PROVIDES += "openpower-debug-collector-error-native"
+require openpower-debug-collector.inc
+
+S = "${WORKDIR}/git"
+
+do_install_append() {
+ SRC=${S}/org/open_power
+ DEST=${error_yaml_dir}/org/open_power
+ install -d ${DEST}
+ install ${SRC}/Host.errors.yaml ${DEST}
+}
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/phosphor-logging-error-logs-native.bbappend b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/phosphor-logging-error-logs-native.bbappend
new file mode 100644
index 0000000..0fe3545
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/debug/phosphor-logging-error-logs-native.bbappend
@@ -0,0 +1 @@
+DEPENDS += "openpower-debug-collector-error-native"