blob: a89991ca9b683d644e1c5391f3e04d376eb92168 [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 \
Saqib Khan5ef4efb2017-11-15 05:31:12 -060035 sdbus++-native \
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050036"
Gunnar Mills35591d42017-01-27 13:13:24 -060037
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050038RDEPENDS_${PN}-version += " \
39 phosphor-logging \
40 phosphor-dbus-interfaces \
41 sdbusplus \
42"
43RDEPENDS_${PN}-download-mgr += " \
44 phosphor-logging \
45 phosphor-dbus-interfaces \
46 sdbusplus \
47"
Gunnar Mills30131f72017-05-15 15:40:58 -050048RDEPENDS_${PN}-updater += " \
49 phosphor-logging \
50 phosphor-dbus-interfaces \
51 sdbusplus \
Patrick Williams2182d312017-08-09 17:36:04 -050052 virtual-obmc-image-manager \
Brad Bishop72cd4a52018-03-01 10:29:24 -050053 bash \
Patrick Williams2182d312017-08-09 17:36:04 -050054"
55
56RPROVIDES_${PN}-version += " \
57 virtual-obmc-image-manager \
Gunnar Mills30131f72017-05-15 15:40:58 -050058"
Gunnar Mills35591d42017-01-27 13:13:24 -060059
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050060FILES_${PN}-version += "${sbindir}/phosphor-version-software-manager"
61FILES_${PN}-download-mgr += "${sbindir}/phosphor-download-manager"
Adriana Kobylaka290eff2017-06-27 09:39:57 -050062FILES_${PN}-updater += " \
63 ${sbindir}/phosphor-image-updater \
64 ${sbindir}/obmc-flash-bmc \
Saqib Khan7ec18712017-08-23 23:43:53 -050065 /usr/local \
Adriana Kobylaka290eff2017-06-27 09:39:57 -050066 "
Gunnar Mills4a993b52017-05-11 08:27:12 -050067DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service"
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050068DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service"
Gunnar Mills30131f72017-05-15 15:40:58 -050069DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service"
Gunnar Mills35591d42017-01-27 13:13:24 -060070
Adriana Kobylaka290eff2017-06-27 09:39:57 -050071SYSTEMD_SERVICE_${PN}-updater += " \
72 obmc-flash-bmc-ubirw.service \
Adriana Kobylake9939492017-07-11 11:34:23 -050073 obmc-flash-bmc-ubiro@.service \
Michael Tritza694eed2017-07-13 16:26:15 -050074 obmc-flash-bmc-setenv@.service \
Leonel Gonzalez4aaad112017-07-21 12:54:55 -050075 obmc-flash-bmc-ubirw-remove.service \
76 obmc-flash-bmc-ubiro-remove@.service \
Adriana Kobylak97ea5ad2017-07-08 16:28:59 -050077 usr-local.mount \
Saqib Khanbb93e642017-08-10 11:24:38 -050078 obmc-flash-bmc-ubiremount.service \
Saqib Khan7e4a3f22017-09-12 09:23:28 -050079 obmc-flash-bmc-updateubootvars@.service \
Saqib Khandfc9b0c2017-09-08 10:10:08 -050080 reboot-guard-enable.service \
81 reboot-guard-disable.service \
Michael Tritz18781172017-09-21 00:41:15 -050082 obmc-flash-bmc-cleanup.service \
Adriana Kobylaka290eff2017-06-27 09:39:57 -050083 "
84
85# Name of the mtd device where the ubi volumes should be created
Adriana Kobylak4de98a92017-08-17 21:36:43 -050086BMC_RW_MTD ??= "bmc"
87BMC_RO_MTD ??= "bmc"
88BMC_KERNEL_MTD ??= "bmc"
Adriana Kobylakb7059982018-02-14 16:35:30 -060089BMC_RW_SIZE ??= "0x600000"
Adriana Kobylaka290eff2017-06-27 09:39:57 -050090SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service"
Adriana Kobylake9939492017-07-11 11:34:23 -050091SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service"
92SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service"
Adriana Kobylakb7059982018-02-14 16:35:30 -060093SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service"
Adriana Kobylaka290eff2017-06-27 09:39:57 -050094
95SRC_URI += "file://obmc-flash-bmc"
96do_install_append() {
97 install -d ${D}${sbindir}
98 install -m 0755 ${WORKDIR}/obmc-flash-bmc ${D}${sbindir}/obmc-flash-bmc
Saqib Khan7ec18712017-08-23 23:43:53 -050099 install -d ${D}/usr/local
Adriana Kobylaka290eff2017-06-27 09:39:57 -0500100}
101
Gunnar Mills35591d42017-01-27 13:13:24 -0600102SRC_URI += "git://github.com/openbmc/phosphor-bmc-code-mgmt"
Andrew Geisslereb065da2018-03-14 21:30:11 +0000103SRCREV = "0e0c1276a776a8d36d6ce2945bf1e583aae45136"
Gunnar Mills35591d42017-01-27 13:13:24 -0600104
105S = "${WORKDIR}/git"