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" |
Matt Spinler | 3578d90 | 2018-06-21 14:23:47 -0500 | [diff] [blame] | 6 | |
| 7 | require ${PN}.inc |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 8 | |
| 9 | SOFTWARE_MGR_PACKAGES = " \ |
| 10 | ${PN}-version \ |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 11 | ${PN}-download-mgr \ |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 12 | ${PN}-updater \ |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 13 | ${PN}-updater-ubi \ |
Adriana Kobylak | aabb95d | 2018-04-20 14:52:40 -0500 | [diff] [blame] | 14 | ${PN}-sync \ |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 15 | " |
Brad Bishop | 36a2dfb | 2018-04-11 11:42:17 -0400 | [diff] [blame] | 16 | PACKAGE_BEFORE_PN += "${SOFTWARE_MGR_PACKAGES}" |
| 17 | ALLOW_EMPTY_${PN} = "1" |
Brad Bishop | 4c43bb5 | 2017-03-01 15:37:17 -0500 | [diff] [blame] | 18 | |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 19 | DBUS_PACKAGES = "${SOFTWARE_MGR_PACKAGES}" |
| 20 | |
| 21 | # Set SYSTEMD_PACKAGES to empty because we do not want ${PN} and DBUS_PACKAGES |
| 22 | # handles the rest. |
| 23 | SYSTEMD_PACKAGES = "" |
| 24 | |
Adriana Kobylak | a3641d7 | 2018-03-29 15:16:09 -0500 | [diff] [blame] | 25 | PACKAGECONFIG[verify_signature] = "--enable-verify_signature,--disable-verify_signature" |
Adriana Kobylak | aabb95d | 2018-04-20 14:52:40 -0500 | [diff] [blame] | 26 | PACKAGECONFIG[sync_bmc_files] = "--enable-sync_bmc_files,--disable-sync_bmc_files" |
Lei YU | dae52f3 | 2018-05-23 10:53:24 +0800 | [diff] [blame] | 27 | PACKAGECONFIG[ubifs_layout] = "--enable-ubifs_layout" |
Adriana Kobylak | a3641d7 | 2018-03-29 15:16:09 -0500 | [diff] [blame] | 28 | |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 29 | inherit autotools pkgconfig |
| 30 | inherit obmc-phosphor-dbus-service |
Gunnar Mills | e0178ae | 2017-05-24 13:12:22 -0500 | [diff] [blame] | 31 | inherit pythonnative |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 32 | inherit ${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', 'phosphor-software-manager-ubi-fs', '', d)} |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 33 | |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 34 | DEPENDS += " \ |
| 35 | autoconf-archive-native \ |
| 36 | sdbusplus \ |
| 37 | phosphor-dbus-interfaces \ |
| 38 | phosphor-logging \ |
Saqib Khan | 5ef4efb | 2017-11-15 05:31:12 -0600 | [diff] [blame] | 39 | sdbus++-native \ |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 40 | " |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 41 | |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 42 | RDEPENDS_${PN}-version += " \ |
| 43 | phosphor-logging \ |
| 44 | phosphor-dbus-interfaces \ |
| 45 | sdbusplus \ |
| 46 | " |
| 47 | RDEPENDS_${PN}-download-mgr += " \ |
| 48 | phosphor-logging \ |
| 49 | phosphor-dbus-interfaces \ |
| 50 | sdbusplus \ |
| 51 | " |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 52 | RDEPENDS_${PN}-updater += " \ |
| 53 | phosphor-logging \ |
| 54 | phosphor-dbus-interfaces \ |
| 55 | sdbusplus \ |
Patrick Williams | 2182d31 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 56 | virtual-obmc-image-manager \ |
Lei YU | ad84f76 | 2018-05-11 17:26:35 +0800 | [diff] [blame] | 57 | " |
Patrick Williams | 2182d31 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 58 | |
| 59 | RPROVIDES_${PN}-version += " \ |
| 60 | virtual-obmc-image-manager \ |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 61 | " |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 62 | |
Brad Bishop | 33e5a8b | 2018-06-08 10:20:52 -0400 | [diff] [blame] | 63 | FILES_${PN}-version += "${sbindir}/phosphor-version-software-manager ${exec_prefix}/lib/tmpfiles.d/software.conf" |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 64 | FILES_${PN}-download-mgr += "${sbindir}/phosphor-download-manager" |
Adriana Kobylak | 3aeee11 | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 65 | FILES_${PN}-updater += "${sbindir}/phosphor-image-updater" |
Adriana Kobylak | a420efc | 2018-05-22 12:33:45 -0500 | [diff] [blame] | 66 | FILES_${PN}-sync += " \ |
| 67 | ${sbindir}/phosphor-sync-software-manager \ |
| 68 | ${sysconfdir}/synclist \ |
| 69 | " |
Gunnar Mills | 4a993b5 | 2017-05-11 08:27:12 -0500 | [diff] [blame] | 70 | DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service" |
Deepak Kodihalli | 60d1de5 | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 71 | DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service" |
Gunnar Mills | 30131f7 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 72 | DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service" |
Adriana Kobylak | aabb95d | 2018-04-20 14:52:40 -0500 | [diff] [blame] | 73 | DBUS_SERVICE_${PN}-sync += "xyz.openbmc_project.Software.Sync.service" |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 74 | |
Brad Bishop | 33e5a8b | 2018-06-08 10:20:52 -0400 | [diff] [blame] | 75 | SRC_URI += "file://software.conf" |
| 76 | |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 77 | do_install_append() { |
Brad Bishop | 33e5a8b | 2018-06-08 10:20:52 -0400 | [diff] [blame] | 78 | # /tmp/images is the software image upload directory. |
| 79 | # It should not be deleted since it is watched by the Image Manager |
| 80 | # for new images. |
| 81 | |
| 82 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true', 'false', d)}; then |
| 83 | install -d ${D}${exec_prefix}/lib/tmpfiles.d |
| 84 | install -m 644 ${WORKDIR}/software.conf ${D}${exec_prefix}/lib/tmpfiles.d/ |
| 85 | fi |
Adriana Kobylak | a290eff | 2017-06-27 09:39:57 -0500 | [diff] [blame] | 86 | } |
| 87 | |
Gunnar Mills | 35591d4 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 88 | S = "${WORKDIR}/git" |