#
c0b9e9e4 |
| 17-Jul-2023 |
Matt Spinler <spinler@us.ibm.com> |
Fix standalone build fail in utils/version.cpp
Either the new compiler, C++ version, or nlohmann version starting giving an error when building with subprojects:
``` ../tools/power-utils/version.cp
Fix standalone build fail in utils/version.cpp
Either the new compiler, C++ version, or nlohmann version starting giving an error when building with subprojects:
``` ../tools/power-utils/version.cpp: In function ‘PsuVersionInfo utils::getVersionInfo(const std::string&)’: ../tools/power-utils/version.cpp:67:40: error: ambiguous overload for ‘operator=’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘const nlohmann::basic_json<>::value_type’ {aka ‘const nlohmann::basic_json<>’}) 67 | versionStr = fru["fileName"]; ```
Change-Id: Ic0de80331a04110a279702b30bd7cf55ec8c083c Signed-off-by: Matt Spinler <spinler@us.ibm.com>
show more ...
|
#
48781aef |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: If66f68c96df4baf8dc07abf8729a3cb7657e932d Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
d1bc4cec |
| 13-Dec-2019 |
Brandon Wyman <bjwyman@gmail.com> |
Update .clang-format to latest version from docs Signed-off-by: Brandon Wyman <bjwyman@gmail.com> Change-Id: Ie6e7f43e7554429704dca86b21320c90aed18791
|
#
093b5917 |
| 22-Oct-2019 |
Lei YU <mine260309@gmail.com> |
power-utils: Add --compare option This option is to get a latest version from a list of PSU versions. Due to the --compare option requires a list of strings and only one option
power-utils: Add --compare option This option is to get a latest version from a list of PSU versions. Due to the --compare option requires a list of strings and only one option is supported at the same time, it's easier to switch to CLI11 to parse the arguments. Also add --raw option that outputs the text without linefeed. Tested: Verify both --get-version and --compare works on Witherspoon. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: Idec75e3a5699eba8ba587e74824431993fe10c4c
show more ...
|
#
0bf1b782 |
| 29-Aug-2019 |
Lei YU <mine260309@gmail.com> |
Add power-utils The power-utils is added to support psu code manager as vendor-specifc tool. In this commit, the util returns the PSU version based on the PSU inventory path, whe
Add power-utils The power-utils is added to support psu code manager as vendor-specifc tool. In this commit, the util returns the PSU version based on the PSU inventory path, where the inventory path are mapped to the PSU sysfs device directory based on a json config. Tested: Verify the version is returned correctly on Witherspoon: $ ./psutils --getversion \ /xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0 01100110 And it returns non-zero when it fails to get the version without throwing exception. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: Ib60f3aa50ce581d55fe4cd62642f30398e25be83
show more ...
|