From e225540cc7dc627c85a976fdc7ff0221b64ed937 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Wed, 3 Oct 2018 11:12:53 -0700 Subject: 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 --- Makefile.am | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Makefile.am b/Makefile.am index d9c5590..c368df1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,14 +24,19 @@ nobase_include_HEADERS = \ 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 -- cgit v1.2.3