Adriana Kobylak | 70f5bc0 | 2020-05-13 14:08:14 -0500 | [diff] [blame^] | 1 | #include "config.h" |
| 2 | |
Adriana Kobylak | 86013f3 | 2020-05-13 12:12:38 -0500 | [diff] [blame] | 3 | #include "item_updater_helper.hpp" |
| 4 | |
| 5 | namespace phosphor |
| 6 | { |
| 7 | namespace software |
| 8 | { |
| 9 | namespace updater |
| 10 | { |
| 11 | |
| 12 | void Helper::setEntry(const std::string& /* entryId */, uint8_t /* value */) |
| 13 | { |
| 14 | // Empty |
| 15 | } |
| 16 | |
| 17 | void Helper::clearEntry(const std::string& /* entryId */) |
| 18 | { |
| 19 | // Empty |
| 20 | } |
| 21 | |
| 22 | void Helper::cleanup() |
| 23 | { |
| 24 | // Empty |
| 25 | } |
| 26 | |
| 27 | void Helper::factoryReset() |
| 28 | { |
| 29 | // Empty |
| 30 | } |
| 31 | |
Adriana Kobylak | 70f5bc0 | 2020-05-13 14:08:14 -0500 | [diff] [blame^] | 32 | void Helper::removeVersion(const std::string& versionId) |
Adriana Kobylak | 86013f3 | 2020-05-13 12:12:38 -0500 | [diff] [blame] | 33 | { |
Adriana Kobylak | 70f5bc0 | 2020-05-13 14:08:14 -0500 | [diff] [blame^] | 34 | 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 Kobylak | 86013f3 | 2020-05-13 12:12:38 -0500 | [diff] [blame] | 39 | } |
| 40 | |
| 41 | void Helper::updateUbootVersionId(const std::string& /* versionId */) |
| 42 | { |
| 43 | // Empty |
| 44 | } |
| 45 | |
| 46 | void Helper::mirrorAlt() |
| 47 | { |
| 48 | // Empty |
| 49 | } |
| 50 | |
| 51 | } // namespace updater |
| 52 | } // namespace software |
| 53 | } // namespace phosphor |