blob: e2877975e5ec76cf04525e1ff6972baab015241f [file] [log] [blame]
Gunnar Mills35591d42017-01-27 13:13:24 -06001SUMMARY = "Phosphor Software Management"
2DESCRIPTION = "Phosphor Software Manager provides a set of system software \
3management daemons. It is suitable for use on a wide variety of OpenBMC \
4platforms."
5HOMEPAGE = "https://github.com/openbmc/phosphor-bmc-code-mgmt"
6PR = "r1"
7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e"
9
10SOFTWARE_MGR_PACKAGES = " \
11 ${PN}-version \
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050012 ${PN}-download-mgr \
Gunnar Mills30131f72017-05-15 15:40:58 -050013 ${PN}-updater \
Gunnar Mills35591d42017-01-27 13:13:24 -060014"
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050015PACKAGES =+ "${SOFTWARE_MGR_PACKAGES}"
Brad Bishop4c43bb52017-03-01 15:37:17 -050016PACKAGES_remove = "${PN}"
17RDEPENDS_${PN}-dev = "${SOFTWARE_MGR_PACKAGES}"
18RDEPENDS_${PN}-staticdev = "${SOFTWARE_MGR_PACKAGES}"
19
Gunnar Mills35591d42017-01-27 13:13:24 -060020DBUS_PACKAGES = "${SOFTWARE_MGR_PACKAGES}"
21
22# Set SYSTEMD_PACKAGES to empty because we do not want ${PN} and DBUS_PACKAGES
23# handles the rest.
24SYSTEMD_PACKAGES = ""
25
26inherit autotools pkgconfig
27inherit obmc-phosphor-dbus-service
Gunnar Millse0178ae2017-05-24 13:12:22 -050028inherit pythonnative
Gunnar Mills35591d42017-01-27 13:13:24 -060029
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050030DEPENDS += " \
31 autoconf-archive-native \
32 sdbusplus \
33 phosphor-dbus-interfaces \
34 phosphor-logging \
35"
Gunnar Mills35591d42017-01-27 13:13:24 -060036
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050037RDEPENDS_${PN}-version += " \
38 phosphor-logging \
39 phosphor-dbus-interfaces \
40 sdbusplus \
41"
42RDEPENDS_${PN}-download-mgr += " \
43 phosphor-logging \
44 phosphor-dbus-interfaces \
45 sdbusplus \
46"
Gunnar Mills30131f72017-05-15 15:40:58 -050047RDEPENDS_${PN}-updater += " \
48 phosphor-logging \
49 phosphor-dbus-interfaces \
50 sdbusplus \
Patrick Williams2182d312017-08-09 17:36:04 -050051 virtual-obmc-image-manager \
52"
53
54RPROVIDES_${PN}-version += " \
55 virtual-obmc-image-manager \
Gunnar Mills30131f72017-05-15 15:40:58 -050056"
Gunnar Mills35591d42017-01-27 13:13:24 -060057
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050058FILES_${PN}-version += "${sbindir}/phosphor-version-software-manager"
59FILES_${PN}-download-mgr += "${sbindir}/phosphor-download-manager"
Adriana Kobylaka290eff2017-06-27 09:39:57 -050060FILES_${PN}-updater += " \
61 ${sbindir}/phosphor-image-updater \
62 ${sbindir}/obmc-flash-bmc \
63 "
Gunnar Mills4a993b52017-05-11 08:27:12 -050064DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service"
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050065DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service"
Gunnar Mills30131f72017-05-15 15:40:58 -050066DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service"
Gunnar Mills35591d42017-01-27 13:13:24 -060067
Adriana Kobylaka290eff2017-06-27 09:39:57 -050068SYSTEMD_SERVICE_${PN}-updater += " \
69 obmc-flash-bmc-ubirw.service \
Adriana Kobylake9939492017-07-11 11:34:23 -050070 obmc-flash-bmc-ubiro@.service \
Michael Tritza694eed2017-07-13 16:26:15 -050071 obmc-flash-bmc-setenv@.service \
Leonel Gonzalez4aaad112017-07-21 12:54:55 -050072 obmc-flash-bmc-ubirw-remove.service \
73 obmc-flash-bmc-ubiro-remove@.service \
Adriana Kobylak97ea5ad2017-07-08 16:28:59 -050074 usr-local.mount \
Saqib Khanbb93e642017-08-10 11:24:38 -050075 obmc-flash-bmc-ubiremount.service \
Adriana Kobylaka290eff2017-06-27 09:39:57 -050076 "
77
78# Name of the mtd device where the ubi volumes should be created
79BMC_RW_MTD ??= "pnor"
Adriana Kobylake9939492017-07-11 11:34:23 -050080BMC_RO_MTD ??= "pnor"
81# TODO Change kernel location to primary BMC chip once the rofs/rwfs mtd devices
82# are merged into a single ubi one openbmc/openbmc#1942
83BMC_KERNEL_MTD ??= "pnor"
Adriana Kobylaka290eff2017-06-27 09:39:57 -050084SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service"
Adriana Kobylake9939492017-07-11 11:34:23 -050085SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service"
86SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service"
Adriana Kobylaka290eff2017-06-27 09:39:57 -050087
88SRC_URI += "file://obmc-flash-bmc"
89do_install_append() {
90 install -d ${D}${sbindir}
91 install -m 0755 ${WORKDIR}/obmc-flash-bmc ${D}${sbindir}/obmc-flash-bmc
92}
93
Gunnar Mills35591d42017-01-27 13:13:24 -060094SRC_URI += "git://github.com/openbmc/phosphor-bmc-code-mgmt"
Patrick Williamsb4fc04c2017-08-22 16:20:05 -050095SRCREV = "0c2eb26253bdbd28a23cc6f20f8de61ced39e28b"
Gunnar Mills35591d42017-01-27 13:13:24 -060096
97S = "${WORKDIR}/git"