blob: 0eb910edf5ee41ec577250e868232c238673facd [file] [log] [blame]
Adriana Kobylak70f5bc02020-05-13 14:08:14 -05001#include "config.h"
2
Adriana Kobylak86013f32020-05-13 12:12:38 -05003#include "item_updater_helper.hpp"
4
5namespace phosphor
6{
7namespace software
8{
9namespace updater
10{
11
12void Helper::setEntry(const std::string& /* entryId */, uint8_t /* value */)
13{
14 // Empty
15}
16
17void Helper::clearEntry(const std::string& /* entryId */)
18{
19 // Empty
20}
21
22void Helper::cleanup()
23{
24 // Empty
25}
26
27void Helper::factoryReset()
28{
29 // Empty
30}
31
Adriana Kobylak70f5bc02020-05-13 14:08:14 -050032void Helper::removeVersion(const std::string& versionId)
Adriana Kobylak86013f32020-05-13 12:12:38 -050033{
Adriana Kobylak70f5bc02020-05-13 14:08:14 -050034 auto method = bus.new_method_call(SYSTEMD_BUSNAME, SYSTEMD_PATH,
35 SYSTEMD_INTERFACE, "StartUnit");
36 auto serviceFile = "obmc-flash-mmc-remove@" + versionId + ".service";
37 method.append(serviceFile, "replace");
38 bus.call_noreply(method);
Adriana Kobylak86013f32020-05-13 12:12:38 -050039}
40
41void Helper::updateUbootVersionId(const std::string& /* versionId */)
42{
43 // Empty
44}
45
46void Helper::mirrorAlt()
47{
48 // Empty
49}
50
51} // namespace updater
52} // namespace software
53} // namespace phosphor