Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 1 | SUMMARY = "Phosphor Software Management" |
| 2 | DESCRIPTION = "Phosphor Software Manager provides a set of system software \ |
| 3 | management daemons. It is suitable for use on a wide variety of OpenBMC \ |
| 4 | platforms." |
| 5 | HOMEPAGE = "https://github.com/openbmc/phosphor-bmc-code-mgmt" |
| 6 | PR = "r1" |
| 7 | LICENSE = "Apache-2.0" |
| 8 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=e3fc50a88d0a364313df4b21ef20c29e" |
| 9 | |
| 10 | SOFTWARE_MGR_PACKAGES = " \ |
| 11 | ${PN}-version \ |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 12 | ${PN}-download-mgr \ |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 13 | ${PN}-updater \ |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 14 | " |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 15 | PACKAGES =+ "${SOFTWARE_MGR_PACKAGES}" |
Brad Bishop | 4c43bb5 | 2017-03-01 15:37:17 -0500 | [diff] [blame] | 16 | PACKAGES_remove = "${PN}" |
| 17 | RDEPENDS_${PN}-dev = "${SOFTWARE_MGR_PACKAGES}" |
| 18 | RDEPENDS_${PN}-staticdev = "${SOFTWARE_MGR_PACKAGES}" |
| 19 | |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 20 | DBUS_PACKAGES = "${SOFTWARE_MGR_PACKAGES}" |
| 21 | |
| 22 | # Set SYSTEMD_PACKAGES to empty because we do not want ${PN} and DBUS_PACKAGES |
| 23 | # handles the rest. |
| 24 | SYSTEMD_PACKAGES = "" |
| 25 | |
| 26 | inherit autotools pkgconfig |
| 27 | inherit obmc-phosphor-dbus-service |
Gunnar Mills | e0178ae | 2017-05-24 13:12:22 -0500 | [diff] [blame] | 28 | inherit pythonnative |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 29 | |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 30 | DEPENDS += " \ |
| 31 | autoconf-archive-native \ |
| 32 | sdbusplus \ |
| 33 | phosphor-dbus-interfaces \ |
| 34 | phosphor-logging \ |
Saqib Khan | 5ef4efb | 2017-11-15 05:31:12 -0600 | [diff] [blame] | 35 | sdbus++-native \ |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 36 | " |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 37 | |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 38 | RDEPENDS_${PN}-version += " \ |
| 39 | phosphor-logging \ |
| 40 | phosphor-dbus-interfaces \ |
| 41 | sdbusplus \ |
| 42 | " |
| 43 | RDEPENDS_${PN}-download-mgr += " \ |
| 44 | phosphor-logging \ |
| 45 | phosphor-dbus-interfaces \ |
| 46 | sdbusplus \ |
| 47 | " |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 48 | RDEPENDS_${PN}-updater += " \ |
| 49 | phosphor-logging \ |
| 50 | phosphor-dbus-interfaces \ |
| 51 | sdbusplus \ |
Patrick Williams | 2182d31 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 52 | virtual-obmc-image-manager \ |
Brad Bishop | 72cd4a5 | 2018-03-01 10:29:24 -0500 | [diff] [blame] | 53 | bash \ |
Patrick Williams | 2182d31 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 54 | " |
| 55 | |
| 56 | RPROVIDES_${PN}-version += " \ |
| 57 | virtual-obmc-image-manager \ |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 58 | " |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 59 | |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 60 | FILES_${PN}-version += "${sbindir}/phosphor-version-software-manager" |
| 61 | FILES_${PN}-download-mgr += "${sbindir}/phosphor-download-manager" |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 62 | FILES_${PN}-updater += " \ |
| 63 | ${sbindir}/phosphor-image-updater \ |
| 64 | ${sbindir}/obmc-flash-bmc \ |
Saqib Khan | 7ec1871 | 2017-08-23 23:43:53 -0500 | [diff] [blame] | 65 | /usr/local \ |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 66 | " |
Gunnar Mills | 4a993b5 | 2017-05-11 08:27:12 -0500 | [diff] [blame] | 67 | DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service" |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 68 | DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service" |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 69 | DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service" |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 70 | |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 71 | SYSTEMD_SERVICE_${PN}-updater += " \ |
| 72 | obmc-flash-bmc-ubirw.service \ |
Adriana Kobylak | e993949 | 2017-07-11 11:34:23 -0500 | [diff] [blame] | 73 | obmc-flash-bmc-ubiro@.service \ |
Michael Tritz | a694eed | 2017-07-13 16:26:15 -0500 | [diff] [blame] | 74 | obmc-flash-bmc-setenv@.service \ |
Leonel Gonzalez | 4aaad11 | 2017-07-21 12:54:55 -0500 | [diff] [blame] | 75 | obmc-flash-bmc-ubirw-remove.service \ |
| 76 | obmc-flash-bmc-ubiro-remove@.service \ |
Adriana Kobylak | 97ea5ad | 2017-07-08 16:28:59 -0500 | [diff] [blame] | 77 | usr-local.mount \ |
Saqib Khan | bb93e64 | 2017-08-10 11:24:38 -0500 | [diff] [blame] | 78 | obmc-flash-bmc-ubiremount.service \ |
Saqib Khan | 7e4a3f2 | 2017-09-12 09:23:28 -0500 | [diff] [blame] | 79 | obmc-flash-bmc-updateubootvars@.service \ |
Saqib Khan | dfc9b0c | 2017-09-08 10:10:08 -0500 | [diff] [blame] | 80 | reboot-guard-enable.service \ |
| 81 | reboot-guard-disable.service \ |
Michael Tritz | 1878117 | 2017-09-21 00:41:15 -0500 | [diff] [blame] | 82 | obmc-flash-bmc-cleanup.service \ |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 83 | " |
| 84 | |
| 85 | # Name of the mtd device where the ubi volumes should be created |
Adriana Kobylak | 4de98a9 | 2017-08-17 21:36:43 -0500 | [diff] [blame] | 86 | BMC_RW_MTD ??= "bmc" |
| 87 | BMC_RO_MTD ??= "bmc" |
| 88 | BMC_KERNEL_MTD ??= "bmc" |
Adriana Kobylak | b705998 | 2018-02-14 16:35:30 -0600 | [diff] [blame] | 89 | BMC_RW_SIZE ??= "0x600000" |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 90 | SYSTEMD_SUBSTITUTIONS += "RW_MTD:${BMC_RW_MTD}:obmc-flash-bmc-ubirw.service" |
Adriana Kobylak | e993949 | 2017-07-11 11:34:23 -0500 | [diff] [blame] | 91 | SYSTEMD_SUBSTITUTIONS += "RO_MTD:${BMC_RO_MTD}:obmc-flash-bmc-ubiro@.service" |
| 92 | SYSTEMD_SUBSTITUTIONS += "KERNEL_MTD:${BMC_KERNEL_MTD}:obmc-flash-bmc-ubiro@.service" |
Adriana Kobylak | b705998 | 2018-02-14 16:35:30 -0600 | [diff] [blame] | 93 | SYSTEMD_SUBSTITUTIONS += "RW_SIZE:${BMC_RW_SIZE}:obmc-flash-bmc-ubirw.service" |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 94 | |
| 95 | SRC_URI += "file://obmc-flash-bmc" |
| 96 | do_install_append() { |
| 97 | install -d ${D}${sbindir} |
| 98 | install -m 0755 ${WORKDIR}/obmc-flash-bmc ${D}${sbindir}/obmc-flash-bmc |
Saqib Khan | 7ec1871 | 2017-08-23 23:43:53 -0500 | [diff] [blame] | 99 | install -d ${D}/usr/local |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 100 | } |
| 101 | |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 102 | SRC_URI += "git://github.com/openbmc/phosphor-bmc-code-mgmt" |
Andrew Geissler | 467d706 | 2018-04-09 20:55:09 +0000 | [diff] [blame^] | 103 | SRCREV = "2bcba02aa2bb3b949640ffe9868c0edbf585038f" |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 104 | |
| 105 | S = "${WORKDIR}/git" |