Patrick Venture | 998ff01 | 2018-03-09 15:37:45 -0800 | [diff] [blame] | 1 | # Each platform will need a service file that starts |
| 2 | # at an appropriate time per system. For instance, if |
| 3 | # your system relies on passive dbus for fans or other |
| 4 | # sensors then it may be prudent to wait for all of them. |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 5 | SUMMARY = "Phosphor PID Fan Control" |
| 6 | DESCRIPTION = "Fan Control" |
| 7 | HOMEPAGE = "github.com/openbmc/phosphor-pid-control" |
| 8 | LICENSE = "Apache-2.0" |
| 9 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
Patrick Venture | 998ff01 | 2018-03-09 15:37:45 -0800 | [diff] [blame] | 10 | DEPENDS += "autoconf-archive-native" |
Patrick Venture | 998ff01 | 2018-03-09 15:37:45 -0800 | [diff] [blame] | 11 | DEPENDS += "sdbusplus" |
Brad Bishop | 44f3cce | 2019-03-22 23:41:42 -0400 | [diff] [blame] | 12 | DEPENDS += "phosphor-dbus-interfaces" |
Patrick Venture | 998ff01 | 2018-03-09 15:37:45 -0800 | [diff] [blame] | 13 | DEPENDS += "phosphor-logging" |
| 14 | DEPENDS += "libevdev" |
Patrick Venture | 4686bb5 | 2019-02-12 08:59:31 -0800 | [diff] [blame] | 15 | DEPENDS += "nlohmann-json" |
Patrick Venture | 0647c29 | 2019-03-11 08:45:12 -0700 | [diff] [blame] | 16 | DEPENDS += "cli11" |
Andrew Geissler | 3f2554c | 2019-04-15 14:22:02 +0000 | [diff] [blame] | 17 | DEPENDS += "boost" |
Patrick Venture | 998ff01 | 2018-03-09 15:37:45 -0800 | [diff] [blame] | 18 | # We depend on this to be built first so we can build our providers. |
| 19 | DEPENDS += "phosphor-ipmi-host" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 20 | SRCREV = "bcdeb83ca05ed0fa352290ec8f78bb28a2d1d2fb" |
| 21 | PV = "0.1+git${SRCPV}" |
| 22 | PR = "r1" |
Patrick Venture | 998ff01 | 2018-03-09 15:37:45 -0800 | [diff] [blame] | 23 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 24 | SRC_URI = "git://github.com/openbmc/phosphor-pid-control;branch=master;protocol=https" |
| 25 | |
| 26 | S = "${WORKDIR}/git" |
Vijay Khemka | 09ad25b | 2019-06-20 14:37:11 -0700 | [diff] [blame] | 27 | SERVICE_FILE = "phosphor-pid-control.service" |
| 28 | SYSTEMD_PACKAGES = "${PN}" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 29 | SYSTEMD_SERVICE:${PN} = "${SERVICE_FILE}" |
Vijay Khemka | 09ad25b | 2019-06-20 14:37:11 -0700 | [diff] [blame] | 30 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 31 | inherit autotools pkgconfig |
| 32 | inherit obmc-phosphor-ipmiprovider-symlink |
| 33 | inherit systemd |
| 34 | |
Vijay Khemka | 09ad25b | 2019-06-20 14:37:11 -0700 | [diff] [blame] | 35 | EXTRA_OECONF = " \ |
| 36 | SYSTEMD_TARGET="multi-user.target" \ |
William A. Kennington III | b05134b | 2021-06-04 17:51:28 -0700 | [diff] [blame] | 37 | --disable-tests \ |
Vijay Khemka | 09ad25b | 2019-06-20 14:37:11 -0700 | [diff] [blame] | 38 | " |
| 39 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 40 | FILES:${PN} = "${bindir}/swampd ${bindir}/setsensor" |
Patrick Venture | 26f8c6c | 2018-07-27 07:27:01 -0700 | [diff] [blame] | 41 | # The following installs the OEM IPMI handler for the fan controls. |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 42 | FILES:${PN}:append = " ${libdir}/ipmid-providers/lib*${SOLIBS}" |
| 43 | FILES:${PN}:append = " ${libdir}/host-ipmid/lib*${SOLIBS}" |
| 44 | FILES:${PN}:append = " ${libdir}/net-ipmid/lib*${SOLIBS}" |
| 45 | FILES:${PN}-dev:append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la" |
Patrick Venture | 998ff01 | 2018-03-09 15:37:45 -0800 | [diff] [blame] | 46 | |
Patrick Venture | 26f8c6c | 2018-07-27 07:27:01 -0700 | [diff] [blame] | 47 | HOSTIPMI_PROVIDER_LIBRARY += "libmanualcmds.so" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 48 | config_datadir = "${datadir}/swampd/" |
Brandon Kim | 627e5cd | 2020-08-13 14:51:02 -0700 | [diff] [blame] | 49 | # config_path is the location swampd expects to find a json configuration. |
| 50 | # the file is expected to be named config.json |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 51 | config_path = "${config_datadir}config.json" |