meta-quanta: common: add "read-margin-temp" service

Add "read-margin-temp" service to meta-quanta/meta-common

This daemon will read the temperatures of various sensors and calculate
the worst thermal margin

(From meta-quanta rev: a8f1a52fbaf2075f54e4cc8e2b3619172148e54f)

Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: I79623132d6dbf84ef1646e61a5c2374db132ea48
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/meta-quanta/meta-common/recipes-quanta/fans/read-margin-temp_git.bb b/meta-quanta/meta-common/recipes-quanta/fans/read-margin-temp_git.bb
new file mode 100644
index 0000000..bd2e75b
--- /dev/null
+++ b/meta-quanta/meta-common/recipes-quanta/fans/read-margin-temp_git.bb
@@ -0,0 +1,26 @@
+PR = "r1"
+PV = "1.0+git${SRCPV}"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
+
+SRC_URI = "git://github.com/quanta-bmc/read-margin-temp.git"
+SRCREV = "ca2dc1bf7f34d517f0edc59dd3596c3a76c3d7a1"
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+inherit meson
+
+DEPENDS += " nlohmann-json"
+DEPENDS += " sdbusplus"
+DEPENDS += " sdbusplus-native"
+DEPENDS += " sdeventplus"
+DEPENDS += " phosphor-dbus-interfaces"
+RDEPENDS_${PN} += " bash"
+
+FILES_${PN} = "${bindir}/read-margin-temp"
+
+do_install() {
+    install -d ${D}${bindir}
+    install -m 0755 read-margin-temp ${D}${bindir}
+}
+