| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Installs into bin instead of sbin per guidelines.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Idf05538aa3eea56620afb313759bf48294e315eb
|
|
|
|
|
|
|
|
| |
Use the defaults in the pkg check where the default error message is
sufficient to identify which package is missing.
Change-Id: Id77ae17d8977c5aaa01b33325c57a73391f980c2
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
|
| |
Add .clang-format to repo for automated style. A consistent style
across Openbmc makes the code easier to read and edit.
Change-Id: I7c09792d2482f0be3e01776804347700f3e3e651
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Set the language in the build to C++.
Change-Id: Id95ca63533ea6536f4dfd5b5b2f0be7634482948
Signed-off-by: Patrick Venture <venture@google.com>
|
|
|
|
|
|
|
| |
Update configure.ac to choose the c++17 standard
Change-Id: If74a51c9576f3acdee6d5402069303d463b0d115
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
|
|
|
|
|
| |
Change-Id: I624e161e14b1ae494686b6fe1c3e2cb0f82a9148
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
|
|
|
|
|
|
|
|
| |
Add support for the VS and VP keywords. These
are the serial number and part number keywords for
OpenPower systems.
Change-Id: If22c99b3e6c36649e6a2d4afffe8318cf8fc493c
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
|
|
|
|
|
|
|
|
| |
Spelling errors found using github.com/lucasdemarchi/codespell
A tool to fix common misspellings.
This tool is licensed under GNU General Public License, version 2.
Change-Id: I5aa84be939c2c3335d326b02481c23652fee137b
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
|
|
|
|
| |
Spelling errors found using github.com/lucasdemarchi/codespell
A tool to fix common misspellings.
This tool is licensed under GNU General Public License, version 2.
Change-Id: Ifc618929a9f79ba2cfc7241a89daabe0ad296650
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
|
|
|
|
|
|
|
| |
Empty interfaces are added for inventory objects to determine
the type of the object
Change-Id: I4b08e50a2ee45a3156012c0ef6b3ff53bd06c644
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Invert the property,keyword map. For example, change MACAddress: VINI,B1
to VINI,B1: MACAddress. Change the mako template to handle this.
This will allow us to pick VPD information from one of many
record/keyword combinations that can source an individual property.
Change-Id: I9785652addb88388751fd9f031f8e96e6d7d9df1
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: Ife91241448b64b077a7187d5839953ab0eb990e7
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
| |
Changed UUID record type from OSYS to OPFR.
Change-Id: I075760b3ed77ea8537c83bb215d507849b424b1e
Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
|
|
|
|
|
| |
Change-Id: I62a7284e58f8688b1560663aab52cc5746a77dda
Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Now that openbmc/openbmc#1025 is fixed, mapper's GetObject method can be
provided char* type arguments. Previously they had to be converted to
std::string to work around bug 1025.
Resolves openbmc/openbmc#1131.
Change-Id: I3f8a8809a17e866044959989d49ca32e16a8021c
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
| |
Partial fix for openbmc/openbmc#1112.
Change-Id: If5160f0f7d3070afa94121b40820b88e419b15b7
|
|
|
|
|
|
|
| |
Partial fix for openbmc/openbmc#1112.
Change-Id: I6cfa53d4cb6c24d29d60a83362e0da4ce501197e
Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
|
|
|
|
|
|
|
|
|
| |
A FRU may have to implement an interface, whose properties may be
provided by vpd alone, MRW alone, or a combination of both. Handle the
latter case.
Change-Id: Ie8aec0069548f52bb576b358bce022e681fa951f
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
/xyz/openbmc_project/Inventory becomes
/xyz/openbmc_project/inventory.
Change-Id: Ieaa1da7c4ac4f801d4bfa4d3e73a63e9981c17b3
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
|
|
|
|
|
|
|
|
|
| |
Phase2: Changing the phosphor-logging header files import from
base dir to files under phosphor-logging folder. Once all projects
import from the new dir, the files in the base dir will be deleted.
Change-Id: I54c8ac8d580883155499f3113d0e827643d98998
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
|
|
|
|
|
| |
Change-Id: If87a2582bab1bff7c8b7704b401a3e435772756b
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I7922aba87cbf4f742c13b3940cd810d46b12913c
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Fix location of test vpd file.
Disable the test program 'parser_test' from running via 'make check'.
This is more of a tool rather than a unit-test, and needs to be
converted to unit-tests by making it work with encoded vpd buffers.
Change-Id: Ib67112e4005dab62976458ec7b587bc302044170
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I23abf88d877ef1bceb312121fb5e1e5d91a068ad
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
Make it possible for the openpower-vpd-parser recipe to be able to
supply the extra properties YAML as configurable input.
Use extra-properties-example.yaml as input.
Change-Id: I0f975fb9d5da2368a915ba969ebffe96010d4fe8
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While the openpower vpd parser, in order to update inventory, retrieves
most properties from the vpd itself, there could be some properties
whose values could be provided by other sources, such as the Machine
Readable Workbook.
Provide a mechanism to enable the above by having the extra property
information and values supplied via a YAML file, via which code is
generated, which in turn can be used by the parser to update inventory.
Change-Id: I4005c8a8d429085cc9ad279cb28e216c50b63c5d
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I477dd69f0c6c648b63171dc2db264d3e70dafaf4
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I962f1f67c138140ef39461e2835d566953789467
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
In preparation for the openpower-vpd-parser recipe, make it possible to
provide the FRU data YAML file as a build-configurable input.
Use writefru.yaml as default.
Change-Id: I32dba99bcb6c8dd4da259f907b0499b3192cc412
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
Make a call to the inventory manager to construct inventory objects for
OpenPOWER FRUs.
Change-Id: I41988a9299a0509d3120bee1b79fd3aa8176a76c
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: Iebb46bb0d763cdd4b11ed37f3358e4bd73f0c242
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: I9912102d442f2c00ce70514a4a65f25e1552fc19
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
| |
Change-Id: Ie67427f9496bb8f9712ef80e987c39903a66cd17
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Add files needed by Automake.
An application called openpower-read-vpd is built - this can read vpd
off of an eeprom file, for example, and can parse that VPD and write
the parsed information to the inventory.
Change-Id: Ic6909dbbbf919f3ccec25fa7b8a680b822553cbb
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
This is to avoid built objects from showing up, during the
development stage, in the 'git status' output.
Change-Id: I9824d5c3a88d1fb57f043d61762c05f9e5213902
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
Add main program to read OpenPOWER VPD, parse it and then to write it to
the inventory. The program needs as input - VPD file, FRU type and FRU
object path.
Change-Id: Iaebc0d5a99f5c12e408de893bd1f310145b4b360
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
Add command-line argument parser for the main application. This is built
over the GNU getopt.
Change-Id: Ida6ea6894d4832fd631d8bd1e2b6f4a3fb496023
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Define and implement API to write parsed OpenPOWER VPD for a FRU to the
inventory.
The API needs as input the FRU type, FRU object path and
parsed VPD. It makes use of the inventory manager to then create the
desired FRU object, populated with the VPD.
Change-Id: I97ec7e1f0cd7b28b5ccb5d8e7dbeb2cad2a7093e
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
Write python-based parser for writefru.yaml. The parser generates
writefru.hpp, which would have code to write to the inventory-manager
the FRU VPD information, as described in writefru.yaml.
Change-Id: I91776f808ef720e96c1b6fbd17e5f1edb93ea8f8
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Write a YAML file, which for a given FRU type, tells which d-bus
interfaces need to be implemented. For the said interfaces, the YAML
file also tells which VPD properties need to be supported, and which
OpenPOWER VPD record:keyword combination maps to said property.
Code can be generated out of this YAML file to provide the
inventory-manager information needed to construct FRU d-bus objects.
Change-Id: Ie96134ac220142fff2ada0d924ba1eb4575bb3c2
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
Implement the run() method, which serves as the entry point to parse out
OpenPOWER VPD.
Change-Id: I966c38c6257f1a69b814518932c0c5c0a8386a08
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
For a given OpenPOWER VPD record, get to it's keyword section and find
all contained keywords, and read the data for each of those.
Change-Id: I87001b3bc0a7b842543aa387e319b98aac8ca3ff
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
|
| |
For keywords contained in an OpenPOWER VPD record, read the keyword
data. The data may be raw or encoded in ascii. Return the
resultant data as a string.
Some keywords, such as B1 (MAC address) need to be decoded specially.
Change-Id: I64c16c60dc94e173586b20fb6a92809fbb0ac89e
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
This change adds implementation to look at record information within
OpenPOWER VPD, check if the record is of interest to us, and if yes -
proceed to read record information, for further parsing and storage.
Change-Id: Ic6df6c88c104fc588d645e626391561a754e741e
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
This change implements logic to read the OpenPOWER VPD VTOC record,
which contains information about offsets to other records in the VPD.
Change-Id: Id40dee0f940815766bf2e956c6ab08c875e6f79b
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
| |
This change implements a parser method to check if the OpenPOWER VPD has
the mandatory header record, VHDR.
Change-Id: I9e4cebd8f69e47e1ab0f1b569fe4af2c82a5a137
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
| |
This change implements the parse API, which parses input OpenPOWER VPD.
Change-Id: I646e75c642cf5872252633fef03a864e287f696b
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
This change introduces a class that serves as the OpenPOWER VPD parser.
The class provides an API to construct itself with binary OpenPOWER VPD,
and an API to run the parser.
Change-Id: Ifcb360a8b67ac4d2a5116e2515cf689c552819b4
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
| |
This change implements the access API to retrieve parsed OpenPOWER VPD.
Access is provided only to supported and valid VPD. This is achieved by
having template specializations for a valid record:keyword combination.
Change-Id: I1ec39a94bf947bebade861fd7d9c74ccaa4ac96d
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|
|
|
|
|
|
|
|
|
|
| |
This change defines an API to parse OpenPOWER format VPD. The
API expects OpenPOWER binary VPD as input, parses the same and returns a
Store object. The Store object stores parsed VPD, and makes it easy to
access the same.
Change-Id: Icfb62d848dd92205ab3ab49f05c6521297434c72
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
|