commit | 42ca494b7cb724aba0d88d04c382b8f6744621ae | [log] [tgz] |
---|---|---|
author | Anupama B R <anupama.b.r1@ibm.com> | Wed Feb 12 00:13:33 2025 -0600 |
committer | SunnySrivastava <sunnsr25@in.ibm.com> | Mon Feb 17 14:26:27 2025 +0000 |
tree | 5d55bd60bbd16b3eecf19fae45d45b4047a4cf08 | |
parent | df9e554f24b31d5f9048ba8c1610c3cdb36cdac6 [diff] |
vpd-tool: handle error code This commit handles error code for write keyword command, as the std::error_code should be checked only when filesystem::exists call returns with false. Change-Id: If90170f32a8e8798ba88b932da479dc3609afd22 Signed-off-by: Anupama B R <anupama.b.r1@ibm.com>
This repository hosts code for OpenPower and IBM IPZ format VPD parsers. Both OpenPower VPD and IPZ VPD formats are structured binaries that consist of records and keywords. A record is a collection of multiple keywords. More information about the format can be found here.
The repository consists of two distinct applications, which are:
This is a build-time YAML driven application that parses the OpenPower VPD format and uses the YAML configuration (see extra-properties-example.yaml and writefru.yaml) to determine:
The application instance must be passed in the file path to the VPD (this can, for example, be a sysfs path exposed by the EEPROM device driver) and also the D-Bus object path(s) that EEPROM data needs to be published under.
This parser is can be built by passing in the --enable-ibm-parser
configure option. This parser differs from the OpenPower VPD parser in the following ways:
#
and are > 255 bytes in length).Making the application runtime JSON driven allows us to support multiple systems (with different FRU configurations) to be supported in a single code image as well as making the application more flexible for future improvements.