tools/pci: replace pciutils with pciaccess
The pciutils library has a license which is incompatible with ours, so
switch to pciaccess instead since it's MIT-licensed.
Signed-off-by: Benjamin Fair <benjaminfair@google.com>
Change-Id: Ie40580d9992f7c30d9fdc904f97c89057791b10e
diff --git a/tools/main.cpp b/tools/main.cpp
index 0e29295..dd43c11 100644
--- a/tools/main.cpp
+++ b/tools/main.cpp
@@ -217,7 +217,6 @@
#else
host_tool::DevMemDevice devmem;
#endif
- host_tool::PciUtilImpl pci;
host_tool::ProgressStdoutIndicator progress;
std::unique_ptr<host_tool::DataInterface> handler;
@@ -250,6 +249,7 @@
}
else if (interface == IPMIPCI)
{
+ auto& pci = host_tool::PciUtilImpl::getInstance();
handler = std::make_unique<host_tool::P2aDataHandler>(
&blob, &devmem, &pci, &progress);
}