ipmid: Rewrite ipmid to use the new architecture
New architecture highlights:
* The new registration detects handler type for argument unpacking.
* Upon completion the response is automatically packed.
* Handlers can make use of the new async/yield sdbusplus mechanism.
* The queue exports a new dbus interface for method-based IPMI calls.
* The legacy handler registration is still supported for now.
* The legacy dbus interface is still supported for now.
Change-Id: Iae8342d9771ccebd3a0834e35597c14be4cc39cf
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
diff --git a/Makefile.am b/Makefile.am
index 890b9f6..ce96af7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,11 +10,11 @@
ipmid
ipmid_SOURCES = \
- ipmid.cpp \
+ ipmid-new.cpp \
settings.cpp \
host-cmd-manager.cpp \
- utils.cpp \
- oemrouter.cpp
+ utils.cpp
+
nodist_ipmid_SOURCES = ipmiwhitelist.cpp
libipmi20_BUILT_LIST = \
@@ -46,6 +46,7 @@
ipmid_CXXFLAGS = $(COMMON_CXX)
ipmid_LDADD = \
libipmid/libipmid.la \
+ user_channel/libchannellayer.la \
libipmid-host/libipmid-host.la
ipmid_LDFLAGS = \
$(SYSTEMD_LIBS) \
@@ -54,8 +55,8 @@
$(PHOSPHOR_LOGGING_LIBS) \
$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
$(CRYPTO_LIBS) \
+ -lboost_coroutine \
-lstdc++fs \
- -pthread \
-export-dynamic
# TODO: Rather than use -export-dynamic, we should use -export-symbol to have a
@@ -116,6 +117,7 @@
$(PHOSPHOR_LOGGING_LIBS) \
$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
-lstdc++fs \
+ -lboost_coroutine \
-version-info 0:0:0 -shared
libipmi20_la_CXXFLAGS = $(COMMON_CXX)