vishwabmc | 1bf499d | 2015-10-09 15:51:50 +0530 | [diff] [blame] | 1 | SUMMARY = "Phosphor OpenBMC IPMI daemon" |
| 2 | DESCRIPTION = "Phosphor OpenBMC IPMI router and plugin libraries" |
vishwabmc | 1bf499d | 2015-10-09 15:51:50 +0530 | [diff] [blame] | 3 | PR = "r1" |
| 4 | |
Brad Bishop | 7ee7146 | 2016-08-19 09:02:54 -0500 | [diff] [blame] | 5 | RRECOMMENDS_${PN} += "packagegroup-obmc-ipmid-providers-libs" |
Chris Austen | 213cd2a | 2015-10-24 19:34:11 -0500 | [diff] [blame] | 6 | |
Matthew Barth | 302592f | 2016-08-16 16:51:35 -0500 | [diff] [blame] | 7 | inherit autotools pkgconfig |
vishwabmc | 1bf499d | 2015-10-09 15:51:50 +0530 | [diff] [blame] | 8 | inherit obmc-phosphor-license |
Patrick Williams | f771406 | 2015-10-15 15:20:20 -0500 | [diff] [blame] | 9 | inherit obmc-phosphor-sdbus-service |
Tom Joseph | 40b4e3f | 2017-02-01 19:47:27 +0530 | [diff] [blame] | 10 | inherit obmc-phosphor-ipmiprovider-symlink |
Ratan Gupta | b92d0ec | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 11 | inherit phosphor-ipmi-host |
| 12 | inherit pythonnative |
Andrew Geissler | d40db75 | 2017-05-11 16:16:27 -0500 | [diff] [blame] | 13 | inherit obmc-phosphor-systemd |
vishwabmc | 1bf499d | 2015-10-09 15:51:50 +0530 | [diff] [blame] | 14 | |
Adriana Kobylak | 17885c2 | 2017-02-17 08:21:42 -0600 | [diff] [blame] | 15 | DEPENDS += "phosphor-logging" |
Brad Bishop | 1122eb0 | 2016-10-05 20:10:23 -0400 | [diff] [blame] | 16 | DEPENDS += "phosphor-mapper" |
Matthew Barth | 302592f | 2016-08-16 16:51:35 -0500 | [diff] [blame] | 17 | DEPENDS += "autoconf-archive-native" |
Tom Joseph | f07ae01 | 2017-02-20 12:01:43 +0530 | [diff] [blame] | 18 | DEPENDS += "packagegroup-obmc-ipmid-providers" |
Ratan Gupta | b92d0ec | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 19 | DEPENDS += "virtual/phosphor-ipmi-sensor-inventory" |
Ratan Gupta | 8dc22a9 | 2017-03-20 18:20:47 +0530 | [diff] [blame] | 20 | DEPENDS += "sdbusplus" |
| 21 | DEPENDS += "phosphor-dbus-interfaces" |
Andrew Geissler | d40db75 | 2017-05-11 16:16:27 -0500 | [diff] [blame] | 22 | DEPENDS += "obmc-targets" |
Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 23 | DEPENDS += "virtual/phosphor-ipmi-inventory-sel" |
Marri Devender Rao | 5add234 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 24 | DEPENDS += "virtual/phosphor-ipmi-fru-read-inventory" |
Ratan Gupta | b92d0ec | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 25 | |
Adriana Kobylak | 17885c2 | 2017-02-17 08:21:42 -0600 | [diff] [blame] | 26 | RDEPENDS_${PN}-dev += "phosphor-logging" |
Brad Bishop | 1122eb0 | 2016-10-05 20:10:23 -0400 | [diff] [blame] | 27 | RDEPENDS_${PN}-dev += "phosphor-mapper-dev" |
Milton D. Miller II | 611e3ff | 2016-03-04 15:29:29 -0600 | [diff] [blame] | 28 | RDEPENDS_${PN} += "clear-once" |
Adriana Kobylak | 8f2f3b3 | 2016-01-30 10:41:48 -0600 | [diff] [blame] | 29 | RDEPENDS_${PN} += "network" |
Brad Bishop | 9a701b4 | 2016-07-26 15:52:01 -0400 | [diff] [blame] | 30 | RDEPENDS_${PN} += "libmapper" |
Vishwanatha Subbanna | 78bc542 | 2016-11-10 21:52:46 +0530 | [diff] [blame] | 31 | RDEPENDS_${PN} += "phosphor-time-manager" |
Ratan Gupta | 8dc22a9 | 2017-03-20 18:20:47 +0530 | [diff] [blame] | 32 | RDEPENDS_${PN} += "sdbusplus phosphor-dbus-interfaces" |
Vishwanatha Subbanna | 55c545a | 2017-06-12 13:09:10 +0530 | [diff] [blame] | 33 | RDEPENDS_${PN} += "virtual/obmc-watchdog" |
Ratan Gupta | 8dc22a9 | 2017-03-20 18:20:47 +0530 | [diff] [blame] | 34 | |
Vishwanatha Subbanna | 3531840 | 2017-03-31 14:41:11 +0530 | [diff] [blame] | 35 | SYSTEMD_SERVICE_${PN} += "xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service phosphor-ipmi-host.service" |
| 36 | |
Adriana Kobylak | 79841ae | 2016-08-25 10:07:34 -0500 | [diff] [blame] | 37 | RRECOMMENDS_${PN} += "virtual-obmc-settings-mgmt" |
vishwabmc | 1bf499d | 2015-10-09 15:51:50 +0530 | [diff] [blame] | 38 | |
Marri Devender Rao | 52a9f2d | 2017-06-08 00:47:54 -0500 | [diff] [blame] | 39 | require ${PN}.inc |
Chris Austen | 213cd2a | 2015-10-24 19:34:11 -0500 | [diff] [blame] | 40 | |
Tom Joseph | f07ae01 | 2017-02-20 12:01:43 +0530 | [diff] [blame] | 41 | # Setup IPMI Whitelist Conf files |
| 42 | WHITELIST_CONF = " \ |
Patrick Williams | f11f015 | 2017-02-24 13:04:06 -0600 | [diff] [blame] | 43 | ${STAGING_DATADIR_NATIVE}/phosphor-ipmi-host/*.conf \ |
Tom Joseph | f07ae01 | 2017-02-20 12:01:43 +0530 | [diff] [blame] | 44 | ${S}/host-ipmid-whitelist.conf \ |
| 45 | " |
| 46 | EXTRA_OECONF = " \ |
| 47 | WHITELIST_CONF="${WHITELIST_CONF}" \ |
Ratan Gupta | b92d0ec | 2017-03-06 17:05:11 +0530 | [diff] [blame] | 48 | SENSOR_YAML_GEN=${STAGING_DIR_NATIVE}${sensor_datadir}/sensor.yaml \ |
Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 49 | INVSENSOR_YAML_GEN=${STAGING_DIR_NATIVE}${sensor_datadir}/invsensor.yaml \ |
Marri Devender Rao | 5add234 | 2017-06-08 03:17:36 -0500 | [diff] [blame] | 50 | FRU_YAML_GEN=${STAGING_DIR_NATIVE}${config_datadir}/config.yaml \ |
Tom Joseph | f07ae01 | 2017-02-20 12:01:43 +0530 | [diff] [blame] | 51 | " |
| 52 | |
vishwabmc | 1bf499d | 2015-10-09 15:51:50 +0530 | [diff] [blame] | 53 | S = "${WORKDIR}/git" |
| 54 | |
Tom Joseph | 40b4e3f | 2017-02-01 19:47:27 +0530 | [diff] [blame] | 55 | HOSTIPMI_PROVIDER_LIBRARY += "libapphandler.so" |
Tom Joseph | 40b4e3f | 2017-02-01 19:47:27 +0530 | [diff] [blame] | 56 | HOSTIPMI_PROVIDER_LIBRARY += "libsysintfcmds.so" |
| 57 | |
| 58 | NETIPMI_PROVIDER_LIBRARY += "libapphandler.so" |
| 59 | |
| 60 | FILES_${PN}_append = " ${libdir}/ipmid-providers/lib*${SOLIBS}" |
Matthew Barth | 302592f | 2016-08-16 16:51:35 -0500 | [diff] [blame] | 61 | FILES_${PN}_append = " ${libdir}/host-ipmid/lib*${SOLIBS}" |
Tom Joseph | 40b4e3f | 2017-02-01 19:47:27 +0530 | [diff] [blame] | 62 | FILES_${PN}_append = " ${libdir}/net-ipmid/lib*${SOLIBS}" |
| 63 | FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la" |
Brad Bishop | 3b524cf | 2016-09-06 13:03:39 -0400 | [diff] [blame] | 64 | |
Andrew Geissler | afc510f | 2017-01-04 11:11:50 -0600 | [diff] [blame] | 65 | # Soft Power Off |
| 66 | RDEPENDS_${PN} += "phosphor-mapper" |
Andrew Geissler | d40db75 | 2017-05-11 16:16:27 -0500 | [diff] [blame] | 67 | |
| 68 | # install the soft power off service in the host shutdown target |
| 69 | SOFT_SVC = "xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service" |
| 70 | SOFT_TGTFMT = "obmc-host-shutdown@{0}.target" |
| 71 | SOFT_FMT = "../${SOFT_SVC}:${SOFT_TGTFMT}.requires/${SOFT_SVC}" |
| 72 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'SOFT_FMT', 'OBMC_HOST_INSTANCES')}" |