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