flash-ipmi: implement flashStartTransfer

Change-Id: I207f350dad3d73dacf1216e7742637531b50ea1a
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/main.cpp b/main.cpp
index 0c65f85..e623c13 100644
--- a/main.cpp
+++ b/main.cpp
@@ -19,9 +19,12 @@
 #include "host-ipmid/ipmid-api.h"
 #include "host-ipmid/oemrouter.hpp"
 
+#include "config.h"
 #include "flash-ipmi.hpp"
 #include "ipmi.hpp"
 
+static constexpr auto stagingPath = STAGING_PATH;
+
 /* TODO: Once OEM IPMI number placement is settled, point to that. */
 namespace oem
 {
@@ -81,7 +84,7 @@
 
 void setupGlobalOemFlashControl()
 {
-    flashUpdateSingleton = std::make_unique<FlashUpdate>();
+    flashUpdateSingleton = std::make_unique<FlashUpdate>(stagingPath);
 
 #ifdef ENABLE_GOOGLE
     oem::Router* router = oem::mutableRouter();