summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-03-09 15:37:45 -0800
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-07-27 02:15:01 +0000
commit998ff011d8d4385c9bd5380328743d921112a09d (patch)
tree8ab2410d150192feb8e6020ba674485b842ca7d0
parent5935df0f6fb92d4850d0b4c0d4a2594c9d8bb3a0 (diff)
downloadtalos-openbmc-998ff011d8d4385c9bd5380328743d921112a09d.tar.gz
talos-openbmc-998ff011d8d4385c9bd5380328743d921112a09d.zip
recipes-phoshor: fans: add phosphor-pid-control
Initial phosphor-pid-control recipe. This installs the swampd daemon. It is expected that each platform will provide their own start-up service at present because of current dependencies on dbus. Change-Id: I5ea4b31a99580b42f33488878cc1ec97dd94e582 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--meta-phosphor/classes/phosphor-pid-control.bbclass2
-rw-r--r--meta-phosphor/common/recipes-phosphor/fans/phosphor-pid-control.bb53
2 files changed, 55 insertions, 0 deletions
diff --git a/meta-phosphor/classes/phosphor-pid-control.bbclass b/meta-phosphor/classes/phosphor-pid-control.bbclass
new file mode 100644
index 000000000..573420b9a
--- /dev/null
+++ b/meta-phosphor/classes/phosphor-pid-control.bbclass
@@ -0,0 +1,2 @@
+sensor_datadir="${datadir}/swampd/sensor"
+
diff --git a/meta-phosphor/common/recipes-phosphor/fans/phosphor-pid-control.bb b/meta-phosphor/common/recipes-phosphor/fans/phosphor-pid-control.bb
new file mode 100644
index 000000000..2443147b5
--- /dev/null
+++ b/meta-phosphor/common/recipes-phosphor/fans/phosphor-pid-control.bb
@@ -0,0 +1,53 @@
+HOMEPAGE = "github.com/openbmc/phosphor-pid-control"
+
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=dc7f21ccff0f672f2a7cd6f412ae627d"
+
+SUMMARY = "Phosphor PID Fan Control"
+DESCRIPTION = "Fan Control"
+PR = "r1"
+
+SRC_URI = "git://github.com/openbmc/phosphor-pid-control"
+SRCREV = "7494ce0bdd5f707b8e07d907e2202df0f3426da0"
+S = "${WORKDIR}/git"
+
+inherit autotools pkgconfig
+inherit pythonnative
+
+inherit phosphor-pid-control
+inherit obmc-phosphor-ipmiprovider-symlink
+
+# Each platform will need a service file that starts
+# at an appropriate time per system. For instance, if
+# your system relies on passive dbus for fans or other
+# sensors then it may be prudent to wait for all of them.
+
+DEPENDS += "autoconf-archive-native"
+DEPENDS += "python-pyyaml-native"
+DEPENDS += "python-mako-native"
+DEPENDS += "sdbusplus"
+DEPENDS += "phosphor-logging"
+DEPENDS += "libevdev"
+DEPENDS += "libconfig"
+
+# We depend on someone providing their system's configuration.
+DEPENDS += "virtual/phosphor-fans-sensor-inventory"
+# We depend on this to be built first so we can build our providers.
+DEPENDS += "phosphor-ipmi-host"
+
+RDEPENDS_${PN} += "sdbusplus phosphor-dbus-interfaces"
+
+FILES_${PN} = "${sbindir}/swampd ${sbindir}/setsensor"
+
+# TODO: Enable this once OEM routing is enabled.
+#FILES_${PN}_append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
+#FILES_${PN}_append = " ${libdir}/host-ipmid/lib*${SOLIBS}"
+#FILES_${PN}_append = " ${libdir}/net-ipmid/lib*${SOLIBS}"
+#FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
+
+EXTRA_OECONF = "SENSOR_YAML_GEN=${STAGING_DIR_NATIVE}${sensor_datadir}/sensor-list.yaml \
+ PID_YAML_GEN=${STAGING_DIR_NATIVE}${sensor_datadir}/pid-list.yaml \
+ ZONE_YAML_GEN=${STAGING_DIR_NATIVE}${sensor_datadir}/zone-info.yaml"
+
+# TODO: Enable this once OEM routing is enabled.
+#HOSTIPMI_PROVIDER_LIBRARY += "libmanualcmds.so" \ No newline at end of file
OpenPOWER on IntegriCloud