blob: 49693689ad195c32e39d2307e2d875029b84b140 [file] [log] [blame]
Adriana Kobylakf20b3aa2017-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 Venture191bfab2018-10-17 07:42:11 -07007PV = "1.0+git${SRCPV}"
Adriana Kobylakf20b3aa2017-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 Williams6d7f40b2017-08-28 12:00:05 -050013inherit pythonnative
Adriana Kobylakf20b3aa2017-04-28 16:05:39 -050014
Adriana Kobylakd7c95052018-05-07 13:28:09 -050015PACKAGECONFIG[verify_pnor_signature] = "--enable-verify_pnor_signature,--disable-verify_pnor_signature"
16
Adriana Kobylak4315c912018-10-10 14:29:15 -050017EXTRA_OECONF += " \
18 PNOR_MSL="v2.0.10 v2.2" \
19 "
20
Adriana Kobylakf20b3aa2017-04-28 16:05:39 -050021DEPENDS += " \
22 autoconf-archive-native \
23 phosphor-dbus-interfaces \
24 phosphor-logging \
25 sdbusplus \
Patrick Williams6d7f40b2017-08-28 12:00:05 -050026 sdbusplus-native \
Adriana Kobylakf20b3aa2017-04-28 16:05:39 -050027 "
28
29RDEPENDS_${PN} += " \
30 mtd-utils-ubifs \
Patrick Williams21d65692017-08-09 17:36:04 -050031 virtual-obmc-image-manager \
Adriana Kobylakf20b3aa2017-04-28 16:05:39 -050032 "
33
Adriana Kobylak2e950822017-06-02 09:22:40 -050034S = "${WORKDIR}/git"
35
36SRC_URI += "git://github.com/openbmc/openpower-pnor-code-mgmt"
37
Adriana Kobylake2538382017-07-06 10:31:59 -050038SRC_URI += "file://obmc-flash-bios"
Adriana Kobylak69d3de02017-05-25 15:48:27 -050039
Andrew Geissler2df46662019-04-01 16:41:19 +000040SRCREV = "799eb1972c141271068cd4ea1010753e0347d8ab"
Adriana Kobylak2e950822017-06-02 09:22:40 -050041
42do_install_append() {
Adriana Kobylak69d3de02017-05-25 15:48:27 -050043 install -d ${D}${sbindir}
Adriana Kobylake2538382017-07-06 10:31:59 -050044 install -m 0755 ${WORKDIR}/obmc-flash-bios ${D}${sbindir}/obmc-flash-bios
Adriana Kobylak69d3de02017-05-25 15:48:27 -050045}
46
Adriana Kobylakf20b3aa2017-04-28 16:05:39 -050047DBUS_SERVICE_${PN} += "org.open_power.Software.Host.Updater.service"
Adriana Kobylak2e950822017-06-02 09:22:40 -050048
Adriana Kobylakf20b3aa2017-04-28 16:05:39 -050049SYSTEMD_SERVICE_${PN} += " \
50 obmc-flash-bios-ubiattach.service \
51 obmc-flash-bios-ubimount@.service \
Saqib Khan6316a542017-07-29 11:27:27 -050052 obmc-flash-bios-ubiumount-ro@.service \
Adriana Kobylak7f01f212017-05-22 14:41:02 -050053 obmc-flash-bios-ubiumount-rw@.service \
Adriana Kobylakd8b85752017-07-12 13:52:22 -050054 obmc-flash-bios-ubipatch.service \
Saqib Khanbea768c2017-07-26 23:48:20 -050055 obmc-flash-bios-ubiremount.service \
Saqib Khanfa92e972017-08-02 12:48:12 -050056 obmc-flash-bios-updatesymlinks.service \
Michael Tritzed6d7b02017-09-21 00:41:15 -050057 obmc-flash-bios-cleanup.service \
Michael Tritzeee45422018-03-13 16:53:15 -050058 obmc-flash-bios-enable-clearvolatile@.service \
59 obmc-flash-bios-check-clearvolatile@.service \
Adriana Kobylak32803f82018-10-10 09:47:17 -050060 op-pnor-msl.service \
Adriana Kobylakf20b3aa2017-04-28 16:05:39 -050061 "
Michael Tritzeee45422018-03-13 16:53:15 -050062
63ENABLE_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-enable-clearvolatile@.service"
64HOST_START_TGTFMT = "obmc-host-start@{0}.target"
65ENABLE_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-enable-clearvolatile@{0}.service"
66ENABLE_CLEAR_VOLATILE_START_FMT = "../${ENABLE_CLEAR_VOLATILE_TMPL}:${HOST_START_TGTFMT}.requires/${ENABLE_CLEAR_VOLATILE_INSTFMT}"
67
68CHECK_CLEAR_VOLATILE_TMPL = "obmc-flash-bios-check-clearvolatile@.service"
69HOST_STARTMIN_TGTFMT = "obmc-host-startmin@{0}.target"
70CHECK_CLEAR_VOLATILE_INSTFMT = "obmc-flash-bios-check-clearvolatile@{0}.service"
71CHECK_CLEAR_VOLATILE_START_FMT = "../${CHECK_CLEAR_VOLATILE_TMPL}:${HOST_STARTMIN_TGTFMT}.requires/${CHECK_CLEAR_VOLATILE_INSTFMT}"
72
73SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'ENABLE_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"
74SYSTEMD_LINK_${PN} += "${@compose_list_zip(d, 'CHECK_CLEAR_VOLATILE_START_FMT', 'OBMC_HOST_INSTANCES')}"