Deepak Kodihalli | f98bd11 | 2017-03-24 07:44:16 -0500 | [diff] [blame] | 1 | SUMMARY = "OpenPOWER OCC controller" |
| 2 | DESCRIPTION = "Application to contol the OpenPOWER On-Chip-Controller" |
| 3 | HOMEPAGE = "https://github.com/openbmc/openpower-occ-control" |
| 4 | PR = "r1" |
| 5 | |
Deepak Kodihalli | 615bdc1 | 2017-04-06 23:50:34 -0500 | [diff] [blame] | 6 | inherit autotools \ |
| 7 | pkgconfig \ |
Vishwanatha Subbanna | 359eee8 | 2017-05-04 09:45:29 -0500 | [diff] [blame] | 8 | obmc-phosphor-dbus-service \ |
| 9 | pythonnative |
Deepak Kodihalli | f98bd11 | 2017-03-24 07:44:16 -0500 | [diff] [blame] | 10 | |
| 11 | require ${PN}.inc |
| 12 | |
Andrew Geissler | 4cd9d0a | 2017-08-15 14:04:51 -0500 | [diff] [blame] | 13 | SRC_URI += "file://occ-active.sh" |
| 14 | do_install_append() { |
| 15 | install -d ${D}${bindir} |
| 16 | install -m 0755 ${WORKDIR}/occ-active.sh \ |
| 17 | ${D}${bindir}/occ-active.sh |
| 18 | } |
| 19 | |
Vishwanatha Subbanna | 5f74f13 | 2017-07-07 02:55:58 -0500 | [diff] [blame] | 20 | DBUS_SERVICE_${PN} += "org.open_power.OCC.Control.service" |
Vishwanatha Subbanna | 79bc0a4 | 2017-08-22 21:34:43 +0530 | [diff] [blame^] | 21 | SYSTEMD_SERVICE_${PN} += "op-occ-enable@.service" |
Andrew Geissler | 4cd9d0a | 2017-08-15 14:04:51 -0500 | [diff] [blame] | 22 | SYSTEMD_SERVICE_${PN} += "op-occ-disable@.service" |
Deepak Kodihalli | f98bd11 | 2017-03-24 07:44:16 -0500 | [diff] [blame] | 23 | |
Vishwanatha Subbanna | fcf5076 | 2017-08-09 15:00:34 +0530 | [diff] [blame] | 24 | DEPENDS += "virtual/${PN}-config-native" |
Deepak Kodihalli | f98bd11 | 2017-03-24 07:44:16 -0500 | [diff] [blame] | 25 | DEPENDS += " \ |
| 26 | sdbusplus \ |
| 27 | sdbusplus-native \ |
| 28 | phosphor-logging \ |
| 29 | openpower-dbus-interfaces \ |
Vishwanatha Subbanna | 5f74f13 | 2017-07-07 02:55:58 -0500 | [diff] [blame] | 30 | phosphor-dbus-interfaces \ |
Deepak Kodihalli | f98bd11 | 2017-03-24 07:44:16 -0500 | [diff] [blame] | 31 | openpower-dbus-interfaces-native \ |
| 32 | autoconf-archive-native \ |
Andrew Geissler | 4cd9d0a | 2017-08-15 14:04:51 -0500 | [diff] [blame] | 33 | obmc-targets \ |
| 34 | systemd \ |
Deepak Kodihalli | f98bd11 | 2017-03-24 07:44:16 -0500 | [diff] [blame] | 35 | " |
| 36 | |
| 37 | RDEPENDS_${PN} += " \ |
| 38 | sdbusplus \ |
| 39 | phosphor-logging \ |
| 40 | openpower-dbus-interfaces \ |
Vishwanatha Subbanna | 5f74f13 | 2017-07-07 02:55:58 -0500 | [diff] [blame] | 41 | phosphor-dbus-interfaces \ |
Deepak Kodihalli | f98bd11 | 2017-03-24 07:44:16 -0500 | [diff] [blame] | 42 | " |
| 43 | |
Vishwanatha Subbanna | fcf5076 | 2017-08-09 15:00:34 +0530 | [diff] [blame] | 44 | EXTRA_OECONF = "YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN}" |
Lei YU | 80caf06 | 2017-07-20 15:25:28 +0800 | [diff] [blame] | 45 | EXTRA_OECONF_append = "${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'i2c-occ', ' --enable-i2c-occ', '', d)}" |
| 46 | |
Vishwanatha Subbanna | 79bc0a4 | 2017-08-22 21:34:43 +0530 | [diff] [blame^] | 47 | OCC_ENABLE = "enable" |
| 48 | OCC_DISABLE = "disable" |
| 49 | HOST_START = "start" |
| 50 | HOST_STOP = "stop" |
| 51 | |
| 52 | # Ensure host-stop and host-start targets require needed occ states |
| 53 | OCC_TMPL = "op-occ-{0}@.service" |
| 54 | HOST_TGTFMT = "obmc-host-{1}@{2}.target" |
| 55 | OCC_INSTFMT = "op-occ-{0}@{2}.service" |
| 56 | HOST_OCC_FMT = "../${OCC_TMPL}:${HOST_TGTFMT}.requires/${OCC_INSTFMT}" |
| 57 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'HOST_OCC_FMT', 'OCC_ENABLE', 'HOST_START', 'OBMC_HOST_INSTANCES')}" |
| 58 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'HOST_OCC_FMT', 'OCC_DISABLE', 'HOST_STOP', 'OBMC_HOST_INSTANCES')}" |
Andrew Geissler | 4cd9d0a | 2017-08-15 14:04:51 -0500 | [diff] [blame] | 59 | |
Deepak Kodihalli | f98bd11 | 2017-03-24 07:44:16 -0500 | [diff] [blame] | 60 | S = "${WORKDIR}/git" |