summaryrefslogtreecommitdiffstats
path: root/bmc/test/firmware_handler_unittest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* bmc: require at least one action pack configurationPatrick Venture2019-11-071-1/+56
| | | | | | | | | | | | | | | | In the event the phosphor-ipmi-flash package is added to an image with only a default configuration, it should not register itself as a blob handler. The default installation does not include any json configuration files. Therefore, this lack of a configuration can be checked at load time. Added validation that the firmware image list contains at least two handlers, and one is always the hash blob handler. Added validation that the action map contains at least one action pack configuration. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I0b2f6cded78121869e8a01290d29e420c555a16d
* bmc: move from data section objs to ownedPatrick Venture2019-07-191-14/+19
| | | | | | | | Move from objects created ahead of purpose to owned objects. This is a step towards integrating with the json support. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I738a5edd40724f17245911af1080c350f029fef1
* bmc: add ActionPack notion to bundle actionsPatrick Venture2019-07-031-8/+5
| | | | | | | | Each firmware type will provide its own set of action implementations for each step, preparation, verification, and update. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Id6409ac356a74e9094272b37709861e2a33d9862
* tools: remove phosphor-ipmi-blobs dependencyPatrick Venture2019-06-271-2/+3
| | | | | | | | | | The host tool depended on the BMC header: firmware_handler.hpp because it defined the flags. This header depends on phosphor-ipmi-blobs, therefore the host-tool depends on this. Move the flags into a separate common header file and snip this dependency. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Id2ad33a1611c02605a1ed5c695429d0451eb98d4
* move bmc code into bmc folderPatrick Venture2019-06-271-0/+71
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I2407359461a1a2f0e733ff8cd0cb1744b6304c32
OpenPOWER on IntegriCloud