]> git.ipfire.org Git - people/ms/u-boot.git/commit
dtoc: Decode strings for struct.unpack on python 3.x
authorPaul Burton <paul.burton@imgtec.com>
Tue, 27 Sep 2016 15:03:57 +0000 (16:03 +0100)
committersjg <sjg@chromium.org>
Sun, 9 Oct 2016 15:30:32 +0000 (09:30 -0600)
commitc4c5f9eefbda7231d0e9703905524faebe71e795
treebf7d1fe32621b70250c37e699110ebefd3302290
parent4ae6549f8e1cd31076c6dbabef568689fc313a13
dtoc: Decode strings for struct.unpack on python 3.x

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@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt_util.py