summaryrefslogtreecommitdiffstats
path: root/pimgen.py
Commit message (Collapse)AuthorAgeFilesLines
* pimgen: Add list-interfaces command optionBrad Bishop2016-11-211-11/+23
| | | | | | | | list-interfaces simply prints out all the interfaces found in interfaces.d. This intended user is configure. Change-Id: I5e2c6b59ae4addb04f2e82b084122a948e46d29f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* pimgen: Add command positional argumentBrad Bishop2016-11-211-1/+7
| | | | | | | In preparation for enabling additional commands. Change-Id: I16ec80c9b8f7eebcfd1a47c6ab7b7fe0e581123b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* pimgen: Split argument parsing logicBrad Bishop2016-11-211-16/+20
| | | | | | | | Move the non-argument parsing logic out of the main function, in preparation for enabling additional command options. Change-Id: Ib2cd75e432e11982a85a824e607ddf2568de63a9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* pimgen: Enable multiple interface filesBrad Bishop2016-11-211-3/+15
| | | | | | | | | Allow more than one interface file and put declared interface yaml files in interfaces.d, to draw attention to the intent is for packages to install their interface requirements there. Change-Id: Iab0d85eca7c5c3370978dc692d6ab8807108a2f7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* pimgen: Rename interfaces to extra_interfaces.dBrad Bishop2016-11-211-1/+1
| | | | | | | | | | Draw attention to the intent is that other packages install files here. Additionally these are 'extra' in that they are above and beyond the standard OpenBMC interfaces that will eventually be provided by a shared library. Change-Id: I8e50d39a1004ff24b1ea7de63e6534447c05a9d3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* pimgen: Move events to events.dBrad Bishop2016-11-211-2/+2
| | | | | | | | Draw attention to the intent is that other packages install files here. Change-Id: I0a6fbe86a16f39f4bb71a0bea367ec3508b14369 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* pimgen: Combine make_example and pimgenBrad Bishop2016-11-211-2/+49
| | | | Change-Id: I1c79fad6a4b70e711c8aad15c9dd86a07b54bff9
* pimgen: change -o option to be a directoryBrad Bishop2016-11-121-3/+3
| | | | | | | | Previously this was a single file but pimgen will shortly be emitting multiple files. Change-Id: I72693512aa62f323ce090cf8137dcb1251e05251 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Find examples directory when invoked out of treeBrad Bishop2016-11-121-1/+1
| | | | | Change-Id: I5d5a7024c5145b0acd5961f4b942bbff635e94cb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Find template automatically in script dirBrad Bishop2016-11-121-5/+4
| | | | | Change-Id: I8ef69ab4ef6f92c55a7393620abe134ac748a93b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Look for interfaces.yaml in --dirBrad Bishop2016-11-121-8/+5
| | | | | | Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I08e28c6fdb6073d65e6100fbf20c4ae271d04f4d
* Fix templatedir argumentBrad Bishop2016-11-121-1/+1
| | | | | | | The argument is a single template, not a directory. Change-Id: I7a000d9ed09fd445c9ade3388193d5aa190a7809 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* pimgen: Pass interfaces.yaml to Mako templateBrad Bishop2016-11-081-0/+8
| | | | | | | | | Update pimgen.py to pass interfaces.yaml to the Mako template in prep for generating the interface -> binding factory method associations. Change-Id: Ic053628331ef0e5a1ef4a8a9d50ff6f4e662cf08 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use a Mako template for generated code.Brad Bishop2016-11-081-158/+21
| | | | | Change-Id: I8901e7719da57f13eff7ba49d50113b01fec88aa Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Move generated code to implementation file.Brad Bishop2016-11-081-2/+13
| | | | | Change-Id: I5c1e250a0cfd3aecf84709b90bc01a97e5673eaf Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Move examples->example/eventsBrad Bishop2016-11-081-1/+2
| | | | | Change-Id: I072cd37217f982fa45d6fae7f1ebebdabe1a7800 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* README formatting update.Brad Bishop2016-11-081-1/+1
| | | | | | | | Change filter/action identifier from name to type for consistancy. Minor formatting tweaks. Change-Id: If4e34ac7b9b76b12e4bd6b72c49cd324c229e32f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add actionsBrad Bishop2016-11-081-3/+15
| | | | | | | | | | Provide tooling to enable specification of pre-implemented actions to perform after a signal match. Add a default 'noop' action to be used when an action isn't specified. Change-Id: I8d3b1ef2cfc26771322820be931a61bba3ad8d94 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Enable filtering of signal matchesBrad Bishop2016-11-081-3/+35
| | | | | | | | | | Provide tooling to enable specification of pre-implemented filtering functors for signal matches. Add a default 'none' filter to be used when a filter isn't specified. Change-Id: I3549d8cf44c5f475626875fa94ca3ee8f74d6d26 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add manager skeletonBrad Bishop2016-11-081-3/+3
| | | | | | | | | | | Add stubbed Notify implementation and register for generated signal callbacks. Add a unit test; which, at this point does little more than verify we don't coredump on startup. Change-Id: I0cda71935947c0d082612a5c52e2b7eba98516ab Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Parse match rulesBrad Bishop2016-10-311-0/+137
The 'pimgen.py' parser will parse one or more yaml files containing inventory manager match rules and generate the required c++ header file. Change-Id: Id3b116450bd56487e266590dd339b93db9bc7d27 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud