blob: 201849a087eb1c071d9818c4e22275cbe0bb2372 [file] [log] [blame]
Matthew Barth91460422017-02-24 13:14:43 -06001SUMMARY = "Phosphor Fan Presence"
2DESCRIPTION = "Phosphor fan presence provides a set of fan presence \
3daemons to monitor fan presence changes by different methods of \
4presence detection."
Matthew Barth91460422017-02-24 13:14:43 -06005PR = "r1"
Matt Spinlerc943de32017-03-21 15:02:13 -05006
7require ${PN}.inc
Matthew Barth91460422017-02-24 13:14:43 -06008
9inherit autotools pkgconfig pythonnative
10inherit obmc-phosphor-systemd
Matt Spinlerc943de32017-03-21 15:02:13 -050011inherit phosphor-fan-presence
Matthew Barth91460422017-02-24 13:14:43 -060012
13DEPENDS += "autoconf-archive-native"
14DEPENDS += "python-pyyaml-native"
Matt Spinlerc943de32017-03-21 15:02:13 -050015DEPENDS += "python-mako-native"
Matthew Barth91460422017-02-24 13:14:43 -060016DEPENDS += "sdbusplus"
17DEPENDS += "phosphor-logging"
Matt Spinlerc943de32017-03-21 15:02:13 -050018DEPENDS += "virtual/phosphor-fan-presence-config"
Brad Bishop96960aa2017-04-03 10:44:23 -040019DEPENDS += "libevdev"
Matthew Barth91460422017-02-24 13:14:43 -060020
21FAN_PRESENCE_PACKAGES = " \
22 ${PN}-tach \
23"
24PACKAGES_remove = "${PN}"
Brad Bishop98cea152017-04-11 22:12:56 -040025PACKAGES += "${FAN_PRESENCE_PACKAGES} phosphor-chassis-cooling-type"
26
27# Remove when this package has content
28ALLOW_EMPTY_phosphor-chassis-cooling-type = "1"
29
Matthew Barth91460422017-02-24 13:14:43 -060030SYSTEMD_PACKAGES = "${FAN_PRESENCE_PACKAGES}"
Brad Bishop98cea152017-04-11 22:12:56 -040031RDEPENDS_${PN}-dev = "${FAN_PRESENCE_PACKAGES} phosphor-chassis-cooling-type"
Matthew Barth91460422017-02-24 13:14:43 -060032
Brad Bishop74fe8ff2017-04-11 21:51:26 -040033RDEPENDS_${PN}-tach += "sdbusplus"
34
Brad Bishop98cea152017-04-11 22:12:56 -040035RDEPENDS_phosphor-chassis-cooling-type += "libevdev"
36
Josh D. Kinga283e072017-04-06 15:56:37 -050037# Needed to install into the obmc-host-start target
Matthew Barth91460422017-02-24 13:14:43 -060038TMPL = "phosphor-fan-presence-tach@.service"
39INSTFMT = "phosphor-fan-presence-tach@{0}.service"
Josh D. Kinga283e072017-04-06 15:56:37 -050040TGTFMT = "obmc-host-start@{0}.target"
Matthew Barth91460422017-02-24 13:14:43 -060041FMT = "../${TMPL}:${TGTFMT}.requires/${INSTFMT}"
42
43FILES_${PN}-tach = "${sbindir}/phosphor-fan-presence-tach"
44SYSTEMD_SERVICE_${PN}-tach += "${TMPL}"
45SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}"
46
Matthew Barth91460422017-02-24 13:14:43 -060047S = "${WORKDIR}/git"
Matt Spinlerc943de32017-03-21 15:02:13 -050048
49EXTRA_OECONF = \
50 "FAN_DETECT_YAML_FILE=${STAGING_DIR_NATIVE}${presence_datadir}/config.yaml"