blob: fffb58451fbb2e85d7b5390db05232ae0ab5b2db [file] [log] [blame]
vishwabmc1bf499d2015-10-09 15:51:50 +05301SUMMARY = "Phosphor OpenBMC IPMI daemon"
2DESCRIPTION = "Phosphor OpenBMC IPMI router and plugin libraries"
3HOMEPAGE = "http://github.com/openbmc/phosphor-host-ipmid"
4PR = "r1"
5
Brad Bishop7ee71462016-08-19 09:02:54 -05006RRECOMMENDS_${PN} += "packagegroup-obmc-ipmid-providers-libs"
Chris Austen213cd2a2015-10-24 19:34:11 -05007
Matthew Barth302592f2016-08-16 16:51:35 -05008inherit autotools pkgconfig
vishwabmc1bf499d2015-10-09 15:51:50 +05309inherit obmc-phosphor-license
Patrick Williamsf7714062015-10-15 15:20:20 -050010inherit obmc-phosphor-sdbus-service
Tom Joseph40b4e3f2017-02-01 19:47:27 +053011inherit obmc-phosphor-ipmiprovider-symlink
Ratan Guptab92d0ec2017-03-06 17:05:11 +053012inherit phosphor-ipmi-host
13inherit pythonnative
vishwabmc1bf499d2015-10-09 15:51:50 +053014
Adriana Kobylak17885c22017-02-17 08:21:42 -060015DEPENDS += "phosphor-logging"
Brad Bishop1122eb02016-10-05 20:10:23 -040016DEPENDS += "phosphor-mapper"
Matthew Barth302592f2016-08-16 16:51:35 -050017DEPENDS += "autoconf-archive-native"
Tom Josephf07ae012017-02-20 12:01:43 +053018DEPENDS += "packagegroup-obmc-ipmid-providers"
Ratan Guptab92d0ec2017-03-06 17:05:11 +053019DEPENDS += "virtual/phosphor-ipmi-sensor-inventory"
20
Adriana Kobylak17885c22017-02-17 08:21:42 -060021RDEPENDS_${PN}-dev += "phosphor-logging"
Brad Bishop1122eb02016-10-05 20:10:23 -040022RDEPENDS_${PN}-dev += "phosphor-mapper-dev"
Milton D. Miller II611e3ff2016-03-04 15:29:29 -060023RDEPENDS_${PN} += "clear-once"
Adriana Kobylak8f2f3b32016-01-30 10:41:48 -060024RDEPENDS_${PN} += "network"
Brad Bishop9a701b42016-07-26 15:52:01 -040025RDEPENDS_${PN} += "libmapper"
Vishwanatha Subbanna78bc5422016-11-10 21:52:46 +053026RDEPENDS_${PN} += "phosphor-time-manager"
Adriana Kobylak79841ae2016-08-25 10:07:34 -050027RRECOMMENDS_${PN} += "virtual-obmc-settings-mgmt"
vishwabmc1bf499d2015-10-09 15:51:50 +053028SRC_URI += "git://github.com/openbmc/phosphor-host-ipmid"
29
Patrick Williams46fd2572017-03-20 16:38:13 -050030SRCREV = "50234ad43e643ff7c01567b1000505d35bd035b5"
Chris Austen213cd2a2015-10-24 19:34:11 -050031
Tom Josephf07ae012017-02-20 12:01:43 +053032# Setup IPMI Whitelist Conf files
33WHITELIST_CONF = " \
Patrick Williamsf11f0152017-02-24 13:04:06 -060034 ${STAGING_DATADIR_NATIVE}/phosphor-ipmi-host/*.conf \
Tom Josephf07ae012017-02-20 12:01:43 +053035 ${S}/host-ipmid-whitelist.conf \
36 "
37EXTRA_OECONF = " \
38 WHITELIST_CONF="${WHITELIST_CONF}" \
Ratan Guptab92d0ec2017-03-06 17:05:11 +053039 SENSOR_YAML_GEN=${STAGING_DIR_NATIVE}${sensor_datadir}/sensor.yaml \
Tom Josephf07ae012017-02-20 12:01:43 +053040 "
41
vishwabmc1bf499d2015-10-09 15:51:50 +053042S = "${WORKDIR}/git"
43
Tom Joseph40b4e3f2017-02-01 19:47:27 +053044HOSTIPMI_PROVIDER_LIBRARY += "libapphandler.so"
45HOSTIPMI_PROVIDER_LIBRARY += "libhostservice.so"
46HOSTIPMI_PROVIDER_LIBRARY += "libsysintfcmds.so"
47
48NETIPMI_PROVIDER_LIBRARY += "libapphandler.so"
49
50FILES_${PN}_append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
Matthew Barth302592f2016-08-16 16:51:35 -050051FILES_${PN}_append = " ${libdir}/host-ipmid/lib*${SOLIBS}"
Tom Joseph40b4e3f2017-02-01 19:47:27 +053052FILES_${PN}_append = " ${libdir}/net-ipmid/lib*${SOLIBS}"
53FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
Brad Bishop3b524cf2016-09-06 13:03:39 -040054
55DBUS_SERVICE_${PN} += "org.openbmc.HostServices.service"
Andrew Geisslerafc510f2017-01-04 11:11:50 -060056
57# Soft Power Off
58RDEPENDS_${PN} += "phosphor-mapper"
59
60TMPL = "op-stop-host@.service"
61INSTFMT = "op-stop-host@{0}.service"
62TGTFMT = "obmc-stop-host@{0}.target"
63FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}"
64
65SYSTEMD_SERVICE_${PN} += "${TMPL}"
66SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_HOST_INSTANCES')}"