main: receive blob handler path from configure
Add blob handler path to configure_ac and use this
path for searching.
Change-Id: Ie0e33e93822bc6e95ace2fed5abe66f42dae5ca5
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/main.cpp b/main.cpp
index ee236d9..7bbae28 100644
--- a/main.cpp
+++ b/main.cpp
@@ -60,9 +60,6 @@
replyCmdBuf, dataLen);
}
-/* TODO: this should come from the makefile or recipe... */
-constexpr auto expectedHandlerPath = "/usr/lib/blob-ipmid";
-
void setupBlobGlobalHandler() __attribute__((constructor));
void setupBlobGlobalHandler()
@@ -78,7 +75,7 @@
/* Install handlers. */
try
{
- loadLibraries(getBlobManager(), expectedHandlerPath);
+ loadLibraries(getBlobManager(), BLOB_LIB_PATH);
}
catch (const std::exception& e)
{