diff options
author | George Liu <liuxiwei@inspur.com> | 2019-08-05 13:30:53 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-08-12 14:43:36 +0300 |
commit | 4c36238257a58827053382a1b04597f068ede36b (patch) | |
tree | d63a32fb761e6c8895f8a26db430f88601deed1a /meta-inspur/meta-fp5280g2/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend | |
parent | f1a7c1c8067eb4621b99532caecf46275ceb4431 (diff) | |
download | openbmc-4c36238257a58827053382a1b04597f068ede36b.tar.xz |
fp5280g2: Add recipe file for phosphor-gpio-monitor
Add the power supply monitor application and configuration files
Tested: Built phosphor-gpio-monitor and ran successfully on the fp5280g2
via dbus interfaces.
(From meta-inspur rev: ea9932d3b56af3ff9a12689731bd8081b66af856)
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I5e365d7a979834f093b2a1b978ce22624be5bd8a
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend')
-rw-r--r-- | meta-inspur/meta-fp5280g2/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend b/meta-inspur/meta-fp5280g2/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend new file mode 100644 index 000000000..04d1c07cb --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend @@ -0,0 +1,12 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +TMPL_POWERSUPPLY = "phosphor-gpio-presence@.service" +INSTFMT_POWERSUPPLY = "phosphor-gpio-presence@{0}.service" +POWERSUPPLY_TGT = "multi-user.target" +FMT_POWERSUPPLY = "../${TMPL_POWERSUPPLY}:${POWERSUPPLY_TGT}.requires/${INSTFMT_POWERSUPPLY}" + +SYSTEMD_LINK_${PN}-presence_append_fp5280g2 = " ${@compose_list(d, 'FMT_POWERSUPPLY', 'OBMC_POWER_SUPPLY_INSTANCES')}" + +POWERSUPPLY_ENV_FMT = "obmc/gpio/phosphor-power-supply-{0}.conf" + +SYSTEMD_ENVIRONMENT_FILE_${PN}-presence_append_fp5280g2 = " ${@compose_list(d, 'POWERSUPPLY_ENV_FMT', 'OBMC_POWER_SUPPLY_INSTANCES')}" |