summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* build: install into bin instead of sbinHEADmasterPatrick Venture2019-03-281-1/+1
| | | | | | | Installs into bin instead of sbin per guidelines. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Idf05538aa3eea56620afb313759bf48294e315eb
* build: pkg anti-pattern: use defaultsPatrick Venture2019-02-131-4/+2
| | | | | | | | 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 stylePatrick Venture2018-11-0817-306/+382
| | | | | | | | 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>
* build: set language to C++Patrick Venture2018-10-291-0/+1
| | | | | | | Set the language in the build to C++. Change-Id: Id95ca63533ea6536f4dfd5b5b2f0be7634482948 Signed-off-by: Patrick Venture <venture@google.com>
* openpower-vpd-parser: use c++17Vernon Mauery2018-10-051-1/+1
| | | | | | | Update configure.ac to choose the c++17 standard Change-Id: If74a51c9576f3acdee6d5402069303d463b0d115 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Add MAINTAINERS fileAndrew Jeffery2018-05-191-0/+45
| | | | | Change-Id: I624e161e14b1ae494686b6fe1c3e2cb0f82a9148 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
* Add support for new keywordsMatt Spinler2018-05-102-2/+18
| | | | | | | | | 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 fixesGunnar Mills2018-04-081-1/+1
| | | | | | | | | 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 fixesGunnar Mills2017-10-252-2/+2
| | | | | | | | | 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>
* Modify mako script to generate code for empty interfacesMarri Devender Rao2017-09-132-5/+8
| | | | | | | | 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>
* vpd source: enable choosing one of many keywordsDeepak Kodihalli2017-09-112-13/+14
| | | | | | | | | | | 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>
* store: add API to check if VPD existsDeepak Kodihalli2017-09-111-0/+14
| | | | | Change-Id: Ife91241448b64b077a7187d5839953ab0eb990e7 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Update UUID record type to OPFR.Dinesh Chinari2017-09-061-1/+1
| | | | | | | Changed UUID record type from OSYS to OPFR. Change-Id: I075760b3ed77ea8537c83bb215d507849b424b1e Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
* Added BMC, UUID interface map.Dinesh Chinari2017-08-224-3/+41
| | | | | Change-Id: I62a7284e58f8688b1560663aab52cc5746a77dda Signed-off-by: Dinesh Chinari <chinari@us.ibm.com>
* Pass char* to mapper GetObjectDeepak Kodihalli2017-06-072-4/+4
| | | | | | | | | | | 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>
* ObjectMapper; revert service and intf name changePatrick Williams2017-03-201-2/+2
| | | | | | Partial fix for openbmc/openbmc#1112. Change-Id: If5160f0f7d3070afa94121b40820b88e419b15b7
* Move object_mapper per dbus path conventions.Leonel Gonzalez2017-03-201-3/+3
| | | | | | | Partial fix for openbmc/openbmc#1112. Change-Id: I6cfa53d4cb6c24d29d60a83362e0da4ce501197e Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* inventory: merge vpd and additional propertiesDeepak Kodihalli2017-02-241-3/+19
| | | | | | | | | 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>
* React to inventory manager path updateBrad Bishop2017-02-231-1/+1
| | | | | | | | /xyz/openbmc_project/Inventory becomes /xyz/openbmc_project/inventory. Change-Id: Ieaa1da7c4ac4f801d4bfa4d3e73a63e9981c17b3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Import phosphor-logging header files from new directory.Saqib Khan2017-02-221-1/+1
| | | | | | | | | 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>
* Replace whitespace by tabDeepak Kodihalli2017-02-221-1/+1
| | | | | Change-Id: If87a2582bab1bff7c8b7704b401a3e435772756b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Remove trailing whitespaceDeepak Kodihalli2017-02-221-1/+1
| | | | | Change-Id: I7922aba87cbf4f742c13b3940cd810d46b12913c Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Fix failing testDeepak Kodihalli2017-02-202-4/+2
| | | | | | | | | | | 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>
* inventory: update extra propertiesDeepak Kodihalli2017-02-201-0/+9
| | | | | Change-Id: I23abf88d877ef1bceb312121fb5e1e5d91a068ad Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* build : provide extra properties yaml as configDeepak Kodihalli2017-02-202-8/+29
| | | | | | | | | | 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>
* inventory: enable updating extra propertiesDeepak Kodihalli2017-02-203-0/+81
| | | | | | | | | | | | | | 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>
* refactor: move types and utils in their own filesDeepak Kodihalli2017-02-206-77/+131
| | | | | Change-Id: I477dd69f0c6c648b63171dc2db264d3e70dafaf4 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* build : add phosphor-logging dependencyDeepak Kodihalli2017-02-193-2/+6
| | | | | Change-Id: I962f1f67c138140ef39461e2835d566953789467 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* build : provide FRU yaml as configurable inputDeepak Kodihalli2017-02-143-4/+21
| | | | | | | | | | 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>
* inventory : invoke inventory manager's Notify()Deepak Kodihalli2017-02-141-25/+81
| | | | | | | | 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>
* build : add systemd dependencyDeepak Kodihalli2017-02-142-0/+5
| | | | | Change-Id: Iebb46bb0d763cdd4b11ed37f3358e4bd73f0c242 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* tests: unit-test for parse() APIDeepak Kodihalli2016-12-084-0/+42
| | | | | Change-Id: I9912102d442f2c00ce70514a4a65f25e1552fc19 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* tests: unit-test for Store::get APIDeepak Kodihalli2016-12-084-1/+47
| | | | | Change-Id: Ie67427f9496bb8f9712ef80e987c39903a66cd17 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* build: Add targetsDeepak Kodihalli2016-12-083-0/+92
| | | | | | | | | | | 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>
* Add .gitignoreDeepak Kodihalli2016-12-081-0/+21
| | | | | | | | 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 applicationDeepak Kodihalli2016-12-081-0/+69
| | | | | | | | | 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 argument parserDeepak Kodihalli2016-12-082-0/+122
| | | | | | | | 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>
* inventory : implement VPD writeDeepak Kodihalli2016-12-083-0/+96
| | | | | | | | | | | | 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>
* inventory: write YAML parserDeepak Kodihalli2016-12-082-0/+109
| | | | | | | | | 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>
* inventory: Write YAML describing FRU interfacesDeepak Kodihalli2016-12-081-0/+15
| | | | | | | | | | | | | 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>
* parser : implement entry methodDeepak Kodihalli2016-12-081-0/+18
| | | | | | | | 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>
* parser : parse keyword section of a recordDeepak Kodihalli2016-12-082-0/+48
| | | | | | | | 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>
* parser : parse keyword data sectionDeepak Kodihalli2016-12-082-0/+107
| | | | | | | | | | | 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>
* parser : process OpenPOWER VPD recordDeepak Kodihalli2016-12-082-0/+42
| | | | | | | | | 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>
* parser : read table of contents recordDeepak Kodihalli2016-12-082-1/+117
| | | | | | | | 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>
* parser : implement header checkDeepak Kodihalli2016-12-082-0/+58
| | | | | | | | 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>
* Implement parse APIDeepak Kodihalli2016-12-081-0/+17
| | | | | | | This change implements the parse API, which parses input OpenPOWER VPD. Change-Id: I646e75c642cf5872252633fef03a864e287f696b Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* parser: define implementation classDeepak Kodihalli2016-12-081-0/+66
| | | | | | | | | 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>
* Implement access to parsed OpenPOWER VPDDeepak Kodihalli2016-12-082-0/+104
| | | | | | | | | 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>
* Add API to parse OpenPOWER VPDDeepak Kodihalli2016-12-071-0/+20
| | | | | | | | | | 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>
OpenPOWER on IntegriCloud