mbox series

[v2,0/3] Add readback handler for partition verify

Message ID 20200120124312.15129-1-mark.jonas@de.bosch.com
Headers show
Series Add readback handler for partition verify | expand

Message

'Darko Komljenovic' via swupdate Jan. 20, 2020, 12:43 p.m. UTC
To verify that an image was written properly, this readback handler
calculates the sha256 hash of a partition (or part of it) and compares
it against a given hash value.

Changed in v2:
 - config READBACKHANDLER depends on HASH_VERIFY
 - improved config help text
 - hash validity check is now in one line
 - offset and size are now optional properties and have default values
 - additional checking of return values
 - use copyfile() for hash verification
 - updated documentation

Kevin Zhang (3):
  handlers: add readback handler
  doc: handlers: add readback handler documentation
  doc: handlers: trim trailing whitespaces

 doc/source/handlers.rst     |  57 ++++++++++++++---
 handlers/Config.in          |  14 +++-
 handlers/Makefile           |   1 +
 handlers/readback_handler.c | 124 ++++++++++++++++++++++++++++++++++++
 4 files changed, 187 insertions(+), 9 deletions(-)
 create mode 100644 handlers/readback_handler.c

--
2.17.1