Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 1 | # The below configs are expected to be overriden by machine layer |
| 2 | SUMMARY = "Phosphor PSU software manager" |
| 3 | DESCRIPTION = "Providing PSU firmware version and upgrade" |
Lei YU | 5422b0a | 2019-12-23 15:41:17 +0800 | [diff] [blame] | 4 | HOMEPAGE = "https://github.com/openbmc/phosphor-psu-code-mgmt" |
| 5 | LICENSE = "Apache-2.0" |
| 6 | LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" |
Lei YU | 5422b0a | 2019-12-23 15:41:17 +0800 | [diff] [blame] | 7 | DEPENDS = " \ |
| 8 | phosphor-logging \ |
| 9 | phosphor-dbus-interfaces \ |
| 10 | sdbusplus \ |
| 11 | openssl \ |
| 12 | " |
Andrew Geissler | ae08017 | 2023-11-30 07:10:32 -0600 | [diff] [blame] | 13 | SRCREV = "ce6c5c54d4456d7c5d0fd2fa294003127398b17f" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 14 | PV = "1.0+git${SRCPV}" |
| 15 | PR = "r1" |
Lei YU | 5422b0a | 2019-12-23 15:41:17 +0800 | [diff] [blame] | 16 | |
Patrick Williams | bccaff3 | 2023-04-14 11:24:47 -0500 | [diff] [blame] | 17 | SRC_URI = "git://github.com/openbmc/phosphor-psu-code-mgmt;branch=master;protocol=https" |
Lei YU | 5422b0a | 2019-12-23 15:41:17 +0800 | [diff] [blame] | 18 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 19 | S = "${WORKDIR}/git" |
| 20 | SYSTEMD_SERVICE:${PN} = "xyz.openbmc_project.Software.Psu.Updater.service" |
| 21 | SYSTEMD_SERVICE:${PN} += "psu-update@.service" |
Lei YU | 5422b0a | 2019-12-23 15:41:17 +0800 | [diff] [blame] | 22 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 23 | inherit meson |
| 24 | inherit pkgconfig |
| 25 | inherit obmc-phosphor-systemd |
Lei YU | 5422b0a | 2019-12-23 15:41:17 +0800 | [diff] [blame] | 26 | |
| 27 | EXTRA_OEMESON = " \ |
| 28 | -Dtests=disabled \ |
| 29 | ${PSU_VERSION_UTIL} \ |
| 30 | ${PSU_VERSION_COMPARE_UTIL} \ |
| 31 | ${PSU_UPDATE_SERVICE} \ |
| 32 | " |
| 33 | |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 34 | # The default config of this repo depends on utils from phosphor-power. |
| 35 | # If your system does not depend on phosphor-power, please use |
| 36 | # RDEPENDS:${PN}:remove to remove the dependency. |
| 37 | RDEPENDS:${PN} += "phosphor-power" |
| 38 | |
| 39 | ## The psutils here comes from phosphor-power repo where |
| 40 | ## * PSU_VERSION_UTIL accepts a PSU inventory path and returns the PSU |
| 41 | ## firmware version string |
| 42 | ## * PSU_VERSION_COMPARE_UTIL accepts several PSU inventory paths and return |
| 43 | ## the newest version string |
| 44 | PSU_VERSION_UTIL ?= "-DPSU_VERSION_UTIL='/usr/bin/psutils --raw --get-version'" |
| 45 | PSU_VERSION_COMPARE_UTIL ?= "-DPSU_VERSION_COMPARE_UTIL='/usr/bin/psutils --raw --compare'" |
| 46 | ## The psu-update@.service from repo is an example service that only prints a log and fails |
| 47 | ## Override it in a machine layer to invoke the psu update util |
| 48 | PSU_UPDATE_SERVICE ?= "-DPSU_UPDATE_SERVICE=psu-update@.service" |