soft-off: Add soft off timeout seconds configure option for the soft off app

Add timeout attribute for the softoff repo.
After BMC sends soft off command to host, BMC starts a timer and waits
for a chassis-off event message from the host.
If the timer expires, pldm-softpoweroff record error log and exit.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Id901bd589efaf8f0df9fa5272f5f10e4fda6e37b
Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
diff --git a/meson.build b/meson.build
index e2798e8..017474b 100644
--- a/meson.build
+++ b/meson.build
@@ -20,6 +20,9 @@
 conf_data.set_quoted('FRU_JSONS_DIR', '/usr/share/pldm/fru')
 conf_data.set_quoted('HOST_JSONS_DIR', '/usr/share/pldm/host')
 conf_data.set_quoted('EVENTS_JSONS_DIR', '/usr/share/pldm/events')
+if get_option('softoff').enabled()
+  conf_data.set('SOFTOFF_TIMEOUT_SECONDS', get_option('softoff-timeout-seconds'))
+endif
 if get_option('oem-ibm').enabled()
   conf_data.set_quoted('FILE_TABLE_JSON', '/usr/share/pldm/fileTable.json')
   conf_data.set_quoted('LID_RUNNING_DIR', '/var/lib/phosphor-software-manager/hostfw/running')