patman: Update fmap code for Python 3
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 04:00:48 +0000 (22:00 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
commitf3a58c8a7858bfb38456aae7cadecdfbd0f3da98
tree7935b7c4e364522366504342cad4bf659dfa6d79
parent0199d19349ee0e5cc65dae4a453eb9c4074fb685
patman: Update fmap code for Python 3

This needs special care to ensure that the bytes type is used for
binary data. Add conversion code to deal with strings and bytes
correctly.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/fmap.py
tools/binman/fmap_util.py