Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 1 | SUMMARY = "OpenPower Software Management" |
| 2 | DESCRIPTION = "OpenPower Software Manager provides a set of host software \ |
| 3 | management daemons. It is suitable for use on a wide variety of OpenPower \ |
| 4 | platforms." |
| 5 | HOMEPAGE = "https://github.com/openbmc/openpower-pnor-code-mgmt" |
| 6 | PR = "r1" |
| 7 | LICENSE = "Apache-2.0" |
| 8 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 9 | |
| 10 | inherit autotools pkgconfig |
| 11 | inherit obmc-phosphor-dbus-service |
Patrick Williams | 6d7f40b | 2017-08-28 12:00:05 -0500 | [diff] [blame] | 12 | inherit pythonnative |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 13 | |
| 14 | DEPENDS += " \ |
| 15 | autoconf-archive-native \ |
| 16 | phosphor-dbus-interfaces \ |
| 17 | phosphor-logging \ |
| 18 | sdbusplus \ |
Patrick Williams | 6d7f40b | 2017-08-28 12:00:05 -0500 | [diff] [blame] | 19 | sdbusplus-native \ |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 20 | " |
| 21 | |
| 22 | RDEPENDS_${PN} += " \ |
| 23 | mtd-utils-ubifs \ |
| 24 | phosphor-dbus-interfaces \ |
| 25 | phosphor-logging \ |
| 26 | sdbusplus \ |
Patrick Williams | 21d6569 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 27 | virtual-obmc-image-manager \ |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 28 | " |
| 29 | |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 30 | S = "${WORKDIR}/git" |
| 31 | |
| 32 | SRC_URI += "git://github.com/openbmc/openpower-pnor-code-mgmt" |
| 33 | |
Adriana Kobylak | e253838 | 2017-07-06 10:31:59 -0500 | [diff] [blame] | 34 | SRC_URI += "file://obmc-flash-bios" |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 35 | |
Andrew Geissler | 0fc1d9c | 2018-04-17 19:25:04 +0000 | [diff] [blame] | 36 | SRCREV = "207469f901a9cd3ea791e9a7bec4d8c697ac479c" |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 37 | |
| 38 | do_install_append() { |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 39 | install -d ${D}${sbindir} |
Adriana Kobylak | e253838 | 2017-07-06 10:31:59 -0500 | [diff] [blame] | 40 | install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${sbindir}/obmc-flash-bios |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 41 | } |
| 42 | |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 43 | DBUS_SERVICE_${PN} += "org.open_power.Software.Host.Updater.service" |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 44 | |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 45 | SYSTEMD_SERVICE_${PN} += " \ |
| 46 | obmc-flash-bios-ubiattach.service \ |
| 47 | obmc-flash-bios-ubimount@.service \ |
Saqib Khan | 6316a54 | 2017-07-29 11:27:27 -0500 | [diff] [blame] | 48 | obmc-flash-bios-ubiumount-ro@.service \ |
Adriana Kobylak | 7f01f21 | 2017-05-22 14:41:02 -0500 | [diff] [blame] | 49 | obmc-flash-bios-ubiumount-rw@.service \ |
Adriana Kobylak | d8b8575 | 2017-07-12 13:52:22 -0500 | [diff] [blame] | 50 | obmc-flash-bios-ubipatch.service \ |
Saqib Khan | bea768c | 2017-07-26 23:48:20 -0500 | [diff] [blame] | 51 | obmc-flash-bios-ubiremount.service \ |
Saqib Khan | fa92e97 | 2017-08-02 12:48:12 -0500 | [diff] [blame] | 52 | obmc-flash-bios-updatesymlinks.service \ |
Michael Tritz | f15008a | 2017-09-22 15:00:51 -0500 | [diff] [blame] | 53 | obmc-flash-bios-ubiclear@.service \ |
Michael Tritz | ed6d7b0 | 2017-09-21 00:41:15 -0500 | [diff] [blame] | 54 | obmc-flash-bios-cleanup.service \ |
Michael Tritz | eee4542 | 2018-03-13 16:53:15 -0500 | [diff] [blame^] | 55 | obmc-flash-bios-enable-clearvolatile@.service \ |
| 56 | obmc-flash-bios-check-clearvolatile@.service \ |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 57 | " |
Michael Tritz | eee4542 | 2018-03-13 16:53:15 -0500 | [diff] [blame^] | 58 | |
| 59 | ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service" |
| 60 | HOST_START_TGTFMT = "obmc-host-start@{0}.target" |
| 61 | ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service" |
| 62 | ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 63 | |
| 64 | CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service" |
| 65 | HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 66 | CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service" |
| 67 | CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 68 | |
| 69 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
| 70 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |