summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-virtual-sensor_%.bbappend
AgeCommit message (Collapse)AuthorFilesLines
2022-02-18treewide: fix append/remove directivesPatrick Williams1-1/+1
As mentioned by I970e06ca6f9d0a9792af122eb25da1bb9a06f058, append and remove directives with '+=' are no longer valid Yocto syntax and raise a warning. See https://git.yoctoproject.org/poky/tree/documentation/migration-guides/migration-3.5.rst#n40 One interesting caveat has to do with the difference between "append" and "+=". foo:append = "a" foo:append = "b" Results in `foo = "ab"`, but foo += "a" foo += "b" Results in `foo = "a b"`. When `:append +=` is used it has behavior like the `+=` operator. Therefore, in some cases we need to insert additional whitespace after the `:append = "` to ensure concatenation behaves as expected. I've manually reviewed the results to ensure there is no ill side-effects from an additional space potentially being added. Fix up the entire tree with the following one-liner (and similar for `remove`): git ls-files -- ':!:poky/**' ':!:meta-security/**' \ ':!:meta-raspberrypi/**' ':!:meta-openembedded/**' \ | grep "\.bb" | xargs grep -l ":append.*+=" \ | xargs sed -i 's/:append\(.*\)+=\([^"]*\)" */:append\1=\2" /' or ... | xargs grep -l ":remove.*+=" \ | xargs sed -i "s/:remove\(.*\)+=/:remove\1=/" Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iea6235e7c76e252f4d473652957c2925f6b8845a
2021-12-22meta-ampere: mtjade: support NVME TemperatureThang Q. Nguyen1-4/+4
Enable phosphor-nvme with configuration for nvme_max sensor for FAN control support later. Tested: 1. Check NVME Temp: $ busctl get-property xyz.openbmc_project.nvme.manager \ /xyz/openbmc_project/sensors/temperature/nvme20 \ xyz.openbmc_project.Sensor.Value Value d 22 2. Check nvme_max has valid value $ busctl introspect xyz.openbmc_project.VirtualSensor \ /xyz/openbmc_project/sensors/temperature/nvme_max Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ied609ba5b5d39877c09ed04faff5063c7882a689
2021-08-07meta-ampere: Cleanup for Yocto override syntax changeThang Q. Nguyen1-3/+3
Run convert-overrides.py meta-ampere and update missing changes as below: - Change all _mtjade to :mtjade - Change all _${PN} to :${PN} Tested: 1. Check compilation without problem. 2. Check basic functions like switch UART mux, power control. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I42038b2a98ed1951d6c770bdf49f5fc440f8163e
2021-07-06meta-ampere: mtjade: add total_power sensorThang Q. Nguyen1-0/+10
Add total_power sensor calculated by sum of PSU0_POUTPUT and PSU1_POUTPUT. Tested: 1. Check if total_power is present in WebUI and Redfish and its value is sum of PSU0_POUTPUT and PSU1_POUTPUT. 2. Check total_power from IPMI root@mtjade:~# ipmitool sdr list | grep total_power total_power | 648 Watts | ok Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I304e7c9328f1f91f6f358f0e8472a107bf5479a0