summaryrefslogtreecommitdiffstats
path: root/frup.hpp
Commit message (Collapse)AuthorAgeFilesLines
* frup: add missing headerPatrick Venture2018-10-201-0/+1
| | | | | | | Add missing header "utility" provides std::pair<>. Change-Id: I5d303c5f41f7af16ef3dc75fdd9818ed17978a5a Signed-off-by: Patrick Venture <venture@google.com>
* add clang-formatPatrick Venture2018-10-171-58/+59
| | | | | | | Add clang-format file. Change-Id: Ib99bbeb0ec59b5befb742dec38286c24a7f842ea Signed-off-by: Patrick Venture <venture@google.com>
* Inventory:- Make changes in the mako and the C++ structureRatan Gupta2018-02-041-4/+13
| | | | | | | | | | This change lies in the Write Fru Data command processing. As fru yaml would be having extra properties like entityID,entityInstance,So changes were needed to make the change in the corresponding c++ structure. Change-Id: If23bb12563cdef34438746e2d6a8be7f54b7486d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* fru_gen: eliminate unnecessary mapsPatrick Williams2017-06-021-4/+5
| | | | | | | | | | | | | | The type of the generated fru data contained a map of a map of a map of a map, but for all except the outermost map, all elements were iterated over when using the map. Therefore, change them to a vector<pair<...>> instead. Vector should generate smaller code and allow faster iteration. Vector insert and iteration are both linear where as map is O(n lg n). Change-Id: I475e5a40b4051e4ce9478a565c889c1751241987 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* fru_gen: reduce map in generated dataPatrick Williams2017-06-021-4/+7
| | | | | | | | | | | | | | | | 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>
* Create the generated FRU Map in cpp.Ratan Gupta2017-02-141-1/+17
| | | | | Change-Id: Id83220e5e2876f4112ba76d698b2062e2a08dd3d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* rename frup.h -> frup.hppRatan Gupta2017-02-111-0/+84
This header contains c++ code. Change-Id: I4bc6cf0ddfbdc6ac4d93580a5203bb59537bbb04 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
OpenPOWER on IntegriCloud