u-boot/tools/dtoc
George McCollister f156b5b597 dtoc: Decode val if it's a byte string
With Python 3.5.2 encode will throw an exception if val is a byte array.
Decode it to a string first. This assumes it's utf-8, if it's not valid
utf-8 it will throw an exception.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
2017-04-13 11:43:49 -06:00
..
.gitignore dm: Add a library to provide simple device-tree access 2016-07-14 20:40:24 -06:00
dtoc dm: Add a tool to generate C code from a device tree 2016-07-14 20:40:24 -06:00
dtoc.py dtoc: make ScanTree recurse into subnodes 2017-03-22 07:27:19 -06:00
fdt.py dtoc: Support finding the offset of a property 2016-09-18 21:04:39 -06:00
fdt_fallback.py dtoc: Use items() to iterate over dictionaries in python 3.x 2016-10-09 09:30:32 -06:00
fdt_normal.py dtoc: Adjust GetProps() in fdt_normal to use the node path 2016-10-09 09:30:32 -06:00
fdt_select.py dtoc: Add a way for tests to request the fallback library 2016-10-09 09:30:32 -06:00
fdt_util.py dtoc: Decode val if it's a byte string 2017-04-13 11:43:49 -06:00