blob: 6be36bf8fec16b640773305c11611bd9e0f0a45e [file] [log] [blame]
Lei YU56aaf452018-06-21 16:09:44 +08001#include "item_updater_helper.hpp"
2
Adriana Kobylak56ec62e2021-01-20 10:57:18 -06003#include "utils.hpp"
4
Lei YU56aaf452018-06-21 16:09:44 +08005namespace phosphor
6{
7namespace software
8{
9namespace updater
10{
11
Adriana Kobylak292159f2020-05-05 09:25:55 -050012void Helper::setEntry(const std::string& /* entryId */, uint8_t /* value */)
Adriana Kobylakbbcb7be2018-07-17 15:47:34 -050013{
14 // Empty
15}
16
Adriana Kobylak292159f2020-05-05 09:25:55 -050017void Helper::clearEntry(const std::string& /* entryId */)
Lei YU56aaf452018-06-21 16:09:44 +080018{
19 // Empty
20}
21
22void Helper::cleanup()
23{
24 // Empty
25}
26
27void Helper::factoryReset()
28{
Lei YU28b2ba42018-07-19 15:41:44 +080029 // Set openbmconce=factory-reset env in U-Boot.
30 // The init will cleanup rwfs during boot.
Adriana Kobylak56ec62e2021-01-20 10:57:18 -060031 utils::execute("/sbin/fw_setenv", "openbmconce", "factory-reset");
Lei YU56aaf452018-06-21 16:09:44 +080032}
33
Adriana Kobylak292159f2020-05-05 09:25:55 -050034void Helper::removeVersion(const std::string& /* versionId */)
Lei YU56aaf452018-06-21 16:09:44 +080035{
36 // Empty
37}
38
Adriana Kobylak292159f2020-05-05 09:25:55 -050039void Helper::updateUbootVersionId(const std::string& /* versionId */)
Lei YU56aaf452018-06-21 16:09:44 +080040{
41 // Empty
42}
43
Lei YU56aaf452018-06-21 16:09:44 +080044void Helper::mirrorAlt()
45{
46 // Empty
47}
48
49} // namespace updater
50} // namespace software
51} // namespace phosphor