host-error-monitor: switch to meson

This changes the build to meson and creates PACKAGECONFIGs for the build
options to avoid needing to use EXTRA_OEMESON in recipes.

Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Change-Id: Ifdbfecef46d16a5f36b03ee3a72eef30b9bc1b8b
diff --git a/meta-intel-openbmc/meta-common/recipes-core/host-error-monitor/host-error-monitor_git.bb b/meta-intel-openbmc/meta-common/recipes-core/host-error-monitor/host-error-monitor_git.bb
index 06426b1..e6c8c57 100644
--- a/meta-intel-openbmc/meta-common/recipes-core/host-error-monitor/host-error-monitor_git.bb
+++ b/meta-intel-openbmc/meta-common/recipes-core/host-error-monitor/host-error-monitor_git.bb
@@ -1,6 +1,10 @@
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=7becf906c8f8d03c237bad13bc3dac53"
-inherit cmake pkgconfig systemd
+inherit meson pkgconfig systemd
+
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[libpeci] = "-Dlibpeci=enabled,-Dlibpeci=disabled"
+PACKAGECONFIG[crashdump] = "-Dcrashdump=enabled,-Dcrashdump=disabled"
 
 SRC_URI = "git://github.com/openbmc/host-error-monitor;branch=master;protocol=https"
 
@@ -12,5 +16,3 @@
 S = "${WORKDIR}/git"
 
 SYSTEMD_SERVICE:${PN} += "xyz.openbmc_project.HostErrorMonitor.service"
-
-EXTRA_OECMAKE = "-DYOCTO=1"