Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 1 | #include "item_updater_helper.hpp" |
| 2 | |
Adriana Kobylak | 56ec62e | 2021-01-20 10:57:18 -0600 | [diff] [blame] | 3 | #include "utils.hpp" |
| 4 | |
Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 5 | namespace phosphor |
| 6 | { |
| 7 | namespace software |
| 8 | { |
| 9 | namespace updater |
| 10 | { |
| 11 | |
Adriana Kobylak | 292159f | 2020-05-05 09:25:55 -0500 | [diff] [blame] | 12 | void Helper::setEntry(const std::string& /* entryId */, uint8_t /* value */) |
Adriana Kobylak | bbcb7be | 2018-07-17 15:47:34 -0500 | [diff] [blame] | 13 | { |
| 14 | // Empty |
| 15 | } |
| 16 | |
Adriana Kobylak | 292159f | 2020-05-05 09:25:55 -0500 | [diff] [blame] | 17 | void Helper::clearEntry(const std::string& /* entryId */) |
Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 18 | { |
| 19 | // Empty |
| 20 | } |
| 21 | |
| 22 | void Helper::cleanup() |
| 23 | { |
| 24 | // Empty |
| 25 | } |
| 26 | |
| 27 | void Helper::factoryReset() |
| 28 | { |
Lei YU | 28b2ba4 | 2018-07-19 15:41:44 +0800 | [diff] [blame] | 29 | // Set openbmconce=factory-reset env in U-Boot. |
| 30 | // The init will cleanup rwfs during boot. |
Adriana Kobylak | 56ec62e | 2021-01-20 10:57:18 -0600 | [diff] [blame] | 31 | utils::execute("/sbin/fw_setenv", "openbmconce", "factory-reset"); |
Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 32 | } |
| 33 | |
Adriana Kobylak | 25773a7 | 2022-01-21 15:24:48 +0000 | [diff] [blame] | 34 | void Helper::removeVersion(const std::string& /* flashId */) |
Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 35 | { |
| 36 | // Empty |
| 37 | } |
| 38 | |
Adriana Kobylak | 25773a7 | 2022-01-21 15:24:48 +0000 | [diff] [blame] | 39 | void Helper::updateUbootVersionId(const std::string& /* flashId */) |
Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 40 | { |
| 41 | // Empty |
| 42 | } |
| 43 | |
Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 44 | void Helper::mirrorAlt() |
| 45 | { |
| 46 | // Empty |
| 47 | } |
| 48 | |
| 49 | } // namespace updater |
| 50 | } // namespace software |
| 51 | } // namespace phosphor |