blob: 710a841d4f5c5cf3a28c59684bff0d69ad97a5e6 [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 \
Adriana Kobylak3aeee112018-06-04 13:06:52 -050014 ${PN}-updater-ubi \
Adriana Kobylakaabb95d2018-04-20 14:52:40 -050015 ${PN}-sync \
Gunnar Mills35591d42017-01-27 13:13:24 -060016"
Brad Bishop36a2dfb2018-04-11 11:42:17 -040017PACKAGE_BEFORE_PN += "${SOFTWARE_MGR_PACKAGES}"
18ALLOW_EMPTY_${PN} = "1"
Brad Bishop4c43bb52017-03-01 15:37:17 -050019
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
Adriana Kobylaka3641d72018-03-29 15:16:09 -050026PACKAGECONFIG[verify_signature] = "--enable-verify_signature,--disable-verify_signature"
Adriana Kobylakaabb95d2018-04-20 14:52:40 -050027PACKAGECONFIG[sync_bmc_files] = "--enable-sync_bmc_files,--disable-sync_bmc_files"
Lei YUdae52f32018-05-23 10:53:24 +080028PACKAGECONFIG[ubifs_layout] = "--enable-ubifs_layout"
Adriana Kobylaka3641d72018-03-29 15:16:09 -050029
Gunnar Mills35591d42017-01-27 13:13:24 -060030inherit autotools pkgconfig
31inherit obmc-phosphor-dbus-service
Gunnar Millse0178ae2017-05-24 13:12:22 -050032inherit pythonnative
Adriana Kobylak3aeee112018-06-04 13:06:52 -050033inherit ${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', 'phosphor-software-manager-ubi-fs', '', d)}
Gunnar Mills35591d42017-01-27 13:13:24 -060034
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050035DEPENDS += " \
36 autoconf-archive-native \
37 sdbusplus \
38 phosphor-dbus-interfaces \
39 phosphor-logging \
Saqib Khan5ef4efb2017-11-15 05:31:12 -060040 sdbus++-native \
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050041"
Gunnar Mills35591d42017-01-27 13:13:24 -060042
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050043RDEPENDS_${PN}-version += " \
44 phosphor-logging \
45 phosphor-dbus-interfaces \
46 sdbusplus \
47"
48RDEPENDS_${PN}-download-mgr += " \
49 phosphor-logging \
50 phosphor-dbus-interfaces \
51 sdbusplus \
52"
Gunnar Mills30131f72017-05-15 15:40:58 -050053RDEPENDS_${PN}-updater += " \
54 phosphor-logging \
55 phosphor-dbus-interfaces \
56 sdbusplus \
Patrick Williams2182d312017-08-09 17:36:04 -050057 virtual-obmc-image-manager \
Lei YUad84f762018-05-11 17:26:35 +080058"
Patrick Williams2182d312017-08-09 17:36:04 -050059
60RPROVIDES_${PN}-version += " \
61 virtual-obmc-image-manager \
Gunnar Mills30131f72017-05-15 15:40:58 -050062"
Gunnar Mills35591d42017-01-27 13:13:24 -060063
Brad Bishop33e5a8b2018-06-08 10:20:52 -040064FILES_${PN}-version += "${sbindir}/phosphor-version-software-manager ${exec_prefix}/lib/tmpfiles.d/software.conf"
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050065FILES_${PN}-download-mgr += "${sbindir}/phosphor-download-manager"
Adriana Kobylak3aeee112018-06-04 13:06:52 -050066FILES_${PN}-updater += "${sbindir}/phosphor-image-updater"
Adriana Kobylaka420efc2018-05-22 12:33:45 -050067FILES_${PN}-sync += " \
68 ${sbindir}/phosphor-sync-software-manager \
69 ${sysconfdir}/synclist \
70 "
Gunnar Mills4a993b52017-05-11 08:27:12 -050071DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service"
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050072DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service"
Gunnar Mills30131f72017-05-15 15:40:58 -050073DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service"
Adriana Kobylakaabb95d2018-04-20 14:52:40 -050074DBUS_SERVICE_${PN}-sync += "xyz.openbmc_project.Software.Sync.service"
Gunnar Mills35591d42017-01-27 13:13:24 -060075
Brad Bishop33e5a8b2018-06-08 10:20:52 -040076SRC_URI += "file://software.conf"
77
Adriana Kobylaka290eff2017-06-27 09:39:57 -050078do_install_append() {
Brad Bishop33e5a8b2018-06-08 10:20:52 -040079 # /tmp/images is the software image upload directory.
80 # It should not be deleted since it is watched by the Image Manager
81 # for new images.
82
83 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true', 'false', d)}; then
84 install -d ${D}${exec_prefix}/lib/tmpfiles.d
85 install -m 644 ${WORKDIR}/software.conf ${D}${exec_prefix}/lib/tmpfiles.d/
86 fi
Adriana Kobylaka290eff2017-06-27 09:39:57 -050087}
88
Gunnar Mills35591d42017-01-27 13:13:24 -060089SRC_URI += "git://github.com/openbmc/phosphor-bmc-code-mgmt"
Andrew Geissler4499a182018-07-12 08:35:04 -050090SRCREV = "aea48f27e46be9454e79a77e3594e021464ec903"
Gunnar Mills35591d42017-01-27 13:13:24 -060091
92S = "${WORKDIR}/git"