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" |
Patrick Venture | 191bfab | 2018-10-17 07:42:11 -0700 | [diff] [blame] | 7 | PV = "1.0+git${SRCPV}" |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 8 | LICENSE = "Apache-2.0" |
| 9 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 10 | |
| 11 | inherit autotools pkgconfig |
| 12 | inherit obmc-phosphor-dbus-service |
Patrick Williams | 6d7f40b | 2017-08-28 12:00:05 -0500 | [diff] [blame] | 13 | inherit pythonnative |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 14 | |
Adriana Kobylak | d7c9505 | 2018-05-07 13:28:09 -0500 | [diff] [blame] | 15 | PACKAGECONFIG[verify_pnor_signature] = "--enable-verify_pnor_signature,--disable-verify_pnor_signature" |
| 16 | |
Adriana Kobylak | 4315c91 | 2018-10-10 14:29:15 -0500 | [diff] [blame] | 17 | EXTRA_OECONF += " \ |
| 18 | PNOR_MSL="v2.0.10 v2.2" \ |
| 19 | " |
| 20 | |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 21 | DEPENDS += " \ |
| 22 | autoconf-archive-native \ |
| 23 | phosphor-dbus-interfaces \ |
| 24 | phosphor-logging \ |
| 25 | sdbusplus \ |
Patrick Williams | 6d7f40b | 2017-08-28 12:00:05 -0500 | [diff] [blame] | 26 | sdbusplus-native \ |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 27 | " |
| 28 | |
| 29 | RDEPENDS_${PN} += " \ |
| 30 | mtd-utils-ubifs \ |
Patrick Williams | 21d6569 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 31 | virtual-obmc-image-manager \ |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 32 | " |
| 33 | |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 34 | S = "${WORKDIR}/git" |
| 35 | |
| 36 | SRC_URI += "git://github.com/openbmc/openpower-pnor-code-mgmt" |
| 37 | |
Adriana Kobylak | e253838 | 2017-07-06 10:31:59 -0500 | [diff] [blame] | 38 | SRC_URI += "file://obmc-flash-bios" |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 39 | |
Andrew Geissler | 2df4666 | 2019-04-01 16:41:19 +0000 | [diff] [blame] | 40 | SRCREV = "799eb1972c141271068cd4ea1010753e0347d8ab" |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 41 | |
| 42 | do_install_append() { |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 43 | install -d ${D}${sbindir} |
Adriana Kobylak | e253838 | 2017-07-06 10:31:59 -0500 | [diff] [blame] | 44 | install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${sbindir}/obmc-flash-bios |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 45 | } |
| 46 | |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 47 | DBUS_SERVICE_${PN} += "org.open_power.Software.Host.Updater.service" |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 48 | |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 49 | SYSTEMD_SERVICE_${PN} += " \ |
| 50 | obmc-flash-bios-ubiattach.service \ |
| 51 | obmc-flash-bios-ubimount@.service \ |
Saqib Khan | 6316a54 | 2017-07-29 11:27:27 -0500 | [diff] [blame] | 52 | obmc-flash-bios-ubiumount-ro@.service \ |
Adriana Kobylak | 7f01f21 | 2017-05-22 14:41:02 -0500 | [diff] [blame] | 53 | obmc-flash-bios-ubiumount-rw@.service \ |
Adriana Kobylak | d8b8575 | 2017-07-12 13:52:22 -0500 | [diff] [blame] | 54 | obmc-flash-bios-ubipatch.service \ |
Saqib Khan | bea768c | 2017-07-26 23:48:20 -0500 | [diff] [blame] | 55 | obmc-flash-bios-ubiremount.service \ |
Saqib Khan | fa92e97 | 2017-08-02 12:48:12 -0500 | [diff] [blame] | 56 | obmc-flash-bios-updatesymlinks.service \ |
Michael Tritz | ed6d7b0 | 2017-09-21 00:41:15 -0500 | [diff] [blame] | 57 | obmc-flash-bios-cleanup.service \ |
Michael Tritz | eee4542 | 2018-03-13 16:53:15 -0500 | [diff] [blame] | 58 | obmc-flash-bios-enable-clearvolatile@.service \ |
| 59 | obmc-flash-bios-check-clearvolatile@.service \ |
Adriana Kobylak | 32803f8 | 2018-10-10 09:47:17 -0500 | [diff] [blame] | 60 | op-pnor-msl.service \ |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 61 | " |
Michael Tritz | eee4542 | 2018-03-13 16:53:15 -0500 | [diff] [blame] | 62 | |
| 63 | ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service" |
| 64 | HOST_START_TGTFMT = "obmc-host-start@{0}.target" |
| 65 | ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service" |
| 66 | ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 67 | |
| 68 | CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service" |
| 69 | HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 70 | CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service" |
| 71 | CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 72 | |
| 73 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
| 74 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |