diff options
author | Chau Ly <chaul@amperecomputing.com> | 2023-03-27 14:20:20 +0300 |
---|---|---|
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2023-06-09 12:30:06 +0300 |
commit | 563fe79d7dc570d37a4229fdbbcd04ed0f577956 (patch) | |
tree | 90bdadf0f37a015241a09f5727357e33097b24a3 /meta-ampere/meta-jade | |
parent | a423ad3f0000c733e61cfd4eced09272bd868a16 (diff) | |
download | openbmc-563fe79d7dc570d37a4229fdbbcd04ed0f577956.tar.xz |
meta-ampere: mtjade: fan: fix warning when BMC reboot
Below messages are displayed during BMC reboots:
mtjade (speed.sh)[710]: phosphor-fan-control@0.service: Failed to locate
executable /usr/bin/ampere_set_fan_max_speed.sh: No such file or directory.
mtjade (speed.sh)[710]: phosphor-fan-control@0.service: Failed at step EXEC
spawning /usr/bin/ampere_set_fan_max_speed.sh: No such file or directory
This commit fixes the issue by updating phosphor-fan configuration file
to properly install ampere_set_fan_max_speed to /usr/bin/.
Tested:
1. Reboot BMC
--> no above warning displayed
Signed-off-by: Chau Ly <chaul@amperecomputing.com>
Change-Id: I5e630e320cf7d05ed33ea54e28ef98495d88f9a1
Diffstat (limited to 'meta-ampere/meta-jade')
-rw-r--r-- | meta-ampere/meta-jade/recipes-phosphor/fans/phosphor-fan_%.bbappend | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-ampere/meta-jade/recipes-phosphor/fans/phosphor-fan_%.bbappend b/meta-ampere/meta-jade/recipes-phosphor/fans/phosphor-fan_%.bbappend index fbcb1be0ad..fcf7e00177 100644 --- a/meta-ampere/meta-jade/recipes-phosphor/fans/phosphor-fan_%.bbappend +++ b/meta-ampere/meta-jade/recipes-phosphor/fans/phosphor-fan_%.bbappend @@ -1,7 +1,7 @@ FILESEXTRAPATHS:append := "${THISDIR}/${PN}:" FILESEXTRAPATHS:append := "${THISDIR}/${PN}/${MACHINE}:" -RDEPENDS:${PN} += "bash" +RDEPENDS:${PN}-monitor += "bash" PACKAGECONFIG:append = " json" @@ -16,6 +16,10 @@ SRC_URI:append = " file://events.json \ file://ampere_set_fan_max_speed.sh \ " +FILES:${PN}-monitor += " \ + ${bindir}/ampere_set_fan_max_speed.sh \ + " + do_configure:prepend() { mkdir -p ${S}/control/config_files/${MACHINE} cp ${WORKDIR}/events.json ${S}/control/config_files/${MACHINE}/events.json |