blob: d561eba48500e9aa3f9ca4a5943e198c484378ec [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."
Gunnar Mills35591d42017-01-27 13:13:24 -06005PR = "r1"
Patrick Venture2bb72e92018-10-27 08:40:53 -07006PV = "1.0+git${SRCPV}"
Matt Spinler3578d902018-06-21 14:23:47 -05007
Patrick Williamsc7d848e2020-04-03 15:48:30 -05008require ${BPN}.inc
Gunnar Mills35591d42017-01-27 13:13:24 -06009
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 Kobylak7df4aa02020-06-04 14:03:03 -050015 ${PN}-updater-mmc \
Adriana Kobylakaabb95d2018-04-20 14:52:40 -050016 ${PN}-sync \
Gunnar Mills35591d42017-01-27 13:13:24 -060017"
Brad Bishop36a2dfb2018-04-11 11:42:17 -040018PACKAGE_BEFORE_PN += "${SOFTWARE_MGR_PACKAGES}"
19ALLOW_EMPTY_${PN} = "1"
Brad Bishop4c43bb52017-03-01 15:37:17 -050020
Gunnar Mills35591d42017-01-27 13:13:24 -060021DBUS_PACKAGES = "${SOFTWARE_MGR_PACKAGES}"
22
23# Set SYSTEMD_PACKAGES to empty because we do not want ${PN} and DBUS_PACKAGES
24# handles the rest.
25SYSTEMD_PACKAGES = ""
26
Adriana Kobylak2badcf92020-05-06 13:14:28 -050027PACKAGECONFIG[verify_signature] = "-Dverify-signature=enabled, -Dverify-signature=disabled"
28PACKAGECONFIG[sync_bmc_files] = "-Dsync-bmc-files=enabled, -Dsync-bmc-files=disabled"
29PACKAGECONFIG[ubifs_layout] = "-Dbmc-layout=ubi"
Adriana Kobylak7df4aa02020-06-04 14:03:03 -050030PACKAGECONFIG[mmc_layout] = "-Dbmc-layout=mmc"
Adriana Kobylak2badcf92020-05-06 13:14:28 -050031PACKAGECONFIG[flash_bios] = "-Dhost-bios-upgrade=enabled, -Dhost-bios-upgrade=disabled"
Adriana Kobylaka3641d72018-03-29 15:16:09 -050032
Adriana Kobylak2badcf92020-05-06 13:14:28 -050033inherit meson pkgconfig
Gunnar Mills35591d42017-01-27 13:13:24 -060034inherit obmc-phosphor-dbus-service
Adriana Kobylaka3ebfea2020-03-30 15:59:31 -050035inherit python3native
Adriana Kobylak3aeee112018-06-04 13:06:52 -050036inherit ${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', 'phosphor-software-manager-ubi-fs', '', d)}
Adriana Kobylak7df4aa02020-06-04 14:03:03 -050037inherit ${@bb.utils.contains('DISTRO_FEATURES', 'phosphor-mmc', 'phosphor-software-manager-mmc', '', d)}
Gunnar Mills35591d42017-01-27 13:13:24 -060038
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050039DEPENDS += " \
Patrick Williamsa723ee32020-02-24 21:46:17 -060040 openssl \
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050041 phosphor-dbus-interfaces \
42 phosphor-logging \
Patrick Williams2bebd122020-03-31 16:43:15 -050043 ${PYTHON_PN}-sdbus++-native \
Patrick Williamsa723ee32020-02-24 21:46:17 -060044 sdbusplus \
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050045"
Gunnar Mills35591d42017-01-27 13:13:24 -060046
Gunnar Mills30131f72017-05-15 15:40:58 -050047RDEPENDS_${PN}-updater += " \
Lei YUb2c944f2018-07-23 13:26:15 +080048 bash \
Patrick Williams2182d312017-08-09 17:36:04 -050049 virtual-obmc-image-manager \
Adriana Kobylak379f3272020-05-29 12:57:11 -050050 ${@bb.utils.contains('PACKAGECONFIG', 'verify_signature', 'phosphor-image-signing', '', d)} \
Lei YUad84f762018-05-11 17:26:35 +080051"
Patrick Williams2182d312017-08-09 17:36:04 -050052
53RPROVIDES_${PN}-version += " \
54 virtual-obmc-image-manager \
Gunnar Mills30131f72017-05-15 15:40:58 -050055"
Gunnar Mills35591d42017-01-27 13:13:24 -060056
Patrick Venture5c05f8a2019-03-30 08:03:17 -070057FILES_${PN}-version += "${bindir}/phosphor-version-software-manager ${exec_prefix}/lib/tmpfiles.d/software.conf"
58FILES_${PN}-download-mgr += "${bindir}/phosphor-download-manager"
Lei YUb2c944f2018-07-23 13:26:15 +080059FILES_${PN}-updater += " \
Patrick Venture5c05f8a2019-03-30 08:03:17 -070060 ${bindir}/phosphor-image-updater \
61 ${bindir}/obmc-flash-bmc \
Adriana Kobylak02b6df92019-10-25 13:02:36 -050062 /usr/local \
Lei YUb2c944f2018-07-23 13:26:15 +080063 "
Adriana Kobylaka420efc2018-05-22 12:33:45 -050064FILES_${PN}-sync += " \
Patrick Venture5c05f8a2019-03-30 08:03:17 -070065 ${bindir}/phosphor-sync-software-manager \
Adriana Kobylaka420efc2018-05-22 12:33:45 -050066 ${sysconfdir}/synclist \
67 "
Gunnar Mills4a993b52017-05-11 08:27:12 -050068DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service"
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050069DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service"
Gunnar Mills30131f72017-05-15 15:40:58 -050070DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service"
Adriana Kobylakaabb95d2018-04-20 14:52:40 -050071DBUS_SERVICE_${PN}-sync += "xyz.openbmc_project.Software.Sync.service"
Gunnar Mills35591d42017-01-27 13:13:24 -060072
Lei YUb2c944f2018-07-23 13:26:15 +080073SYSTEMD_SERVICE_${PN}-updater += " \
Andrew Geisslerb99a1ad2020-05-26 15:31:11 +000074 force-reboot.service \
Lei YUb2c944f2018-07-23 13:26:15 +080075 obmc-flash-bmc-setenv@.service \
Andrew Geisslerb99a1ad2020-05-26 15:31:11 +000076 reboot-guard-disable.service \
77 reboot-guard-enable.service \
Adriana Kobylak02b6df92019-10-25 13:02:36 -050078 usr-local.mount \
Lei YUb2c944f2018-07-23 13:26:15 +080079"
80
Vijay Khemka02e44292020-02-03 11:49:15 -080081SYSTEMD_SERVICE_${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'flash_bios', 'obmc-flash-host-bios@.service', '', d)}"
82
Gunnar Mills35591d42017-01-27 13:13:24 -060083S = "${WORKDIR}/git"
Adriana Kobylak02b6df92019-10-25 13:02:36 -050084
85do_install_append() {
86 install -d ${D}/usr/local
87}