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/main.cpp b/bmc/main.cpp
index 2dd9531..ea27b3d 100644
--- a/bmc/main.cpp
+++ b/bmc/main.cpp
@@ -18,6 +18,7 @@
#include "file_handler.hpp"
#include "firmware_handler.hpp"
+#include "flags.hpp"
#include "image_handler.hpp"
#include "lpc_aspeed.hpp"
#include "lpc_handler.hpp"
@@ -80,12 +81,12 @@
};
std::vector<DataHandlerPack> supportedTransports = {
- {FirmwareBlobHandler::UpdateFlags::ipmi, nullptr},
+ {FirmwareFlags::UpdateFlags::ipmi, nullptr},
#ifdef ENABLE_PCI_BRIDGE
- {FirmwareBlobHandler::UpdateFlags::p2a, &pciDataHandler},
+ {FirmwareFlags::UpdateFlags::p2a, &pciDataHandler},
#endif
#ifdef ENABLE_LPC_BRIDGE
- {FirmwareBlobHandler::UpdateFlags::lpc, &lpcDataHandler},
+ {FirmwareFlags::UpdateFlags::lpc, &lpcDataHandler},
#endif
};