summaryrefslogtreecommitdiffstats
path: root/inventory.pl
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2016-09-22 15:41:33 -0500
committerMatt Spinler <spinler@us.ibm.com>2016-09-22 15:46:46 -0500
commit1e3881219bca043fbb1cd65445a62ee2afc1e0c6 (patch)
tree57af5d437574d802b7d5a1d4acea8335f0d99b00 /inventory.pl
parentcb99d1ea2c77c704e7991733fa36848e211567af (diff)
downloadphosphor-mrw-tools-1e3881219bca043fbb1cd65445a62ee2afc1e0c6.tar.gz
phosphor-mrw-tools-1e3881219bca043fbb1cd65445a62ee2afc1e0c6.zip
Add 'bios' and 'misc' inventory items
Add these because even though they don't represent physical items, other code currently needs them to store information in. Resolves openbmc/openbmc#594. Change-Id: I45ce980f12fa6e859bdd0800702f7adaadda80c8 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Diffstat (limited to 'inventory.pl')
-rwxr-xr-xinventory.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/inventory.pl b/inventory.pl
index 83d7766..13c3df1 100755
--- a/inventory.pl
+++ b/inventory.pl
@@ -75,6 +75,15 @@ foreach $target (sort keys %{ $targetObj->getAllTargets() })
}
+#Hardcode the entries that will never be in the MRW
+#TODO: openbmc/openbmc#596 Remove when BIOS version is stored elsewhere.
+$inventory{'<inventory_root>/system/bios'} =
+ {is_fru => 1, fru_type => 'SYSTEM'};
+
+#TODO: openbmc/openbmc#597 Remove when misc FRU data is stored elsewhere.
+$inventory{'<inventory_root>/system/misc'} =
+ {is_fru => 0, fru_type => 'SYSTEM'};
+
transform(\@items, \%inventory);
#Encode in JSON and write it out
OpenPOWER on IntegriCloud