Adriana Kobylak | adb57d9 | 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 | c7a8208 | 2018-10-17 07:42:11 -0700 | [diff] [blame] | 7 | PV = "1.0+git${SRCPV}" |
Adriana Kobylak | adb57d9 | 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 | c8e515c | 2017-08-28 12:00:05 -0500 | [diff] [blame] | 13 | inherit pythonnative |
Adriana Kobylak | adb57d9 | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 14 | |
Adriana Kobylak | b3d2980 | 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 | adb57d9 | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 17 | DEPENDS += " \ |
| 18 | autoconf-archive-native \ |
| 19 | phosphor-dbus-interfaces \ |
| 20 | phosphor-logging \ |
| 21 | sdbusplus \ |
Patrick Williams | c8e515c | 2017-08-28 12:00:05 -0500 | [diff] [blame] | 22 | sdbusplus-native \ |
Adriana Kobylak | adb57d9 | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 23 | " |
| 24 | |
| 25 | RDEPENDS_${PN} += " \ |
| 26 | mtd-utils-ubifs \ |
| 27 | phosphor-dbus-interfaces \ |
| 28 | phosphor-logging \ |
| 29 | sdbusplus \ |
Patrick Williams | bd3a4a6 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 30 | virtual-obmc-image-manager \ |
Adriana Kobylak | adb57d9 | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 31 | " |
| 32 | |
Adriana Kobylak | fc00de8 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 33 | S = "${WORKDIR}/git" |
| 34 | |
| 35 | SRC_URI += "git://github.com/openbmc/openpower-pnor-code-mgmt" |
| 36 | |
Adriana Kobylak | e882f91 | 2017-07-06 10:31:59 -0500 | [diff] [blame] | 37 | SRC_URI += "file://obmc-flash-bios" |
Adriana Kobylak | 5bd157c | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 38 | |
Andrew Geissler | 823ecd2 | 2018-10-18 12:50:12 +0000 | [diff] [blame] | 39 | SRCREV = "4772a944dc93438752af5deee1dd2350c8c69389" |
Adriana Kobylak | fc00de8 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 40 | |
| 41 | do_install_append() { |
Adriana Kobylak | 5bd157c | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 42 | install -d ${D}${sbindir} |
Adriana Kobylak | e882f91 | 2017-07-06 10:31:59 -0500 | [diff] [blame] | 43 | install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${sbindir}/obmc-flash-bios |
Adriana Kobylak | 5bd157c | 2017-05-25 15:48:27 -0500 | [diff] [blame] | 44 | } |
| 45 | |
Adriana Kobylak | adb57d9 | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 46 | DBUS_SERVICE_${PN} += "org.open_power.Software.Host.Updater.service" |
Adriana Kobylak | fc00de8 | 2017-06-02 09:22:40 -0500 | [diff] [blame] | 47 | |
Adriana Kobylak | adb57d9 | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 48 | SYSTEMD_SERVICE_${PN} += " \ |
| 49 | obmc-flash-bios-ubiattach.service \ |
| 50 | obmc-flash-bios-ubimount@.service \ |
Saqib Khan | 20fe1ef | 2017-07-29 11:27:27 -0500 | [diff] [blame] | 51 | obmc-flash-bios-ubiumount-ro@.service \ |
Adriana Kobylak | e68378f | 2017-05-22 14:41:02 -0500 | [diff] [blame] | 52 | obmc-flash-bios-ubiumount-rw@.service \ |
Adriana Kobylak | f287af3 | 2017-07-12 13:52:22 -0500 | [diff] [blame] | 53 | obmc-flash-bios-ubipatch.service \ |
Saqib Khan | 58c870d | 2017-07-26 23:48:20 -0500 | [diff] [blame] | 54 | obmc-flash-bios-ubiremount.service \ |
Saqib Khan | d536f0d | 2017-08-02 12:48:12 -0500 | [diff] [blame] | 55 | obmc-flash-bios-updatesymlinks.service \ |
Michael Tritz | cebaac0 | 2017-09-21 00:41:15 -0500 | [diff] [blame] | 56 | obmc-flash-bios-cleanup.service \ |
Michael Tritz | 69848be | 2018-03-13 16:53:15 -0500 | [diff] [blame] | 57 | obmc-flash-bios-enable-clearvolatile@.service \ |
| 58 | obmc-flash-bios-check-clearvolatile@.service \ |
Adriana Kobylak | d288c93 | 2018-10-10 09:47:17 -0500 | [diff] [blame] | 59 | op-pnor-msl.service \ |
Adriana Kobylak | adb57d9 | 2017-04-28 16:05:39 -0500 | [diff] [blame] | 60 | " |
Michael Tritz | 69848be | 2018-03-13 16:53:15 -0500 | [diff] [blame] | 61 | |
| 62 | ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service" |
| 63 | HOST_START_TGTFMT = "obmc-host-start@{0}.target" |
| 64 | ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service" |
| 65 | ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}" |
| 66 | |
| 67 | CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service" |
| 68 | HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target" |
| 69 | CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service" |
| 70 | CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}" |
| 71 | |
| 72 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |
| 73 | SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}" |