BMC: Store RedundancyPriority on System.

This commit extends the functionality of the BMC software updater by
preserving RedundancyPriority values through any kind of reset.

This is accomplished by storing priority values in serial files in
/var/lib/obmc/phosphor-bmc-code-mgmt/ using the Cereal library. Each
time a priority value is modified, the value in the corresponding
version file is adjusted.

Resolves openbmc/openbmc#2125

Change-Id: Ie697279895bc5ff5fdef31fa88c78dc2bc63390a
Signed-off-by: Saqib Khan <khansa@us.ibm.com>
6 files changed
tree: 8b0a6ef5eb4652fbec6311b0f5b301464a861f50
  1. test/
  2. xyz/
  3. .gitignore
  4. activation.cpp
  5. activation.hpp
  6. bootstrap.sh
  7. configure.ac
  8. download_manager.cpp
  9. download_manager.hpp
  10. download_manager_main.cpp
  11. elog-errors.hpp
  12. image_manager.cpp
  13. image_manager.hpp
  14. image_manager_main.cpp
  15. item_updater.cpp
  16. item_updater.hpp
  17. item_updater_main.cpp
  18. LICENSE
  19. Makefile.am
  20. README.md
  21. serialize.cpp
  22. serialize.hpp
  23. version.cpp
  24. version.hpp
  25. watch.cpp
  26. watch.hpp
README.md

phosphor-bmc-code-mgmt

Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.