Python 2.x is EOL since January 2020. The first distributions already
started to drop the interpreters from their next distribution release. Just
add some minor changes to make it python3 compatible.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Explicit string encoding and decoding of UTF-8 strings was added in order
to make the script work with python 3.
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Since Python 2 is soon to be deprecated it would be nice if the tool
works with a python3 interpreter (default on many distros).
Previous commits addressing these issues did not solve all issues (not
all print statements were converted etc.).
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Now compatible with Python2 and Python3,
- Minimal changes in print add ().
- Changes in struct due to default byte strings in Python3.
Tested building board-2.bin for Dragonboard845c.
Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>