meson: Move IPMI_SMS_ATN_ACK_TIMEOUT_SECS out of softoff
The config `IPMI_SMS_ATN_ACK_TIMEOUT_SECS` is used by
`host-interface.cpp` and `host-cmd-manager.cpp`, which are not specific
to softoff, and it gets compile error when `softoff` is disabled.
Move the config out of `softoff` feature, so that it compiles OK with or
without `softoff` feature.
Tested: Verify the repo compile with `-Dsoftoff=disabled`.
Signed-off-by: Lei YU <yulei.sh@bytedance.com>
Change-Id: I03edc40684045a27255d5184ac6056f7181b0492
diff --git a/meson.build b/meson.build
index f6fc07c..cb05cc9 100644
--- a/meson.build
+++ b/meson.build
@@ -16,12 +16,12 @@
conf_data.set_quoted('CALLOUT_FWD_ASSOCIATION', 'callout')
conf_data.set_quoted('BOARD_SENSOR', get_option('board-sensor'))
conf_data.set_quoted('SYSTEM_SENSOR', get_option('system-sensor'))
+conf_data.set('IPMI_SMS_ATN_ACK_TIMEOUT_SECS', get_option('ipmi-sms-atn-ack-timeout-secs'))
# Soft Power off related.
if not get_option('softoff').disabled()
conf_data.set_quoted('SOFTOFF_BUSNAME', get_option('softoff-busname'))
conf_data.set_quoted('SOFTOFF_OBJPATH', get_option('softoff-objpath'))
- conf_data.set('IPMI_SMS_ATN_ACK_TIMEOUT_SECS', get_option('ipmi-sms-atn-ack-timeout-secs'))
conf_data.set('IPMI_HOST_SHUTDOWN_COMPLETE_TIMEOUT_SECS', get_option('ipmi-host-shutdown-complete-timeout-secs'))
conf_data.set_quoted('HOST_INBAND_REQUEST_DIR', get_option('host-inband-request-dir'))
conf_data.set_quoted('HOST_INBAND_REQUEST_FILE', get_option('host-inband-request-file'))