blob: 4b834f47da9ac86d8dc5e288d85b649a44a211c1 [file] [log] [blame]
Adriana Kobylakadb57d92017-04-28 16:05:39 -05001SUMMARY = "OpenPower Software Management"
2DESCRIPTION = "OpenPower Software Manager provides a set of host software \
3management daemons. It is suitable for use on a wide variety of OpenPower \
4platforms."
5HOMEPAGE = "https://github.com/openbmc/openpower-pnor-code-mgmt"
6PR = "r1"
Patrick Venturec7a82082018-10-17 07:42:11 -07007PV = "1.0+git${SRCPV}"
Adriana Kobylakadb57d92017-04-28 16:05:39 -05008LICENSE = "Apache-2.0"
9LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
10
11inherit autotools pkgconfig
12inherit obmc-phosphor-dbus-service
Patrick Williamsc8e515c2017-08-28 12:00:05 -050013inherit pythonnative
Adriana Kobylakadb57d92017-04-28 16:05:39 -050014
Adriana Kobylakb3d29802018-05-07 13:28:09 -050015PACKAGECONFIG[verify_pnor_signature] = "--enable-verify_pnor_signature,--disable-verify_pnor_signature"
16
Adriana Kobylak26e87c52018-10-10 14:29:15 -050017EXTRA_OECONF += " \
18 PNOR_MSL="v2.0.10 v2.2" \
19 "
20
Adriana Kobylakadb57d92017-04-28 16:05:39 -050021DEPENDS += " \
22 autoconf-archive-native \
23 phosphor-dbus-interfaces \
24 phosphor-logging \
25 sdbusplus \
Patrick Williamsc8e515c2017-08-28 12:00:05 -050026 sdbusplus-native \
Adriana Kobylakadb57d92017-04-28 16:05:39 -050027 "
28
29RDEPENDS_${PN} += " \
30 mtd-utils-ubifs \
31 phosphor-dbus-interfaces \
32 phosphor-logging \
33 sdbusplus \
Patrick Williamsbd3a4a62017-08-09 17:36:04 -050034 virtual-obmc-image-manager \
Adriana Kobylakadb57d92017-04-28 16:05:39 -050035 "
36
Adriana Kobylakfc00de82017-06-02 09:22:40 -050037S = "${WORKDIR}/git"
38
39SRC_URI += "git://github.com/openbmc/openpower-pnor-code-mgmt"
40
Adriana Kobylake882f912017-07-06 10:31:59 -050041SRC_URI += "file://obmc-flash-bios"
Adriana Kobylak5bd157c2017-05-25 15:48:27 -050042
Andrew Geissler4992b4f2018-11-12 20:00:12 +000043SRCREV = "af07acf84ab9a226184bf3baad63df0b675f4f55"
Adriana Kobylakfc00de82017-06-02 09:22:40 -050044
45do_install_append() {
Adriana Kobylak5bd157c2017-05-25 15:48:27 -050046 install -d ${D}${sbindir}
Adriana Kobylake882f912017-07-06 10:31:59 -050047 install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${sbindir}/obmc-flash-bios
Adriana Kobylak5bd157c2017-05-25 15:48:27 -050048}
49
Adriana Kobylakadb57d92017-04-28 16:05:39 -050050DBUS_SERVICE_${PN} += "org.open_power.Software.Host.Updater.service"
Adriana Kobylakfc00de82017-06-02 09:22:40 -050051
Adriana Kobylakadb57d92017-04-28 16:05:39 -050052SYSTEMD_SERVICE_${PN} += " \
53 obmc-flash-bios-ubiattach.service \
54 obmc-flash-bios-ubimount@.service \
Saqib Khan20fe1ef2017-07-29 11:27:27 -050055 obmc-flash-bios-ubiumount-ro@.service \
Adriana Kobylake68378f2017-05-22 14:41:02 -050056 obmc-flash-bios-ubiumount-rw@.service \
Adriana Kobylakf287af32017-07-12 13:52:22 -050057 obmc-flash-bios-ubipatch.service \
Saqib Khan58c870d2017-07-26 23:48:20 -050058 obmc-flash-bios-ubiremount.service \
Saqib Khand536f0d2017-08-02 12:48:12 -050059 obmc-flash-bios-updatesymlinks.service \
Michael Tritzcebaac02017-09-21 00:41:15 -050060 obmc-flash-bios-cleanup.service \
Michael Tritz69848be2018-03-13 16:53:15 -050061 obmc-flash-bios-enable-clearvolatile@.service \
62 obmc-flash-bios-check-clearvolatile@.service \
Adriana Kobylakd288c932018-10-10 09:47:17 -050063 op-pnor-msl.service \
Adriana Kobylakadb57d92017-04-28 16:05:39 -050064 "
Michael Tritz69848be2018-03-13 16:53:15 -050065
66ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service"
67HOST_START_TGTFMT = "obmc-host-start@{0}.target"
68ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service"
69ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
70
71CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service"
72HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target"
73CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service"
74CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
75
76SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
77SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"