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." |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 5 | PR = "r1" |
Patrick Venture | 2bb72e9 | 2018-10-27 08:40:53 -0700 | [diff] [blame] | 6 | PV = "1.0+git${SRCPV}" |
Matt Spinler | 3578d90 | 2018-06-21 14:23:47 -0500 | [diff] [blame] | 7 | |
Patrick Williams | c7d848e | 2020-04-03 15:48:30 -0500 | [diff] [blame] | 8 | require ${BPN}.inc |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 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 \ |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 14 | ${PN}-updater-ubi \ |
Adriana Kobylak | 7df4aa0 | 2020-06-04 14:03:03 -0500 | [diff] [blame] | 15 | ${PN}-updater-mmc \ |
Adriana Kobylak | aabb95d | 2018-04-20 14:52:40 -0500 | [diff] [blame] | 16 | ${PN}-sync \ |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 17 | " |
Brad Bishop | 36a2dfb | 2018-04-11 11:42:17 -0400 | [diff] [blame] | 18 | PACKAGE_BEFORE_PN += "${SOFTWARE_MGR_PACKAGES}" |
| 19 | ALLOW_EMPTY_${PN} = "1" |
Brad Bishop | 4c43bb5 | 2017-03-01 15:37:17 -0500 | [diff] [blame] | 20 | |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 21 | DBUS_PACKAGES = "${SOFTWARE_MGR_PACKAGES}" |
| 22 | |
| 23 | # Set SYSTEMD_PACKAGES to empty because we do not want ${PN} and DBUS_PACKAGES |
| 24 | # handles the rest. |
| 25 | SYSTEMD_PACKAGES = "" |
| 26 | |
Adriana Kobylak | 2badcf9 | 2020-05-06 13:14:28 -0500 | [diff] [blame] | 27 | PACKAGECONFIG[verify_signature] = "-Dverify-signature=enabled, -Dverify-signature=disabled" |
| 28 | PACKAGECONFIG[sync_bmc_files] = "-Dsync-bmc-files=enabled, -Dsync-bmc-files=disabled" |
| 29 | PACKAGECONFIG[ubifs_layout] = "-Dbmc-layout=ubi" |
Adriana Kobylak | 7df4aa0 | 2020-06-04 14:03:03 -0500 | [diff] [blame] | 30 | PACKAGECONFIG[mmc_layout] = "-Dbmc-layout=mmc" |
Adriana Kobylak | 2badcf9 | 2020-05-06 13:14:28 -0500 | [diff] [blame] | 31 | PACKAGECONFIG[flash_bios] = "-Dhost-bios-upgrade=enabled, -Dhost-bios-upgrade=disabled" |
Adriana Kobylak | a3641d7 | 2018-03-29 15:16:09 -0500 | [diff] [blame] | 32 | |
Adriana Kobylak | 2badcf9 | 2020-05-06 13:14:28 -0500 | [diff] [blame] | 33 | inherit meson pkgconfig |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 34 | inherit obmc-phosphor-dbus-service |
Adriana Kobylak | a3ebfea | 2020-03-30 15:59:31 -0500 | [diff] [blame] | 35 | inherit python3native |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 36 | inherit ${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', 'phosphor-software-manager-ubi-fs', '', d)} |
Adriana Kobylak | 7df4aa0 | 2020-06-04 14:03:03 -0500 | [diff] [blame] | 37 | inherit ${@bb.utils.contains('DISTRO_FEATURES', 'phosphor-mmc', 'phosphor-software-manager-mmc', '', d)} |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 38 | |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 39 | DEPENDS += " \ |
Patrick Williams | a723ee3 | 2020-02-24 21:46:17 -0600 | [diff] [blame] | 40 | openssl \ |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 41 | phosphor-dbus-interfaces \ |
| 42 | phosphor-logging \ |
Patrick Williams | 2bebd12 | 2020-03-31 16:43:15 -0500 | [diff] [blame] | 43 | ${PYTHON_PN}-sdbus++-native \ |
Patrick Williams | a723ee3 | 2020-02-24 21:46:17 -0600 | [diff] [blame] | 44 | sdbusplus \ |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 45 | " |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 46 | |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 47 | RDEPENDS_${PN}-updater += " \ |
Lei YU | b2c944f | 2018-07-23 13:26:15 +0800 | [diff] [blame] | 48 | bash \ |
Patrick Williams | 2182d31 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 49 | virtual-obmc-image-manager \ |
Adriana Kobylak | 379f327 | 2020-05-29 12:57:11 -0500 | [diff] [blame] | 50 | ${@bb.utils.contains('PACKAGECONFIG', 'verify_signature', 'phosphor-image-signing', '', d)} \ |
Lei YU | ad84f76 | 2018-05-11 17:26:35 +0800 | [diff] [blame] | 51 | " |
Patrick Williams | 2182d31 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 52 | |
| 53 | RPROVIDES_${PN}-version += " \ |
| 54 | virtual-obmc-image-manager \ |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 55 | " |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 56 | |
Patrick Venture | 5c05f8a | 2019-03-30 08:03:17 -0700 | [diff] [blame] | 57 | FILES_${PN}-version += "${bindir}/phosphor-version-software-manager ${exec_prefix}/lib/tmpfiles.d/software.conf" |
| 58 | FILES_${PN}-download-mgr += "${bindir}/phosphor-download-manager" |
Lei YU | b2c944f | 2018-07-23 13:26:15 +0800 | [diff] [blame] | 59 | FILES_${PN}-updater += " \ |
Patrick Venture | 5c05f8a | 2019-03-30 08:03:17 -0700 | [diff] [blame] | 60 | ${bindir}/phosphor-image-updater \ |
| 61 | ${bindir}/obmc-flash-bmc \ |
Adriana Kobylak | 02b6df9 | 2019-10-25 13:02:36 -0500 | [diff] [blame] | 62 | /usr/local \ |
Lei YU | b2c944f | 2018-07-23 13:26:15 +0800 | [diff] [blame] | 63 | " |
Adriana Kobylak | a420efc | 2018-05-22 12:33:45 -0500 | [diff] [blame] | 64 | FILES_${PN}-sync += " \ |
Patrick Venture | 5c05f8a | 2019-03-30 08:03:17 -0700 | [diff] [blame] | 65 | ${bindir}/phosphor-sync-software-manager \ |
Adriana Kobylak | a420efc | 2018-05-22 12:33:45 -0500 | [diff] [blame] | 66 | ${sysconfdir}/synclist \ |
| 67 | " |
Gunnar Mills | 4a993b5 | 2017-05-11 08:27:12 -0500 | [diff] [blame] | 68 | DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service" |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 69 | DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service" |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 70 | DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service" |
Adriana Kobylak | aabb95d | 2018-04-20 14:52:40 -0500 | [diff] [blame] | 71 | DBUS_SERVICE_${PN}-sync += "xyz.openbmc_project.Software.Sync.service" |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 72 | |
Lei YU | b2c944f | 2018-07-23 13:26:15 +0800 | [diff] [blame] | 73 | SYSTEMD_SERVICE_${PN}-updater += " \ |
Andrew Geissler | b99a1ad | 2020-05-26 15:31:11 +0000 | [diff] [blame] | 74 | force-reboot.service \ |
Lei YU | b2c944f | 2018-07-23 13:26:15 +0800 | [diff] [blame] | 75 | obmc-flash-bmc-setenv@.service \ |
Andrew Geissler | b99a1ad | 2020-05-26 15:31:11 +0000 | [diff] [blame] | 76 | reboot-guard-disable.service \ |
| 77 | reboot-guard-enable.service \ |
Adriana Kobylak | 02b6df9 | 2019-10-25 13:02:36 -0500 | [diff] [blame] | 78 | usr-local.mount \ |
Lei YU | b2c944f | 2018-07-23 13:26:15 +0800 | [diff] [blame] | 79 | " |
| 80 | |
Vijay Khemka | 02e4429 | 2020-02-03 11:49:15 -0800 | [diff] [blame] | 81 | SYSTEMD_SERVICE_${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'flash_bios', 'obmc-flash-host-bios@.service', '', d)}" |
| 82 | |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 83 | S = "${WORKDIR}/git" |
Adriana Kobylak | 02b6df9 | 2019-10-25 13:02:36 -0500 | [diff] [blame] | 84 | |
| 85 | do_install_append() { |
| 86 | install -d ${D}/usr/local |
| 87 | } |