summaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* gen_pimrules: Update the Boot Progress SensorAdriana Kobylak2018-08-071-4/+4
| | | | | | | | | | | | | | The boot progress sensor has moved from the /org/openbmc/sensors path to /xyz/openbmc_project/state/host0. (Reference: the phosphor-ipmi-sensor-inventory%/config.yaml files under the openbmc/openbmc repository). Update gen_pimrules with the correct sensor path and value. Tested: Verified Witherspoon powered on to the Host OS. Change-Id: I76df4e84176d05804e98e98703796af57d8f9b05 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
* Inventory:- Make changes in the mako and the C++ structureRatan Gupta2018-02-042-107/+127
| | | | | | | | | | 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>
* Modify mako script to generate code for empty interfacesMarri Devender Rao2017-09-132-5/+12
| | | | | | | | | Allow generating code for empty interfaces in the FRU map. Empty interfaces are used to determine the type of the inventory object. Change-Id: I945998627b88bc68374b631d1b14328cd611cb39 Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
* fru_gen: reduce map in generated dataPatrick Williams2017-06-021-3/+10
| | | | | | | | | | | | | | | | 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>
* fru_gen: fixes for python3Patrick Williams2017-06-022-8/+8
| | | | | | | | | | The iter{keys,items} functions have become just 'keys' and 'items' in python3. Python2 also has keys and items, which is slightly less efficient for iteration but none of these maps are large enough to be of concern. Change-Id: If6e8f36ad39074e0a6c022fb09e3a43b0928af19 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Add gen_pimrules scriptBrad Bishop2017-02-281-0/+183
| | | | | | | Add a script for generating PIM rules. Change-Id: I9de54785938fcbf8de3a1ac8f42fa37a52f99d2c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* inventory: enable updating extra propertiesDeepak Kodihalli2017-02-213-0/+69
| | | | | | | | | | | | | | While the IPMI FRU parser, in order to update inventory, receives most properties from the host IPMI, 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: I30a2a9129d97485a0c31c3dec0155d5e1a008101 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Create the generated FRU Map in cpp.Ratan Gupta2017-02-142-28/+6
| | | | | Change-Id: Id83220e5e2876f4112ba76d698b2062e2a08dd3d Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* fru_gen: Handle empty yaml filesBrad Bishop2017-02-071-0/+2
| | | | | | | | Allow the build to work in the event of an empty YAML file. Change-Id: I3d36b57852446959aeb836ab69958c16387c02fc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add IPMI FRU parser code generator.Ratan Gupta2017-02-013-0/+226
Add a script that generates c++ structures based on system dependent configuration. Change-Id: I3a005b2dd31d7db3137bed9be6df2a0658c48d82 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
OpenPOWER on IntegriCloud