Gunnar Mills | 02ac806 | 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." |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 5 | DEPENDS += " \ |
| 6 | openssl \ |
| 7 | phosphor-dbus-interfaces \ |
| 8 | phosphor-logging \ |
| 9 | ${PYTHON_PN}-sdbus++-native \ |
| 10 | sdbusplus \ |
| 11 | " |
| 12 | PACKAGECONFIG[verify_signature] = " \ |
| 13 | -Dverify-full-signature=enabled, \ |
| 14 | -Dverify-full-signature=disabled" |
| 15 | PACKAGECONFIG[sync_bmc_files] = "-Dsync-bmc-files=enabled, -Dsync-bmc-files=disabled" |
| 16 | PACKAGECONFIG[usb_code_update] = "-Dusb-code-update=enabled, -Dusb-code-update=disabled, cli11" |
| 17 | PACKAGECONFIG[side_switch_on_boot] = "-Dside-switch-on-boot=enabled, -Dside-switch-on-boot=disabled, cli11" |
| 18 | PACKAGECONFIG[ubifs_layout] = "-Dbmc-layout=ubi" |
| 19 | PACKAGECONFIG[mmc_layout] = "-Dbmc-layout=mmc" |
| 20 | PACKAGECONFIG[flash_bios] = "-Dhost-bios-upgrade=enabled, -Dhost-bios-upgrade=disabled" |
| 21 | PACKAGECONFIG[static-dual-image] = "-Dbmc-static-dual-image=enabled, -Dbmc-static-dual-image=disabled" |
Patrick Venture | 1bf12f5 | 2018-10-27 08:40:53 -0700 | [diff] [blame] | 22 | PV = "1.0+git${SRCPV}" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 23 | PR = "r1" |
Gunnar Mills | 02ac806 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 24 | |
| 25 | SOFTWARE_MGR_PACKAGES = " \ |
| 26 | ${PN}-version \ |
Deepak Kodihalli | b74ceea | 2017-04-13 23:23:42 -0500 | [diff] [blame] | 27 | ${PN}-download-mgr \ |
Gunnar Mills | cfe0084 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 28 | ${PN}-updater \ |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 29 | ${PN}-updater-ubi \ |
Adriana Kobylak | 88ec2af | 2020-06-04 14:03:03 -0500 | [diff] [blame] | 30 | ${PN}-updater-mmc \ |
Adriana Kobylak | 7d2e8ef | 2018-04-20 14:52:40 -0500 | [diff] [blame] | 31 | ${PN}-sync \ |
Andrew Geissler | 503e474 | 2021-12-14 19:50:46 +0000 | [diff] [blame] | 32 | ${PN}-usb \ |
Andrew Geissler | 6ab2338 | 2022-04-11 15:41:37 -0500 | [diff] [blame] | 33 | ${PN}-side-switch \ |
Gunnar Mills | 02ac806 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 34 | " |
Gunnar Mills | 02ac806 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 35 | # Set SYSTEMD_PACKAGES to empty because we do not want ${PN} and DBUS_PACKAGES |
| 36 | # handles the rest. |
| 37 | SYSTEMD_PACKAGES = "" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 38 | SYSTEMD_SERVICE:${PN}-updater += " \ |
| 39 | force-reboot.service \ |
| 40 | obmc-flash-bmc-setenv@.service \ |
| 41 | reboot-guard-disable.service \ |
| 42 | reboot-guard-enable.service \ |
| 43 | usr-local.mount \ |
| 44 | " |
| 45 | SYSTEMD_SERVICE:${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'flash_bios', 'obmc-flash-host-bios@.service', '', d)}" |
| 46 | SYSTEMD_SERVICE:${PN}-usb += "${@bb.utils.contains('PACKAGECONFIG', 'usb_code_update', 'usb-code-update@.service', '', d)}" |
| 47 | SYSTEMD_SERVICE:${PN}-side-switch += "${@bb.utils.contains('PACKAGECONFIG', 'side_switch_on_boot', 'phosphor-bmc-side-switch.service', '', d)}" |
| 48 | SYSTEMD_SERVICE:${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'static-dual-image', 'obmc-flash-bmc-alt@.service', '', d)}" |
| 49 | SYSTEMD_SERVICE:${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'static-dual-image', 'obmc-flash-bmc-static-mount-alt.service', '', d)}" |
| 50 | SYSTEMD_SERVICE:${PN}-updater += "${@bb.utils.contains('PACKAGECONFIG', 'static-dual-image', 'obmc-flash-bmc-prepare-for-sync.service', '', d)}" |
| 51 | S = "${WORKDIR}/git" |
Adriana Kobylak | acff95b | 2018-03-29 15:16:09 -0500 | [diff] [blame] | 52 | |
Adriana Kobylak | b3f2bb8 | 2020-05-06 13:14:28 -0500 | [diff] [blame] | 53 | inherit meson pkgconfig |
Gunnar Mills | 02ac806 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 54 | inherit obmc-phosphor-dbus-service |
Adriana Kobylak | cb8ef5c | 2020-03-30 15:59:31 -0500 | [diff] [blame] | 55 | inherit python3native |
Adriana Kobylak | c763ceb | 2018-06-04 13:06:52 -0500 | [diff] [blame] | 56 | inherit ${@bb.utils.contains('DISTRO_FEATURES', 'obmc-ubi-fs', 'phosphor-software-manager-ubi-fs', '', d)} |
Adriana Kobylak | 88ec2af | 2020-06-04 14:03:03 -0500 | [diff] [blame] | 57 | inherit ${@bb.utils.contains('DISTRO_FEATURES', 'phosphor-mmc', 'phosphor-software-manager-mmc', '', d)} |
Gunnar Mills | 02ac806 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 58 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 59 | EXTRA_OEMESON:append = " -Dtests=disabled" |
| 60 | |
| 61 | do_install:append() { |
| 62 | install -d ${D}/usr/local |
| 63 | } |
Gunnar Mills | 02ac806 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 64 | |
Andrew Geissler | d0da820 | 2022-03-18 06:30:15 +0000 | [diff] [blame] | 65 | # The repo installs several scripts that depends on bash |
| 66 | RDEPENDS:${PN} += " bash" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 67 | RDEPENDS:${PN}-updater += " \ |
Lei YU | bc3a230 | 2018-07-23 13:26:15 +0800 | [diff] [blame] | 68 | bash \ |
Patrick Williams | 21d6569 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 69 | virtual-obmc-image-manager \ |
Adriana Kobylak | 27583a2 | 2020-05-29 12:57:11 -0500 | [diff] [blame] | 70 | ${@bb.utils.contains('PACKAGECONFIG', 'verify_signature', 'phosphor-image-signing', '', d)} \ |
Lei YU | 15ef0be | 2018-05-11 17:26:35 +0800 | [diff] [blame] | 71 | " |
Patrick Williams | 21d6569 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 72 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 73 | RPROVIDES:${PN}-version += " \ |
Patrick Williams | 21d6569 | 2017-08-09 17:36:04 -0500 | [diff] [blame] | 74 | virtual-obmc-image-manager \ |
Gunnar Mills | cfe0084 | 2017-05-15 15:40:58 -0500 | [diff] [blame] | 75 | " |
Gunnar Mills | 02ac806 | 2017-01-27 13:13:24 -0600 | [diff] [blame] | 76 | |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 77 | FILES:${PN}-version += "${bindir}/phosphor-version-software-manager ${exec_prefix}/lib/tmpfiles.d/software.conf" |
| 78 | FILES:${PN}-download-mgr += "${bindir}/phosphor-download-manager" |
| 79 | FILES:${PN}-updater += " \ |
Patrick Venture | 47ba9da0 | 2019-03-30 08:03:17 -0700 | [diff] [blame] | 80 | ${bindir}/phosphor-image-updater \ |
| 81 | ${bindir}/obmc-flash-bmc \ |
Adriana Kobylak | d284df9 | 2019-10-25 13:02:36 -0500 | [diff] [blame] | 82 | /usr/local \ |
Lei YU | bc3a230 | 2018-07-23 13:26:15 +0800 | [diff] [blame] | 83 | " |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 84 | FILES:${PN}-sync += " \ |
Patrick Venture | 47ba9da0 | 2019-03-30 08:03:17 -0700 | [diff] [blame] | 85 | ${bindir}/phosphor-sync-software-manager \ |
Adriana Kobylak | e18f116 | 2018-05-22 12:33:45 -0500 | [diff] [blame] | 86 | ${sysconfdir}/synclist \ |
| 87 | " |
Andrew Geissler | 503e474 | 2021-12-14 19:50:46 +0000 | [diff] [blame] | 88 | FILES:${PN}-usb += "\ |
| 89 | ${base_libdir}/udev/rules.d/70-bmc-usb.rules \ |
| 90 | ${bindir}/phosphor-usb-code-update \ |
| 91 | " |
Andrew Geissler | 6ab2338 | 2022-04-11 15:41:37 -0500 | [diff] [blame] | 92 | FILES:${PN}-side-switch += "\ |
| 93 | ${bindir}/phosphor-bmc-side-switch \ |
| 94 | " |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 95 | |
| 96 | require ${BPN}.inc |
| 97 | |
| 98 | ALLOW_EMPTY:${PN} = "1" |
| 99 | |
| 100 | PACKAGE_BEFORE_PN += "${SOFTWARE_MGR_PACKAGES}" |
| 101 | DBUS_PACKAGES = "${SOFTWARE_MGR_PACKAGES}" |
Patrick Williams | 12fc939 | 2021-08-06 09:16:53 -0500 | [diff] [blame] | 102 | DBUS_SERVICE:${PN}-version += "xyz.openbmc_project.Software.Version.service" |
| 103 | DBUS_SERVICE:${PN}-download-mgr += "xyz.openbmc_project.Software.Download.service" |
| 104 | DBUS_SERVICE:${PN}-updater += "xyz.openbmc_project.Software.BMC.Updater.service" |
| 105 | DBUS_SERVICE:${PN}-sync += "xyz.openbmc_project.Software.Sync.service" |