meta-ibm: p10bmc: Configure debug-trigger for dbus sink actions

The dbus sink actions will cause phosphor-dump-manager to take a full
BMC dump if the debug action is received on the trigger source.

Change-Id: If57612a75ca7f68ed2636c9b23dc04972d99626d
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/meta-ibm/recipes-phosphor/dump/debug-trigger/p10bmc/debug-trigger.default b/meta-ibm/recipes-phosphor/dump/debug-trigger/p10bmc/debug-trigger.default
new file mode 100644
index 0000000..b8d4c26
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/dump/debug-trigger/p10bmc/debug-trigger.default
@@ -0,0 +1,2 @@
+DEBUG_TRIGGER_OPTIONS=--sink-actions=dbus
+DEBUG_TRIGGER_SINK=
diff --git a/meta-ibm/recipes-phosphor/dump/debug-trigger_%.bbappend b/meta-ibm/recipes-phosphor/dump/debug-trigger_%.bbappend
new file mode 100644
index 0000000..c238ee1
--- /dev/null
+++ b/meta-ibm/recipes-phosphor/dump/debug-trigger_%.bbappend
@@ -0,0 +1,9 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI:append:p10bmc = " file://debug-trigger.default"
+
+do_install:append:p10bmc() {
+        # Install the defaults file
+        mkdir -p ${D}${sysconfdir}/default
+        install -m 0644 -T ${WORKDIR}/debug-trigger.default ${D}${sysconfdir}/default/debug-trigger
+}