binman: Read map files as text
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 04:00:51 +0000 (22:00 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
commiteb546ac181ba93a16949167a4a41a38fe539b378
treed998f583abd17806d2c9c93d9ed9c0d14610ce28
parent1fc62de19fff9ab5228af72038753ec3a529eef1
binman: Read map files as text

These files are text files so should be read as such, so that
string-equality assertions work as expected.

With this binman tests work correctly on Python 2 and Python 3:

PYTHONPATH=/tmp/b/sandbox_spl/scripts/dtc/pylibfdt \
python ./tools/binman/binman -t

Change first line of binman.py to end "python3":

PYTHONPATH=~/cosarm/dtc/pylibfdt:tools/patman \
python3 ./tools/binman/binman -t

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