Option to override dump request D-Bus path

Added option for overriding the object path for requesting OpenPOWER
dumps. On recent systems the object path is changed so adding option
to override the path in the recipe.

Change-Id: I457831630aa4208e0455082a8f0c4096b084d843
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
diff --git a/attn/attn_dump.cpp b/attn/attn_dump.cpp
index 167835a..6199f85 100644
--- a/attn/attn_dump.cpp
+++ b/attn/attn_dump.cpp
@@ -1,3 +1,5 @@
+#include "config.h"
+
 #include <attn/attn_dbus.hpp>
 #include <attn/attn_dump.hpp>
 #include <attn/attn_logging.hpp>
@@ -113,14 +115,13 @@
 /** Request a dump from the dump manager */
 void requestDump(uint32_t i_logId, const DumpParameters& i_dumpParameters)
 {
-    constexpr auto path = "/org/openpower/dump";
     constexpr auto interface = "xyz.openbmc_project.Dump.Create";
     constexpr auto function = "CreateDump";
 
     sdbusplus::message_t method;
     bool watchdogDisabled = false;
 
-    if (0 == dbusMethod(path, interface, function, method))
+    if (0 == dbusMethod(OP_DUMP_OBJ_PATH, interface, function, method))
     {
         try
         {