summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Feist <james.feist@linux.intel.com>2018-10-03 14:53:29 -0700
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-10-15 08:44:37 -0400
commit7390d395fbb385461196ee60b81abfd7fa69daf8 (patch)
treecfedb1d7690589d0d840b82ed9a130bb0d101eb5
parent5ec11bc4c27030d5b068b2f0712eff9b8bc94d97 (diff)
downloadtalos-openbmc-7390d395fbb385461196ee60b81abfd7fa69daf8.tar.gz
talos-openbmc-7390d395fbb385461196ee60b81abfd7fa69daf8.zip
meta-intel: Add d-bus sensors recipe
This adds the recipe to build the dbus-sensors project. dbus-sensors is a dbus-configurable sensors project. (From meta-intel rev: 3164a56a1eb8a757a4d6340533e19bcc0591d07c) Change-Id: I1a3cc0d7e57a22628c50d1ba18b6e4efd909fbaa Signed-off-by: James Feist <james.feist@linux.intel.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
-rw-r--r--meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.adcsensor.service11
-rw-r--r--meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.cpusensor.service12
-rw-r--r--meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.fansensor.service11
-rw-r--r--meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.hwmontempsensor.service11
-rw-r--r--meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors_git.bb25
5 files changed, 70 insertions, 0 deletions
diff --git a/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.adcsensor.service b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.adcsensor.service
new file mode 100644
index 000000000..520d71e30
--- /dev/null
+++ b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.adcsensor.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Adc Sensor
+StopWhenUnneeded=false
+
+[Service]
+Restart=always
+RestartSec=5
+ExecStart={bindir}/adcsensor
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.cpusensor.service b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.cpusensor.service
new file mode 100644
index 000000000..bdbadea36
--- /dev/null
+++ b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.cpusensor.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=CPU Sensor
+StopWhenUnneeded=false
+
+[Service]
+Restart=always
+RestartSec=5
+StartLimitBurst=10
+ExecStart={bindir}/cpusensor
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.fansensor.service b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.fansensor.service
new file mode 100644
index 000000000..246718a83
--- /dev/null
+++ b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.fansensor.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Fan Sensor
+StopWhenUnneeded=false
+
+[Service]
+Restart=always
+RestartSec=5
+ExecStart={bindir}/fansensor
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.hwmontempsensor.service b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.hwmontempsensor.service
new file mode 100644
index 000000000..bb56228a9
--- /dev/null
+++ b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors/xyz.openbmc_project.hwmontempsensor.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Hwmon Temp Sensor
+StopWhenUnneeded=false
+
+[Service]
+Restart=always
+RestartSec=5
+ExecStart={bindir}/hwmontempsensor
+
+[Install]
+WantedBy=multi-user.target
diff --git a/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors_git.bb b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors_git.bb
new file mode 100644
index 000000000..8d43ce5a6
--- /dev/null
+++ b/meta-intel/meta-common/recipes-intel/dbus-sensors/dbus-sensors_git.bb
@@ -0,0 +1,25 @@
+SUMMARY = "dbus-sensors"
+DESCRIPTION = "Dbus Sensor Services Configured from D-Bus"
+
+SRC_URI = "git://github.com/openbmc/s2600wf-misc.git"
+SRCREV = "7f848c3e96847d76129a1292fe32b28359a5514d"
+
+PV = "0.1+git${SRCPV}"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://../LICENCE;md5=86d3f3a95c324c9479bd8986968f4327"
+
+SYSTEMD_SERVICE_${PN} = "xyz.openbmc_project.fansensor.service"
+SYSTEMD_SERVICE_${PN} += " xyz.openbmc_project.adcsensor.service"
+SYSTEMD_SERVICE_${PN} += " xyz.openbmc_project.hwmontempsensor.service"
+SYSTEMD_SERVICE_${PN} += " xyz.openbmc_project.cpusensor.service"
+
+DEPENDS = "boost nlohmann-json sdbusplus"
+inherit cmake obmc-phosphor-systemd
+
+S = "${WORKDIR}/git/sensors"
+
+# linux-libc-headers guides this way to include custom uapi headers
+CXXFLAGS_append = " -I ${STAGING_KERNEL_DIR}/include/uapi"
+CXXFLAGS_append = " -I ${STAGING_KERNEL_DIR}/include"
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
OpenPOWER on IntegriCloud