Brad Bishop | b1e8840 | 2017-01-11 11:12:32 -0500 | [diff] [blame] | 1 | SUMMARY = "OpenBMC hwmon poller" |
| 2 | DESCRIPTION = "OpenBMC hwmon poller." |
| 3 | PR = "r1" |
Patrick Venture | bc174e6 | 2018-10-01 20:22:40 -0700 | [diff] [blame] | 4 | PV = "1.0+git${SRCPV}" |
Brad Bishop | b1e8840 | 2017-01-11 11:12:32 -0500 | [diff] [blame] | 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc" |
| 7 | |
Matt Spinler | c15c753 | 2021-04-14 14:52:53 -0500 | [diff] [blame^] | 8 | inherit meson pkgconfig |
Patrick Venture | bc174e6 | 2018-10-01 20:22:40 -0700 | [diff] [blame] | 9 | inherit obmc-phosphor-systemd |
Brad Bishop | 4186efb | 2017-01-11 15:30:07 -0500 | [diff] [blame] | 10 | |
Matthew Barth | 3afbeed | 2020-11-17 08:45:59 -0600 | [diff] [blame] | 11 | PACKAGECONFIG ??= "" |
Matt Spinler | c15c753 | 2021-04-14 14:52:53 -0500 | [diff] [blame^] | 12 | PACKAGECONFIG[max31785-msl] = "-Denable-max31785-msl=true, -Denable-max31785-msl=false" |
Matthew Barth | 3afbeed | 2020-11-17 08:45:59 -0600 | [diff] [blame] | 13 | |
Brad Bishop | 4ce5719 | 2017-08-01 21:33:30 -0400 | [diff] [blame] | 14 | PACKAGE_BEFORE_PN = "max31785-msl" |
| 15 | SYSTEMD_PACKAGES = "${PN} max31785-msl" |
| 16 | |
Brad Bishop | 4186efb | 2017-01-11 15:30:07 -0500 | [diff] [blame] | 17 | SYSTEMD_SERVICE_${PN} = "xyz.openbmc_project.Hwmon@.service" |
Matthew Barth | 3afbeed | 2020-11-17 08:45:59 -0600 | [diff] [blame] | 18 | SYSTEMD_SERVICE_max31785-msl = "${@bb.utils.contains('PACKAGECONFIG', 'max31785-msl', 'phosphor-max31785-msl@.service', '', d)}" |
Brad Bishop | b1e8840 | 2017-01-11 11:12:32 -0500 | [diff] [blame] | 19 | |
| 20 | DEPENDS += "autoconf-archive-native" |
Brad Bishop | 6d10511 | 2017-02-20 14:36:31 -0500 | [diff] [blame] | 21 | DEPENDS += " \ |
| 22 | sdbusplus \ |
William A. Kennington III | 4e10c56 | 2018-10-18 19:23:49 -0700 | [diff] [blame] | 23 | sdeventplus \ |
Patrick Venture | 6e2600f | 2020-05-21 08:32:30 -0700 | [diff] [blame] | 24 | stdplus \ |
Brad Bishop | 6d10511 | 2017-02-20 14:36:31 -0500 | [diff] [blame] | 25 | phosphor-dbus-interfaces \ |
| 26 | phosphor-logging \ |
Patrick Venture | f67ce69 | 2018-09-14 09:54:18 -0700 | [diff] [blame] | 27 | gpioplus \ |
Patrick Venture | 806405f | 2019-03-11 14:06:11 -0700 | [diff] [blame] | 28 | cli11 \ |
Brad Bishop | 6d10511 | 2017-02-20 14:36:31 -0500 | [diff] [blame] | 29 | " |
| 30 | |
Brad Bishop | b1e8840 | 2017-01-11 11:12:32 -0500 | [diff] [blame] | 31 | |
| 32 | RDEPENDS_${PN} += "\ |
Joel Stanley | 1c7e17d | 2017-09-05 17:44:33 +1000 | [diff] [blame] | 33 | bash \ |
Brad Bishop | b1e8840 | 2017-01-11 11:12:32 -0500 | [diff] [blame] | 34 | " |
| 35 | |
Brad Bishop | 3217b27 | 2017-02-22 20:50:13 -0500 | [diff] [blame] | 36 | RRECOMMENDS_${PN} += "${VIRTUAL-RUNTIME_phosphor-hwmon-config}" |
| 37 | |
Brad Bishop | 4ce5719 | 2017-08-01 21:33:30 -0400 | [diff] [blame] | 38 | FILES_max31785-msl = "${bindir}/max31785-msl" |
Andrew Geissler | db32d49 | 2021-04-14 13:31:40 +0000 | [diff] [blame] | 39 | RDEPENDS_max31785-msl = "${VIRTUAL-RUNTIME_base-utils} i2c-tools bash" |
Brad Bishop | 4ce5719 | 2017-08-01 21:33:30 -0400 | [diff] [blame] | 40 | |
Brad Bishop | b1e8840 | 2017-01-11 11:12:32 -0500 | [diff] [blame] | 41 | SRC_URI += "git://github.com/openbmc/phosphor-hwmon" |
Brad Bishop | 4186efb | 2017-01-11 15:30:07 -0500 | [diff] [blame] | 42 | SRC_URI += "file://70-hwmon.rules" |
Brandon Wyman | 7cae3ea | 2017-06-21 16:32:56 -0500 | [diff] [blame] | 43 | SRC_URI += "file://70-iio.rules" |
Joel Stanley | 1c7e17d | 2017-09-05 17:44:33 +1000 | [diff] [blame] | 44 | SRC_URI += "file://start_hwmon.sh" |
Brad Bishop | b1e8840 | 2017-01-11 11:12:32 -0500 | [diff] [blame] | 45 | |
Andrew Geissler | db32d49 | 2021-04-14 13:31:40 +0000 | [diff] [blame] | 46 | SRCREV = "f4414cba09577e906b7b022a96b41e6a859da149" |
Brad Bishop | b1e8840 | 2017-01-11 11:12:32 -0500 | [diff] [blame] | 47 | |
| 48 | S = "${WORKDIR}/git" |
Brad Bishop | 4186efb | 2017-01-11 15:30:07 -0500 | [diff] [blame] | 49 | |
| 50 | do_install_append() { |
| 51 | |
Brad Bishop | 2b9921e | 2017-01-26 09:12:57 -0500 | [diff] [blame] | 52 | install -d ${D}/${base_libdir}/udev/rules.d/ |
Brad Bishop | b09e009 | 2019-11-14 14:37:51 -0500 | [diff] [blame] | 53 | install -m 0644 ${WORKDIR}/70-hwmon.rules ${D}/${base_libdir}/udev/rules.d/ |
| 54 | install -m 0644 ${WORKDIR}/70-iio.rules ${D}/${base_libdir}/udev/rules.d/ |
Joel Stanley | 1c7e17d | 2017-09-05 17:44:33 +1000 | [diff] [blame] | 55 | |
| 56 | install -d ${D}${bindir} |
| 57 | install -m 0755 ${WORKDIR}/start_hwmon.sh ${D}${bindir} |
Brad Bishop | 4186efb | 2017-01-11 15:30:07 -0500 | [diff] [blame] | 58 | } |