commit | 9b5a12fd5bcc1f8e1dc1474f824a2ce1b6a68e51 | [log] [tgz] |
---|---|---|
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | Sat Jan 21 14:42:11 2017 -0500 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Tue Jan 24 14:39:00 2017 -0500 |
tree | 1e925237286b69e1431dec054abdccef182c35fd | |
parent | cab2bddb2ab02d17526371531ee57fdfd6bfa14f [diff] |
pimgen: Add new types Add a number of new types in preparation for another round of refactoring. Indent - An object that facilitates indent agnostic templates. Template - An association of a template with its parent namespace. Quote - A decorator for quoting strings. Cast - A decorator for casting arguments. Literal - A decorator for using literal operators. InitializerList - An initializer list argument. Vector/Wrapper - Convenience types. Change-Id: I92cb6179716f6a04f2fecd3c7c59af5f9ec8d26c 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