commit | bf066a6396771214b2a9c47444b991f2750c0cfc | [log] [tgz] |
---|---|---|
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | Wed Oct 19 08:09:44 2016 -0400 |
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | Mon Oct 31 13:46:47 2016 -0500 |
tree | 68c53d2d748f832ac81ca2afcf7a5cfa2463909f | |
parent | 73b776bd8cc603bdebab4b76b25a19fa9e2a5f39 [diff] |
Parse match rules 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>
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. An example 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:
After running pimgen.py, build PIM using the following steps:
./bootstrap.sh ./configure ${CONFIGURE_FLAGS} make
To clean the repository run:
./bootstrap.sh clean