summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJagpal Singh Gill <paligill@gmail.com>2024-04-17 20:44:27 +0300
committerEd Tanous <ed@tanous.net>2024-05-03 01:06:25 +0300
commit578556628ee1200d8b77d7caca3a27e427847f52 (patch)
tree4201fa688a194e8b8dd4a7b6da5dda326170a3e2
parente428b440ddb09ffd575d4969793df15e29c02c39 (diff)
downloadbmcweb-578556628ee1200d8b77d7caca3a27e427847f52.tar.xz
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>
-rw-r--r--config/bmcweb_config.h.in1
-rw-r--r--config/meson.build1
-rw-r--r--meson_options.txt14
3 files changed, 16 insertions, 0 deletions
diff --git a/config/bmcweb_config.h.in b/config/bmcweb_config.h.in
index 81a61c8b17..adaf46120b 100644
--- a/config/bmcweb_config.h.in
+++ b/config/bmcweb_config.h.in
@@ -40,6 +40,7 @@ constexpr const bool BMCWEB_REDFISH_HOST_LOGGER = @REDFISH_HOST_LOGGER@;
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 4b862b49eb..9f66d0eaa4 100644
--- a/config/meson.build
+++ b/config/meson.build
@@ -33,6 +33,7 @@ feature_options = [
'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 8a497ed8cc..11b476f9a4 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -242,6 +242,20 @@ option(
)
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,