u-boot/tools/dtoc
Paul Burton 34c3889635 dtoc: Make integer division python 3.x safe
If we use the '/' operator then python 3.x will produce a float, and
refuse to multiply the string sequence in Conv_name_to_c by it with:

    TypeError: can't multiply sequence by non-int of type 'float'

Use the '//' operator instead to enforce that we want integer rather
than floating point division.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
2016-10-09 09:30:32 -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 integer division python 3.x safe 2016-10-09 09:30:32 -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 strings for struct.unpack on python 3.x 2016-10-09 09:30:32 -06:00