Vijay Khemka | 1c03afe | 2018-11-20 11:14:07 -0800 | [diff] [blame] | 1 | SUMMARY = "dbus-sensors" |
| 2 | DESCRIPTION = "Dbus Sensor Services Configured from D-Bus" |
| 3 | |
| 4 | SRC_URI = "git://github.com/openbmc/dbus-sensors.git" |
Andrew Geissler | 6a49fee | 2020-12-16 01:23:35 +0000 | [diff] [blame^] | 5 | SRCREV = "937eb54e2fbdd917442bf359c8367219c23d4e36" |
Vijay Khemka | 1c03afe | 2018-11-20 11:14:07 -0800 | [diff] [blame] | 6 | |
| 7 | PV = "0.1+git${SRCPV}" |
| 8 | |
| 9 | LICENSE = "Apache-2.0" |
| 10 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
| 11 | |
Matt Spinler | 1e9ad92 | 2020-11-03 10:35:05 -0600 | [diff] [blame] | 12 | PACKAGECONFIG ??= " \ |
| 13 | adcsensor \ |
| 14 | cpusensor \ |
| 15 | exitairtempsensor \ |
| 16 | fansensor \ |
| 17 | hwmontempsensor \ |
| 18 | intrusionsensor \ |
| 19 | ipmbsensor \ |
| 20 | mcutempsensor \ |
| 21 | psusensor \ |
| 22 | " |
| 23 | |
| 24 | PACKAGECONFIG[adcsensor] = "-DDISABLE_ADC=OFF, -DDISABLE_ADC=ON" |
| 25 | PACKAGECONFIG[cpusensor] = "-DDISABLE_CPU=OFF, -DDISABLE_CPU=ON" |
| 26 | PACKAGECONFIG[exitairtempsensor] = "-DDISABLE_EXIT_AIR=OFF, -DDISABLE_EXIT_AIR=ON" |
| 27 | PACKAGECONFIG[fansensor] = "-DDISABLE_FAN=OFF, -DDISABLE_FAN=ON" |
| 28 | PACKAGECONFIG[hwmontempsensor] = "-DDISABLE_HWMON_TEMP=OFF, -DDISABLE_HWMON_TEMP=ON" |
| 29 | PACKAGECONFIG[intrusionsensor] = "-DDISABLE_INTRUSION=OFF, -DDISABLE_INTRUSION=ON" |
| 30 | PACKAGECONFIG[ipmbsensor] = "-DDISABLE_IPMB=OFF, -DDISABLE_IPMB=ON" |
| 31 | PACKAGECONFIG[mcutempsensor] = "-DDISABLE_MCUTEMP=OFF, -DDISABLE_MCUTEMP=ON" |
| 32 | PACKAGECONFIG[psusensor] = "-DDISABLE_PSU=OFF, -DDISABLE_PSU=ON" |
| 33 | |
| 34 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'adcsensor', \ |
| 35 | 'xyz.openbmc_project.adcsensor.service', \ |
| 36 | '', d)}" |
| 37 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'cpusensor', \ |
| 38 | 'xyz.openbmc_project.cpusensor.service', \ |
| 39 | '', d)}" |
| 40 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'exitairtempsensor', \ |
| 41 | 'xyz.openbmc_project.exitairsensor.service', \ |
| 42 | '', d)}" |
| 43 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'fansensor', \ |
| 44 | 'xyz.openbmc_project.fansensor.service', \ |
| 45 | '', d)}" |
| 46 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'hwmontempsensor', \ |
| 47 | 'xyz.openbmc_project.hwmontempsensor.service', \ |
| 48 | '', d)}" |
| 49 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'intrusionsensor', \ |
| 50 | 'xyz.openbmc_project.intrusionsensor.service', \ |
| 51 | '', d)}" |
| 52 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'ipmbsensor', \ |
| 53 | 'xyz.openbmc_project.ipmbsensor.service', \ |
| 54 | '', d)}" |
| 55 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'mcutempsensor', \ |
| 56 | 'xyz.openbmc_project.mcutempsensor.service', \ |
| 57 | '', d)}" |
| 58 | SYSTEMD_SERVICE_${PN} += "${@bb.utils.contains('PACKAGECONFIG', 'psusensor', \ |
| 59 | 'xyz.openbmc_project.psusensor.service', \ |
| 60 | '', d)}" |
Vijay Khemka | 1c03afe | 2018-11-20 11:14:07 -0800 | [diff] [blame] | 61 | |
James Feist | 4a5ee87 | 2019-05-30 16:25:37 -0700 | [diff] [blame] | 62 | DEPENDS = "boost nlohmann-json sdbusplus i2c-tools libgpiod" |
Vijay Khemka | 1c03afe | 2018-11-20 11:14:07 -0800 | [diff] [blame] | 63 | inherit cmake systemd |
| 64 | |
Brad Bishop | 29d26b3 | 2020-10-27 09:22:51 -0400 | [diff] [blame] | 65 | S = "${WORKDIR}/git" |
Vijay Khemka | 1c03afe | 2018-11-20 11:14:07 -0800 | [diff] [blame] | 66 | |
Vijay Khemka | 1c03afe | 2018-11-20 11:14:07 -0800 | [diff] [blame] | 67 | EXTRA_OECMAKE = "-DYOCTO=1" |