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 \ |
| 31 | phosphor-dbus-interfaces \ |
| 32 | phosphor-logging \ |
| 33 | sdbusplus \ |
Patrick Williams | 21d6569 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 34 | virtual-obmc-image-manager \ |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 35 | " |
| 36 | |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 37 | S = "${WORKDIR}/git" |
| 38 | |
| 39 | SRC_URI += "git://github.com/openbmc/openpower-pnor-code-mgmt" |
| 40 | |
Adriana Kobylak | e253838 | 2017-07-06 10:31:59 -0500 | [diff] [blame] | 41 | SRC_URI += "file://obmc-flash-bios" |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 42 | |
Andrew Geissler | 182a731 | 2019-01-29 22:31:02 +0000 | [diff] [blame] | 43 | SRCREV = "c9caf86988b5695c117894df1628cba0cc4b4210" |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 44 | |
| 45 | do_install_append() { |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 46 | install -d ${D}${sbindir} |
Adriana Kobylak | e253838 | 2017-07-06 10:31:59 -0500 | [diff] [blame] | 47 | install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${sbindir}/obmc-flash-bios |
Adriana Kobylak | 69d3de0 | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 48 | } |
| 49 | |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 50 | DBUS_SERVICE_${PN} += "org.open_power.Software.Host.Updater.service" |
Adriana Kobylak | 2e95082 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 51 | |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 52 | SYSTEMD_SERVICE_${PN} += " \ |
| 53 | obmc-flash-bios-ubiattach.service \ |
| 54 | obmc-flash-bios-ubimount@.service \ |
Saqib Khan | 6316a54 | 2017-07-29 11:27:27 -0500 | [diff] [blame] | 55 | obmc-flash-bios-ubiumount-ro@.service \ |
Adriana Kobylak | 7f01f21 | 2017-05-22 14:41:02 -0500 | [diff] [blame] | 56 | obmc-flash-bios-ubiumount-rw@.service \ |
Adriana Kobylak | d8b8575 | 2017-07-12 13:52:22 -0500 | [diff] [blame] | 57 | obmc-flash-bios-ubipatch.service \ |
Saqib Khan | bea768c | 2017-07-26 23:48:20 -0500 | [diff] [blame] | 58 | obmc-flash-bios-ubiremount.service \ |
Saqib Khan | fa92e97 | 2017-08-02 12:48:12 -0500 | [diff] [blame] | 59 | obmc-flash-bios-updatesymlinks.service \ |
Michael Tritz | ed6d7b0 | 2017-09-21 00:41:15 -0500 | [diff] [blame] | 60 | obmc-flash-bios-cleanup.service \ |
Michael Tritz | eee4542 | 2018-03-13 16:53:15 -0500 | [diff] [blame] | 61 | obmc-flash-bios-enable-clearvolatile@.service \ |
| 62 | obmc-flash-bios-check-clearvolatile@.service \ |
Adriana Kobylak | 32803f8 | 2018-10-10 09:47:17 -0500 | [diff] [blame] | 63 | op-pnor-msl.service \ |
Adriana Kobylak | f20b3aa | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 64 | " |
Michael Tritz | eee4542 | 2018-03-13 16:53:15 -0500 | [diff] [blame] | 65 | |
| 66 | ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service" |
| 67 | HOST_START_TGTFMT = "obmc-host-start@{0}.target" |
| 68 | ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service" |
| 69 | ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 70 | |
| 71 | CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service" |
| 72 | HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 73 | CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service" |
| 74 | CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 75 | |
| 76 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
| 77 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |