Patrick Venture | bf58cd6 | 2018-12-11 09:05:46 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Patrick Venture | 01123b2 | 2019-06-20 13:49:06 -0700 | [diff] [blame] | 3 | #include "handler.hpp" |
Patrick Venture | 0088759 | 2018-12-11 10:57:06 -0800 | [diff] [blame] | 4 | |
Patrick Venture | 664c5bc | 2019-03-07 08:09:45 -0800 | [diff] [blame] | 5 | #include <ipmiblob/blob_interface.hpp> |
Patrick Venture | 9b37b09 | 2020-05-28 20:58:57 -0700 | [diff] [blame] | 6 | |
Patrick Venture | bf58cd6 | 2018-12-11 09:05:46 -0800 | [diff] [blame] | 7 | #include <string> |
| 8 | |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame] | 9 | namespace host_tool |
| 10 | { |
| 11 | |
Patrick Venture | d61b0ff | 2019-05-15 15:58:06 -0700 | [diff] [blame] | 12 | /** |
Patrick Venture | bf58cd6 | 2018-12-11 09:05:46 -0800 | [diff] [blame] | 13 | * Attempt to update the BMC's firmware using the interface provided. |
| 14 | * |
Patrick Venture | 55646de | 2019-05-16 10:06:26 -0700 | [diff] [blame] | 15 | * @param[in] updater - update handler object. |
Willy Tu | 203ad80 | 2021-09-09 20:06:36 -0700 | [diff] [blame^] | 16 | * @param[in] blob - ipmi blob object. |
Patrick Venture | bf58cd6 | 2018-12-11 09:05:46 -0800 | [diff] [blame] | 17 | * @param[in] imagePath - the path to the image file. |
| 18 | * @param[in] signaturePath - the path to the signature file. |
Patrick Venture | 9f937c4 | 2019-06-21 07:55:54 -0700 | [diff] [blame] | 19 | * @param[in] layoutType - the image update layout type (static/ubi/other) |
Brandon Kim | 6749ba1 | 2019-09-19 13:31:37 -0700 | [diff] [blame] | 20 | * @param[in] ignoreUpdate - determines whether to ignore the update status |
Patrick Venture | 2bc23fe | 2018-12-13 10:16:36 -0800 | [diff] [blame] | 21 | * @throws ToolException on failures. |
Patrick Venture | bf58cd6 | 2018-12-11 09:05:46 -0800 | [diff] [blame] | 22 | */ |
Willy Tu | 203ad80 | 2021-09-09 20:06:36 -0700 | [diff] [blame^] | 23 | void updaterMain(UpdateHandlerInterface* updater, ipmiblob::BlobInterface* blob, |
| 24 | const std::string& imagePath, const std::string& signaturePath, |
Brandon Kim | 6749ba1 | 2019-09-19 13:31:37 -0700 | [diff] [blame] | 25 | const std::string& layoutType, bool ignoreUpdate); |
Patrick Venture | 9b534f0 | 2018-12-13 16:10:02 -0800 | [diff] [blame] | 26 | |
| 27 | } // namespace host_tool |