commit | cab2bddb2ab02d17526371531ee57fdfd6bfa14f | [log] [tgz] |
---|---|---|
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | Sat Jan 21 15:00:54 2017 -0500 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Tue Jan 24 14:39:00 2017 -0500 |
tree | 80de3727409671c3552e654d8f2d895c3c811859 | |
parent | e4b1b1e7835c22a46839f53e68032374731425ce [diff] |
pimgen: Add new Mako templates Add three new templates in preparation for another round of refactoring. argument - For rendering array arguments. method - For rendering method calls. signature - For rendering dbus signature arguments. Change-Id: I9f9806bcb5c1e048aa283e76f9c6f0f8a7bb53ac Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Phosphor Inventory Manager (PIM) is an implementation of the xyz.openbmc_project.Inventory.Manager DBus interface, and supporting tools. PIM uses a combination of build-time YAML files and run-time calls to the Notify method of the Manager interface to provide a generalized inventory state management solution.
PIM includes a YAML parser (pimgen.py). For PIM to do anything useful, a set of YAML files must be provided externally that tell it what to do. Examples can be found in the examples directory.
The following top level YAML tags are supported:
events
Supported event tags are:
Subsequent tags are defined by the event type.
match
Supported match tags are:
filters
Supported filter tags are:
The available filters provided by PIM are:
propertyChangedTo
Supported arguments for the propertyChangedTo filter are:
actions
Supported action tags are:
The available actions provided by PIM are:
destroyObject
Supported arguments for the destroyObject action are:
setProperty
Supported arguments for the setProperty action are:
After running pimgen.py, build PIM using the following steps:
./bootstrap.sh ./configure ${CONFIGURE_FLAGS} make
To clean the repository run:
./bootstrap.sh clean