[U-Boot] [PATCH 8/9] dtoc: Decode strings for struct.unpack on python 3.x

Simon Glass sjg at chromium.org
Tue Sep 27 02:33:09 CEST 2016


On 26 September 2016 at 08:30, Paul Burton <paul.burton at imgtec.com> wrote:
> On python 3.x struct.unpack will complain if we provide it with a
> string since it expects to operate on a bytes object. In order to
> satisfy this requirement, encode the string to a bytes object when
> running on python 3.x.
>
> Signed-off-by: Paul Burton <paul.burton at imgtec.com>
> ---
>
>  tools/dtoc/fdt_util.py | 3 +++
>  1 file changed, 3 insertions(+)

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list