tools: remove phosphor-ipmi-blobs dependency
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
diff --git a/bmc/firmware_handler.cpp b/bmc/firmware_handler.cpp
index aaabe83..5f16846 100644
--- a/bmc/firmware_handler.cpp
+++ b/bmc/firmware_handler.cpp
@@ -16,6 +16,8 @@
#include "firmware_handler.hpp"
+#include "data.hpp"
+#include "flags.hpp"
#include "image_handler.hpp"
#include "status.hpp"
#include "util.hpp"
@@ -511,7 +513,7 @@
std::vector<std::uint8_t> bytes;
- if (item->second->flags & UpdateFlags::ipmi)
+ if (item->second->flags & FirmwareFlags::UpdateFlags::ipmi)
{
bytes = data;
}
@@ -550,7 +552,7 @@
return false;
}
- if (item->second->flags & UpdateFlags::ipmi)
+ if (item->second->flags & FirmwareFlags::UpdateFlags::ipmi)
{
return false;
}