summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am12
-rw-r--r--elog.cpp14
-rw-r--r--elog.hpp12
-rw-r--r--phosphor-logging.pc.in2
4 files changed, 29 insertions, 11 deletions
diff --git a/Makefile.am b/Makefile.am
index fa066a1..1e9d331 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,18 @@ include_HEADERS = log.hpp elog.hpp elog-errors-HostEvent.hpp
# Generate this header, don't export in a distro
nodist_include_HEADERS = elog-gen.hpp
+libphosphor_logging_FILES = \
+ elog.cpp
+libphosphor_loggingdir = ${libdir}
+libphosphor_logging_LTLIBRARIES = libphosphor_logging.la
+libphosphor_logging_la_SOURCES = $(libphosphor_logging_FILES)
+libphosphor_logging_la_LDFLAGS = \
+ $(SYSTEMD_LIBS) \
+ $(SDBUSPLUS_LIBS) \
+ -version-info 1:0:0 -shared
+libphosphor_logging_la_CXXFLAGS = \
+ $(SDBUSPLUS_CFLAGS)
+
# Application test which runs in obmc env (qemu, real hardware)
bin_PROGRAMS = logging-test
logging_test_SOURCES = logging_test.cpp
diff --git a/elog.cpp b/elog.cpp
new file mode 100644
index 0000000..2b452d4
--- /dev/null
+++ b/elog.cpp
@@ -0,0 +1,14 @@
+#include "elog.hpp"
+
+namespace phosphor
+{
+namespace logging
+{
+
+void commit()
+{
+}
+
+} // namespace logging
+} // namespace phosphor
+
diff --git a/elog.hpp b/elog.hpp
index b445a0e..b340f2d 100644
--- a/elog.hpp
+++ b/elog.hpp
@@ -2,7 +2,7 @@
#include <tuple>
#include <utility>
-#include "elog-gen.hpp"
+#include "log.hpp"
namespace phosphor
{
@@ -87,16 +87,8 @@ public:
/** @fn commit()
* @brief Create an error log entry based on journal
* entry with a specified MSG_ID
- * @tparam E - Error log struct
*/
-template <typename E>
-void commit()
-{
- // TODO placeholder function call
- // to call the new error log server to create
- // an error log on the BMC flash
- // dbus_commit(E.msgid); // call server
-}
+void commit();
/** @fn elog()
* @brief Create a journal log entry based on predefined
diff --git a/phosphor-logging.pc.in b/phosphor-logging.pc.in
index 228246a..6ab5119 100644
--- a/phosphor-logging.pc.in
+++ b/phosphor-logging.pc.in
@@ -9,5 +9,5 @@ URL: https://github.com/openbmc/phosphor-logging
Version: @VERSION@
Requires: @AX_PACKAGE_REQUIRES@
Requires.private: @AX_PACKAGE_REQUIRES_PRIVATE@
-Libs:
+Libs: -L@libdir@ -lphosphor_logging
Cflags: -I@includedir@
OpenPOWER on IntegriCloud