From bd21fb244289e1f8092c3c594f6be9cc10538b5b Mon Sep 17 00:00:00 2001 From: George Hung Date: Mon, 3 Aug 2020 13:39:03 +0800 Subject: 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 Change-Id: I79623132d6dbf84ef1646e61a5c2374db132ea48 Signed-off-by: Andrew Geissler --- .../recipes-quanta/fans/read-margin-temp_git.bb | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-quanta/meta-common/recipes-quanta/fans/read-margin-temp_git.bb 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 000000000..bd2e75be7 --- /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} +} + -- cgit v1.2.3