common: host power utility: add host-state-transition-timeout option

Introduce a configurable host-state-transition-timeout to control
how long the utility waits for a host state change. The previous 12s
timeout was insufficient for a graceful power off, leading to false
timeout errors.

This option is used by the bios-software-update service to control
the host state transition timeout when turning the host off and on
before and after a BIOS update.

Change-Id: I9209d8f06f55eaf181235198c20c32c93861f841
Signed-off-by: Kevin Tung <kevin.tung.openbmc@gmail.com>
diff --git a/common/meson.build b/common/meson.build
index 8f515e1..fd9ccf3 100644
--- a/common/meson.build
+++ b/common/meson.build
@@ -1,6 +1,14 @@
 
 subdir('pldm')
 
+conf = configuration_data()
+conf.set(
+    'HOST_STATE_TRANSITION_TIMEOUT',
+    get_option('host-state-transition-timeout'),
+)
+
+configure_file(output: 'common_config.h', configuration: conf)
+
 software_common_lib = static_library(
     'software_common_lib',
     'src/software_manager.cpp',