tools: start burn_my_bmc tool
Start implementation of burn_my_bmc host tool, the purpose of which is
to upload the firmware image and trigger the verification process.
The utility will accept four parameters:
1) command - the command to run, initially only "update"
2) interface - the data interface to use, e.g. lpc or pci
3) image - the path to the image file
4) sig - the path to the image's signature file
Change-Id: Ifbab7df947f37dd3a6fddddcf523c0fa724c9551
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/tools/updater.hpp b/tools/updater.hpp
new file mode 100644
index 0000000..c17025e
--- /dev/null
+++ b/tools/updater.hpp
@@ -0,0 +1,14 @@
+#pragma once
+
+#include <string>
+
+/**
+ * Attempt to update the BMC's firmware using the interface provided.
+ *
+ * @param[in] interface - the interface to use.
+ * @param[in] imagePath - the path to the image file.
+ * @param[in] signaturePath - the path to the signature file.
+ * @return non-zero on failure.
+ */
+int updaterMain(const std::string& interface, const std::string& imagePath,
+ const std::string& signaturePath);