commit | af53f5aafcbbe1ba97264a0262067657f3dc8c34 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Sep 14 04:57:14 2018 -0600 |
committer | Simon Glass <sjg@chromium.org> | Fri Sep 28 11:09:01 2018 -0600 |
tree | 5094997018f43c79ea6b08f7c92712f340b0cc71 | |
parent | fa80c25c09a6c59be4df9c42b4a02538d8a07382 [diff] [blame] |
dtoc: Fixed endianness in Prop.GetEmpty() This should be big endian, since that is what device tree uses. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index 76cd66f..ccf3b23 100644 --- a/tools/dtoc/fdt.py +++ b/tools/dtoc/fdt.py
@@ -146,7 +146,7 @@ if type == TYPE_BYTE: return chr(0) elif type == TYPE_INT: - return struct.pack('<I', 0); + return struct.pack('>I', 0); elif type == TYPE_STRING: return '' else: