Add inventory.pl to create system inventory in JSON.

This script creates the system inventory listing from
the system topology in the machine readable workbook XML.
It includes all of the FRUs, plus a few other entities that
aren't FRUs.  The Targets.pm module is used to traverse the
MRW XML.  Most of the work of the script is converting MRW
naming conventions to OpenBMC naming conventions.

Change-Id: I2e27dce923d7597bd6eee1dfe73d38aa4755a801
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
1 file changed
tree: 03a7e6f6089f71cf86d4ce006521a20bb165c1b6
  1. inventory.pl
  2. LICENSE