op-proc-control: install error yaml files

Copy the yaml to the place where phosphor-logging
looks for them during the build.

Change-Id: I3413937a7920c7540794e3f39f3642e0876a9f8f
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control-error-native.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control-error-native.bb
new file mode 100644
index 0000000..c9a24cd
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control-error-native.bb
@@ -0,0 +1,17 @@
+SUMMARY = "Copy error yaml files to known path for elog parsing"
+PR = "r1"
+
+inherit native
+inherit obmc-phosphor-license
+inherit phosphor-dbus-yaml
+
+require op-proc-control.inc
+
+S = "${WORKDIR}/git"
+
+do_install_append() {
+    SRC=${S}/org/open_power/Proc
+    DEST=${yaml_dir}/org/open_power/Proc
+    install -d ${DEST}
+    install ${SRC}/*.yaml ${DEST}
+}
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control.bb b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control.bb
index 251db5d..561aaba 100644
--- a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control.bb
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control.bb
@@ -2,15 +2,12 @@
 DESCRIPTION = "Provides procedures that run against the host chipset"
 PR = "r1"
 
-LICENSE = "Apache-2.0"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
-
 S = "${WORKDIR}/git"
 
 inherit autotools pkgconfig
 
+require ${PN}.inc
+
 DEPENDS += "autoconf-archive-native phosphor-logging"
 RDEPENDS_${PN} += "phosphor-logging"
 
-SRC_URI += "git://github.com/openbmc/openpower-proc-control"
-SRCREV = "d8dd9b25ac65043ad0cb7734919bf96084b47831"
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control.inc b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control.inc
new file mode 100644
index 0000000..1a0167b
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/op-proc-control.inc
@@ -0,0 +1,6 @@
+HOMEPAGE = "https://github.com/openbmc/openpower-proc-control"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
+
+SRC_URI += "git://github.com/openbmc/openpower-proc-control"
+SRCREV = "d8dd9b25ac65043ad0cb7734919bf96084b47831"
diff --git a/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/phosphor-logging-error-logs-native.bbappend b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/phosphor-logging-error-logs-native.bbappend
new file mode 100644
index 0000000..34454f1
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/common/recipes-phosphor/host/phosphor-logging-error-logs-native.bbappend
@@ -0,0 +1,2 @@
+DEPENDS += "op-proc-control-error-native"
+