blob: 301e4e788c0b9b4409f01dadc9b506658ec5f7cf [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 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"
Vijay Khemka02e44292020-02-03 11:49:15 -080029PACKAGECONFIG[flash_bios] = "--enable-host_bios_upgrade"
Adriana Kobylaka3641d72018-03-29 15:16:09 -050030
Gunnar Mills35591d42017-01-27 13:13:24 -060031inherit autotools pkgconfig
32inherit obmc-phosphor-dbus-service
Adriana Kobylaka3ebfea2020-03-30 15:59:31 -050033inherit python3native
Adriana Kobylak3aeee112018-06-04 13:06:52 -050034inherit ${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', 'phosphor-software-manager-ubi-fs', '', d)}
Gunnar Mills35591d42017-01-27 13:13:24 -060035
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050036DEPENDS += " \
37 autoconf-archive-native \
Patrick Williamsa723ee32020-02-24 21:46:17 -060038 openssl \
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050039 phosphor-dbus-interfaces \
40 phosphor-logging \
Patrick Williams2bebd122020-03-31 16:43:15 -050041 ${PYTHON_PN}-sdbus++-native \
Patrick Williamsa723ee32020-02-24 21:46:17 -060042 sdbusplus \
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050043"
Gunnar Mills35591d42017-01-27 13:13:24 -060044
Gunnar Mills30131f72017-05-15 15:40:58 -050045RDEPENDS_${PN}-updater += " \
Lei YUb2c944f2018-07-23 13:26:15 +080046 bash \
Patrick Williams2182d312017-08-09 17:36:04 -050047 virtual-obmc-image-manager \
Lei YUad84f762018-05-11 17:26:35 +080048"
Lei YUf43eb6e2018-08-21 16:18:28 +080049EXTRA_OECONF += " \
Lei YUbf3edf12018-08-21 16:22:20 +080050 ACTIVE_BMC_MAX_ALLOWED=1 \
Lei YUf43eb6e2018-08-21 16:18:28 +080051 MEDIA_DIR=/run/media \
52"
Patrick Williams2182d312017-08-09 17:36:04 -050053
54RPROVIDES_${PN}-version += " \
55 virtual-obmc-image-manager \
Gunnar Mills30131f72017-05-15 15:40:58 -050056"
Gunnar Mills35591d42017-01-27 13:13:24 -060057
Patrick Venture5c05f8a2019-03-30 08:03:17 -070058FILES_${PN}-version += "${bindir}/phosphor-version-software-manager ${exec_prefix}/lib/tmpfiles.d/software.conf"
59FILES_${PN}-download-mgr += "${bindir}/phosphor-download-manager"
Lei YUb2c944f2018-07-23 13:26:15 +080060FILES_${PN}-updater += " \
Patrick Venture5c05f8a2019-03-30 08:03:17 -070061 ${bindir}/phosphor-image-updater \
62 ${bindir}/obmc-flash-bmc \
Adriana Kobylak02b6df92019-10-25 13:02:36 -050063 /usr/local \
Lei YUb2c944f2018-07-23 13:26:15 +080064 "
Adriana Kobylaka420efc2018-05-22 12:33:45 -050065FILES_${PN}-sync += " \
Patrick Venture5c05f8a2019-03-30 08:03:17 -070066 ${bindir}/phosphor-sync-software-manager \
Adriana Kobylaka420efc2018-05-22 12:33:45 -050067 ${sysconfdir}/synclist \
68 "
Gunnar Mills4a993b52017-05-11 08:27:12 -050069DBUS_SERVICE_${PN}-version += "xyz.openbmc_project.Software.Version.service"
Deepak Kodihalli60d1de52017-04-13 23:23:42 -050070DBUS_SERVICE_${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service"
Gunnar Mills30131f72017-05-15 15:40:58 -050071DBUS_SERVICE_${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service"
Adriana Kobylakaabb95d2018-04-20 14:52:40 -050072DBUS_SERVICE_${PN}-sync += "xyz.openbmc_project.Software.Sync.service"
Gunnar Mills35591d42017-01-27 13:13:24 -060073
Lei YUb2c944f2018-07-23 13:26:15 +080074SYSTEMD_SERVICE_${PN}-updater += " \
75 obmc-flash-bmc-setenv@.service \
Adriana Kobylak02b6df92019-10-25 13:02:36 -050076 usr-local.mount \
Lei YUb2c944f2018-07-23 13:26:15 +080077"
78
Vijay Khemka02e44292020-02-03 11:49:15 -080079SYSTEMD_SERVICE_${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'flash_bios', 'obmc-flash-host-bios@.service', '', d)}"
80
Gunnar Mills35591d42017-01-27 13:13:24 -060081S = "${WORKDIR}/git"
Adriana Kobylak02b6df92019-10-25 13:02:36 -050082
83do_install_append() {
84 install -d ${D}/usr/local
85}