]> git.baikalelectronics.ru Git - uboot.git/commit
dtoc: Updates BytesToValue() for Python 3
authorSimon Glass <sjg@chromium.org>
Sat, 18 May 2019 04:00:35 +0000 (22:00 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 10 Jul 2019 22:52:58 +0000 (16:52 -0600)
commit78ec372738dd8ea1845c725d41beb23df9ca7a48
treec8d0f7232f82931ae27e1ee4e7888869270c3b5a
parentf51587819e635a88bbf1278dca865aaff6debdc8
dtoc: Updates BytesToValue() for Python 3

The difference between the bytes and str types in Python 3 requires a
number of minor changes to this function. Update it to handle the input
data using the 'bytes' type. Create two useful helper functions which can
be used by other modules too.

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