summaryrefslogtreecommitdiffstats
path: root/writefrudata.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fru_gen: reduce map in generated dataPatrick Williams2017-06-021-29/+5
| | | | | | | | | | | | | | | | Eliminate one level of the generated "frus" map by creating a structure for the lowest-level member. This should reduce the impact of a gcc bug that consumes excessive memory when compiling the generated map. Also removed the runtime calculation of the 'delimiter' character and instead generated it in the fru_gen python script. Resolves openbmc/openbmc#1441. Resolves openbmc/openbmc#1166. Change-Id: Iafe049d034354d58b68d357b4f49fd5e21b2c8c7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* writefrudata: removed un-needed sd_bus_refPatrick Williams2017-04-181-1/+1
| | | | | | | | sdbusplus's bus object has a change in semantics that no longer require a 'sd_bus_ref' call. See changes for openbmc/openbmc#1432. Change-Id: I853b9d88aa5711d29be3edce5d4ad67bfd27b3d1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Trimmed out code paths that relied on the old namespace.Patrick Venture2017-04-171-250/+0
| | | | | | | | | | | There were references to the skeleton because it was still updating items in the old namespace. This trims those out, however, doesn't clean up all the extra bits. That will be a subsequent commit. Fixes openbmc/openbmc#1425. Change-Id: Ibe9af614458bced70f478f70ffb5b5195034bc7e Signed-off-by: Patrick Venture <venture@google.com>
* writefrudata: Reuse ipmi bus for inventory-notifyPatrick Williams2017-03-311-3/+3
| | | | | | | Partially fixes openbmc/openbmc#875. Change-Id: Ieaaa65fa8432ffa873dcf2f4f96f9c1e09de3008 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Move object_mapper per dbus path conventions.Leonel Gonzalez2017-03-201-1/+1
| | | | | | | Partial fix for openbmc/openbmc#1112. Change-Id: I467a9ffa68d9539c5c1f71e2dfa3281a347d5951 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
* React to inventory manager path changeBrad Bishop2017-02-231-1/+1
| | | | | | | | /xyz/openbmc_project/Inventory becomes /xyz/openbmc_project/inventory Change-Id: I95c1174b3cdbcd73a88c6bc004016e089c12f3e4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: update extra propertiesDeepak Kodihalli2017-02-221-16/+32
| | | | | Change-Id: I8b403f07855cccb001eb63d6c5f11c5e1f58c874 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Inventory: Implement writing custom IPMI FRU propertyRatan Gupta2017-02-201-2/+34
| | | | | Change-Id: I9286045c3c10cd8bed840f03cfcc92a5b236d9ca Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Fix FRU area checkDeepak Kodihalli2017-02-141-4/+2
| | | | | | | | One of the IPMI FRU area checks deals with the old openbmc skeleton interfaces, which is no longer valid. Fixed that. Change-Id: Id406d4967d130136d4ac2a8efff94dac65d7ee0e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* inventory : adhere to change in PIM Notify()Ratan Gupta2017-02-141-24/+25
| | | | | Change-Id: I83efc8ad799aaa879525d84b97779d5b98f168c4 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Create the generated FRU Map in cpp.Ratan Gupta2017-02-141-5/+10
| | | | | Change-Id: Id83220e5e2876f4112ba76d698b2062e2a08dd3d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* rename frup.h -> frup.hppRatan Gupta2017-02-111-1/+1
| | | | | | | This header contains c++ code. Change-Id: I4bc6cf0ddfbdc6ac4d93580a5203bb59537bbb04 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* writefrudata : invoke inventory managerRatan Gupta2017-02-011-19/+65
| | | | | | | | | Make a call to the inventory manager to construct inventory objects for IPMI FRUs Change-Id: I4b36ecc85bc78214c9c47032bafd013f6ff27fe9 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com> Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Re-factor to use MRW and Inventory interfacesRatan Gupta2017-02-011-72/+130
| | | | | | | | | The write FRU command now figures out properties to be written for a FRU via a generated header file, which in turn is generated via scrips deriving their inputs from MRW and Inventory d-bus interfaces. Change-Id: I9939aeec24566cf518f4e63dc6ae344b236a541f Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Change H->hpp & C->cppMatthew Barth2016-10-181-0/+797
Change-Id: I4bb8cf7a58c517f348a524d3e027ebcd1dcd0dea Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
OpenPOWER on IntegriCloud