Verify signature for non ubifs image

Enable signature verification on non ubifs build.
The code is the same for ubifs and non ubifs, so move related code into
separated functions.

Tested: Verify that the signature check happens during code update, and
        successfully updated the code when the image is valid;
        verify it fails to update in field mode when the image is
        modified.

Change-Id: I81a536fb7ea05d804fa592c57bbed8f32f07a559
Signed-off-by: Lei YU <mine260309@gmail.com>
2 files changed
tree: 9b8ccdfa26af6c450a4b755d814aeb6475688402
  1. org/
  2. static/
  3. test/
  4. ubi/
  5. xyz/
  6. .clang-format
  7. .gitignore
  8. activation.cpp
  9. activation.hpp
  10. bootstrap.sh
  11. configure.ac
  12. download_manager.cpp
  13. download_manager.hpp
  14. download_manager_main.cpp
  15. elog-errors.hpp
  16. flash.hpp
  17. image_manager.cpp
  18. image_manager.hpp
  19. image_manager_main.cpp
  20. image_verify.cpp
  21. image_verify.hpp
  22. item_updater.cpp
  23. item_updater.hpp
  24. item_updater_main.cpp
  25. LICENSE
  26. MAINTAINERS
  27. Makefile.am
  28. README.md
  29. serialize.cpp
  30. serialize.hpp
  31. sync_manager.cpp
  32. sync_manager.hpp
  33. sync_manager_main.cpp
  34. sync_watch.cpp
  35. sync_watch.hpp
  36. version.cpp
  37. version.hpp
  38. watch.cpp
  39. 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 clean the repository run `./bootstrap.sh clean`.