From eddf621897090ba346b1aaa81a4b8be12076ab60 Mon Sep 17 00:00:00 2001 From: Vikram Bodireddy Date: Thu, 5 Dec 2019 15:05:49 +0530 Subject: Adding RequestedApplyTime property to settings Added "RequestedApplyTime" to settings service which will be used in firmware update. This will give option for user to set the firmware image activation like activate image 'Immediate' or Activate image on 'OnReset' etc. Tested: Changed the setting using Redfish, rebooted BMC and validated the preserved 'RequestedApplyTime' setting. Change-Id: Ib08bb82fcc651f5489d69928ddaa7e1f05ebfdcf Signed-off-by: Vikram Bodireddy --- settings/include/defaults.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/settings/include/defaults.hpp b/settings/include/defaults.hpp index 7576e42..134e9a0 100644 --- a/settings/include/defaults.hpp +++ b/settings/include/defaults.hpp @@ -305,6 +305,14 @@ inline void loadSettings(sdbusplus::asio::object_server &objectServer, setting->addProperty("Enabled", true); + setting = &settings.emplace_back(objectServer, + "/xyz/openbmc_project/software/apply_time", + "xyz.openbmc_project.Software.ApplyTime"); + + setting->addProperty( + "RequestedApplyTime", + "xyz.openbmc_project.Software.ApplyTime.RequestedApplyTimes.Immediate"); + for (SettingsInterface &s : settings) { s.initialize(); -- cgit v1.2.3