updateservice: add start-update meson option

Add the meson option for the start-update D-Bus interface feature to be
used in UpdateService. More more details refer to -
https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/65738
https://gerrit.openbmc.org/c/openbmc/docs/+/65739

Tested: Build passes.

Change-Id: I594ddc0d2df6c032823eaeba9429cf50047d5dcd
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/config/bmcweb_config.h.in b/config/bmcweb_config.h.in
index 81a61c8..adaf461 100644
--- a/config/bmcweb_config.h.in
+++ b/config/bmcweb_config.h.in
@@ -40,6 +40,7 @@
 constexpr const bool BMCWEB_REDFISH_NEW_POWERSUBSYSTEM_THERMALSUBSYSTEM = @REDFISH_NEW_POWERSUBSYSTEM_THERMALSUBSYSTEM@;
 constexpr const bool BMCWEB_REDFISH_OEM_MANAGER_FAN_DATA = @REDFISH_OEM_MANAGER_FAN_DATA@;
 constexpr const bool BMCWEB_REDFISH_PROVISIONING_FEATURE = @REDFISH_PROVISIONING_FEATURE@;
+constexpr const bool BMCWEB_REDFISH_UPDATESERVICE_USE_DBUS = @REDFISH_UPDATESERVICE_USE_DBUS@;
 constexpr const bool BMCWEB_REDFISH = @REDFISH@;
 constexpr const bool BMCWEB_REST = @REST@;
 constexpr const bool BMCWEB_SESSION_AUTH = @SESSION_AUTH@;
diff --git a/config/meson.build b/config/meson.build
index 4b862b4..9f66d0e 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -33,6 +33,7 @@
     'redfish-new-powersubsystem-thermalsubsystem',
     'redfish-oem-manager-fan-data',
     'redfish-provisioning-feature',
+    'redfish-updateservice-use-dbus',
     'redfish',
     'rest',
     'session-auth',
diff --git a/meson_options.txt b/meson_options.txt
index 8a497ed..11b476f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -242,6 +242,20 @@
 )
 
 option(
+    'redfish-updateservice-use-dbus',
+    type: 'feature',
+    value: 'disabled',
+    description: '''Enables xyz.openbmc_project.Software.Update D-Bus interface
+                    to propagate UpdateService requests to the corresponding
+                    updater daemons instead of moving files to /tmp/images dir.
+                    This option is temporary, should not be enabled on any
+                    production systems. The code will be moved to the normal
+                    code update flow and the option will be removed at the end
+                    of Q3 2024.
+                '''
+)
+
+option(
     'https_port',
     type: 'integer',
     min: 1,