Remove installation of dreport plugin
Until phosphor-debug-collector doesn't have a proper interface to register an
external plugin at runtime, we have to embed the plugin directly to the
phosphor-debug-collector project.
The dreport plugin file can be created with --enable-dreport option of
confugure script.
Change-Id: I31c59055cba9f518b74b8c80d48d1b572d80a2e1
Signed-off-by: Artem Senichev <a.senichev@yadro.com>
diff --git a/Makefile.am b/Makefile.am
index 649cab6..6eeb332 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,27 +39,7 @@
endif # HAVE_SYSTEMD
if HAVE_DREPORT
-DREPORT_SHARE = $(datarootdir)/dreport.d
CLEANFILES += hostlogger.dreport
-
-install-data-hook:
- install -d $(DESTDIR)$(DREPORT_SHARE)/plugins.d
- install -m 0755 hostlogger.dreport $(DESTDIR)$(DREPORT_SHARE)/plugins.d/hostlogger
- install -d $(DESTDIR)$(DREPORT_SHARE)/pl_core.d
- ln -sr $(DESTDIR)$(DREPORT_SHARE)/plugins.d/hostlogger \
- $(DESTDIR)$(DREPORT_SHARE)/pl_core.d/hostlogger
- install -d $(DESTDIR)$(DREPORT_SHARE)/pl_elog.d
- ln -sr $(DESTDIR)$(DREPORT_SHARE)/plugins.d/hostlogger \
- $(DESTDIR)$(DREPORT_SHARE)/pl_elog.d/hostlogger
- install -d $(DESTDIR)$(DREPORT_SHARE)/pl_user.d
- ln -sr $(DESTDIR)$(DREPORT_SHARE)/plugins.d/hostlogger \
- $(DESTDIR)$(DREPORT_SHARE)/pl_user.d/hostlogger
-
-uninstall-hook:
- rm -f $(DESTDIR)$(DREPORT_SHARE)/plugins.d/hostlogger \
- $(DESTDIR)$(DREPORT_SHARE)/pl_core.d/hostlogger \
- $(DESTDIR)$(DREPORT_SHARE)/pl_elog.d/hostlogger \
- $(DESTDIR)$(DREPORT_SHARE)/pl_user.d/hostlogger
endif # HAVE_DREPORT
$(GENERATED_HPP): $(YAML_IFACE)
diff --git a/configure.ac b/configure.ac
index 6c9f93c..8a0dec1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,13 +80,13 @@
# dreport integration
AC_ARG_ENABLE([dreport],
- [AS_HELP_STRING([--enable-dreport], [enable dreport integration as plugin [yes]])],
+ [AS_HELP_STRING([--enable-dreport], [create dreport plugin script [no]])],
[case "${enableval}" in
yes) dreport=true ;;
no) dreport=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-dreport]) ;;
esac],
- [dreport=true])
+ [dreport=false])
AM_CONDITIONAL(HAVE_DREPORT, test "x$dreport" = "xtrue")
# Debug build configuration