build: fixup paths to leverage ipmiprovider symlinks
Add a comment and fix up the destination folder for the example handler.
Change-Id: Idc3bfbb77d4d103092b49c7cc63d462fe23a5f61
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/Makefile.am b/Makefile.am
index d9c5590..c368df1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,14 +24,19 @@
blobs-ipmid/test/blob_mock.hpp \
blobs-ipmid/test/manager_mock.hpp
+# Install the blob handlers in ipmid-providers so you can leverage
+# meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass
+# Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the
+# library in ${D}/${libdir}/ipmid-providers/
+
# Always build but only installed if you add the item:
# BLOBIPMI_PROVIDER_LIBRARY += "libexample.so"
-libexampledir = ${libdir}/blob-providers
-libexample_LTLIBRARIES = libexample.la
-libexample_la_SOURCES = example/example.cpp
-libexample_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
- -version-info 0:0:0 -shared
-libexample_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
- -flto
+libblobexampledir = ${libdir}/ipmid-providers
+libblobexample_LTLIBRARIES = libblobexample.la
+libblobexample_la_SOURCES = example/example.cpp
+libblobexample_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
+ -version-info 0:0:0 -shared
+libblobexample_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
+ -flto
SUBDIRS = . test