dtoc: Use binary mode for reading files
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 04:00:39 +0000 (22:00 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
commit2ab6e13e014c065a6168d31d6b8aeca135767816
treef094584065244ee8dc6ab4ec3b2e80df6c7af51f
parent635180538ecb7c0b109089830ff734d3d002376a
dtoc: Use binary mode for reading files

The .dtb files are binary so we should open them as binary files. This
allows Python 3 to use the correct 'bytes' type.

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