blob: 2e960596f8206627f584c7c07636ae3867ce0b2a [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
Andrew Geisslerd40db752017-05-11 16:16:27 -050014inherit obmc-phosphor-systemd
vishwabmc1bf499d2015-10-09 15:51:50 +053015
Adriana Kobylak17885c22017-02-17 08:21:42 -060016DEPENDS += "phosphor-logging"
Brad Bishop1122eb02016-10-05 20:10:23 -040017DEPENDS += "phosphor-mapper"
Matthew Barth302592f2016-08-16 16:51:35 -050018DEPENDS += "autoconf-archive-native"
Tom Josephf07ae012017-02-20 12:01:43 +053019DEPENDS += "packagegroup-obmc-ipmid-providers"
Ratan Guptab92d0ec2017-03-06 17:05:11 +053020DEPENDS += "virtual/phosphor-ipmi-sensor-inventory"
Ratan Gupta8dc22a92017-03-20 18:20:47 +053021DEPENDS += "sdbusplus"
22DEPENDS += "phosphor-dbus-interfaces"
Andrew Geisslerd40db752017-05-11 16:16:27 -050023DEPENDS += "obmc-targets"
Tom Josephf2614f92017-05-08 11:49:10 +053024DEPENDS += "virtual/phosphor-ipmi-inventory-sel"
Ratan Guptab92d0ec2017-03-06 17:05:11 +053025
Adriana Kobylak17885c22017-02-17 08:21:42 -060026RDEPENDS_${PN}-dev += "phosphor-logging"
Brad Bishop1122eb02016-10-05 20:10:23 -040027RDEPENDS_${PN}-dev += "phosphor-mapper-dev"
Milton D. Miller II611e3ff2016-03-04 15:29:29 -060028RDEPENDS_${PN} += "clear-once"
Adriana Kobylak8f2f3b32016-01-30 10:41:48 -060029RDEPENDS_${PN} += "network"
Brad Bishop9a701b42016-07-26 15:52:01 -040030RDEPENDS_${PN} += "libmapper"
Vishwanatha Subbanna78bc5422016-11-10 21:52:46 +053031RDEPENDS_${PN} += "phosphor-time-manager"
Ratan Gupta8dc22a92017-03-20 18:20:47 +053032RDEPENDS_${PN} += "sdbusplus phosphor-dbus-interfaces"
33
Vishwanatha Subbanna35318402017-03-31 14:41:11 +053034SYSTEMD_SERVICE_${PN} += "xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service phosphor-ipmi-host.service"
35
Adriana Kobylak79841ae2016-08-25 10:07:34 -050036RRECOMMENDS_${PN} += "virtual-obmc-settings-mgmt"
vishwabmc1bf499d2015-10-09 15:51:50 +053037SRC_URI += "git://github.com/openbmc/phosphor-host-ipmid"
38
Patrick Williams0fb59dc2017-06-01 22:40:12 -050039SRCREV = "fca6a4fc4baddf4880fe4d54d77a424bced21c76"
Chris Austen213cd2a2015-10-24 19:34:11 -050040
Tom Josephf07ae012017-02-20 12:01:43 +053041# Setup IPMI Whitelist Conf files
42WHITELIST_CONF = " \
Patrick Williamsf11f0152017-02-24 13:04:06 -060043 ${STAGING_DATADIR_NATIVE}/phosphor-ipmi-host/*.conf \
Tom Josephf07ae012017-02-20 12:01:43 +053044 ${S}/host-ipmid-whitelist.conf \
45 "
46EXTRA_OECONF = " \
47 WHITELIST_CONF="${WHITELIST_CONF}" \
Ratan Guptab92d0ec2017-03-06 17:05:11 +053048 SENSOR_YAML_GEN=${STAGING_DIR_NATIVE}${sensor_datadir}/sensor.yaml \
Tom Josephf2614f92017-05-08 11:49:10 +053049 INVSENSOR_YAML_GEN=${STAGING_DIR_NATIVE}${sensor_datadir}/invsensor.yaml \
Tom Josephf07ae012017-02-20 12:01:43 +053050 "
51
vishwabmc1bf499d2015-10-09 15:51:50 +053052S = "${WORKDIR}/git"
53
Tom Joseph40b4e3f2017-02-01 19:47:27 +053054HOSTIPMI_PROVIDER_LIBRARY += "libapphandler.so"
Tom Joseph40b4e3f2017-02-01 19:47:27 +053055HOSTIPMI_PROVIDER_LIBRARY += "libsysintfcmds.so"
56
57NETIPMI_PROVIDER_LIBRARY += "libapphandler.so"
58
59FILES_${PN}_append = " ${libdir}/ipmid-providers/lib*${SOLIBS}"
Matthew Barth302592f2016-08-16 16:51:35 -050060FILES_${PN}_append = " ${libdir}/host-ipmid/lib*${SOLIBS}"
Tom Joseph40b4e3f2017-02-01 19:47:27 +053061FILES_${PN}_append = " ${libdir}/net-ipmid/lib*${SOLIBS}"
62FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
Brad Bishop3b524cf2016-09-06 13:03:39 -040063
Andrew Geisslerafc510f2017-01-04 11:11:50 -060064# Soft Power Off
65RDEPENDS_${PN} += "phosphor-mapper"
Andrew Geisslerd40db752017-05-11 16:16:27 -050066
67# install the soft power off service in the host shutdown target
68SOFT_SVC = "xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service"
69SOFT_TGTFMT = "obmc-host-shutdown@{0}.target"
70SOFT_FMT = "../${SOFT_SVC}:${SOFT_TGTFMT}.requires/${SOFT_SVC}"
71SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'SOFT_FMT', 'OBMC_HOST_INSTANCES')}"