blob: f150c1027d9d6a98b5f2ade61d2a99c286cfeed4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
From 76f169e71be10b50b9617e606c38aff9553e6de8 Mon Sep 17 00:00:00 2001
From: Vikram Bodireddy <vikram.bodireddy@intel.com>
Date: Fri, 15 May 2020 21:17:08 +0530
Subject: [PATCH] Add ApplyOptions D-bus property under Software
This change adds the ApplyOptions D-bus property
under xyz.openbmc_project.Software.BMC.Updater.
ApplyOptions is needed for BIOS NVRAM clear during
BIOS firmware update. ClearConfig attribute is passed
from RF to fwupd script.
Tested: Set and Get of ClearConfig from fwupd.sh works
fine.
Signed-off-by: Vikram Bodireddy <vikram.bodireddy@intel.com>
---
item_updater.hpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/item_updater.hpp b/item_updater.hpp
index 3f0530f..5c1a779 100644
--- a/item_updater.hpp
+++ b/item_updater.hpp
@@ -9,6 +9,7 @@
#include <xyz/openbmc_project/Association/Definitions/server.hpp>
#include <xyz/openbmc_project/Common/FactoryReset/server.hpp>
#include <xyz/openbmc_project/Control/FieldMode/server.hpp>
+#include <xyz/openbmc_project/Software/ApplyOptions/server.hpp>
#include <string>
#include <vector>
@@ -24,7 +25,8 @@ using ItemUpdaterInherit = sdbusplus::server::object::object<
sdbusplus::xyz::openbmc_project::Common::server::FactoryReset,
sdbusplus::xyz::openbmc_project::Control::server::FieldMode,
sdbusplus::xyz::openbmc_project::Association::server::Definitions,
- sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll>;
+ sdbusplus::xyz::openbmc_project::Collection::server::DeleteAll,
+ sdbusplus::xyz::openbmc_project::Software::server::ApplyOptions>;
namespace MatchRules = sdbusplus::bus::match::rules;
using VersionClass = phosphor::software::manager::Version;
--
2.17.1
|